linux/include/linux
Christoph Lameter 7b2259b3e5 [PATCH] page migration: Support a vma migration function
Hooks for calling vma specific migration functions

With this patch a vma may define a vma->vm_ops->migrate function.  That
function may perform page migration on its own (some vmas may not contain page
structs and therefore cannot be handled by regular page migration.  Pages in a
vma may require special preparatory treatment before migration is possible
etc) .  Only mmap_sem is held when the migration function is called.  The
migrate() function gets passed two sets of nodemasks describing the source and
the target of the migration.  The flags parameter either contains

MPOL_MF_MOVE	which means that only pages used exclusively by
		the specified mm should be moved

or

MPOL_MF_MOVE_ALL which means that pages shared with other processes
		should also be moved.

The migration function returns 0 on success or an error condition.  An error
condition will prevent regular page migration from occurring.

On its own this patch cannot be included since there are no users for this
functionality.  But it seems that the uncached allocator will need this
functionality at some point.

Signed-off-by: Christoph Lameter <clameter@sgi.com>
Cc: Hugh Dickins <hugh@veritas.com>
Cc: Andi Kleen <ak@muc.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-06-25 10:00:55 -07:00
..
amba
byteorder
dvb
hdlc
isdn
lockd
mmc
mtd Merge git://git.infradead.org/hdrcleanup-2.6 2006-06-20 15:10:08 -07:00
netfilter Merge git://git.infradead.org/hdrcleanup-2.6 2006-06-20 15:10:08 -07:00
netfilter_arp
netfilter_bridge
netfilter_ipv4 Merge git://git.infradead.org/hdrcleanup-2.6 2006-06-20 15:10:08 -07:00
netfilter_ipv6
nfsd
raid
spi
sunrpc
tc_act
tc_ematch
usb [PATCH] USB: move <linux/usb_input.h> to <linux/usb/input.h> 2006-06-21 15:04:18 -07:00
8250_pci.h
a.out.h
ac97_codec.h
acct.h
acpi.h [PATCH] Unify pxm_to_node() and node_to_pxm() 2006-06-23 07:42:48 -07:00
adb.h
adfs_fs.h
adfs_fs_i.h
adfs_fs_sb.h
affs_fs.h
affs_hardblocks.h
agp_backend.h
agpgart.h
aio.h
aio_abi.h
amifd.h
amifdreg.h
amigaffs.h
apm_bios.h
arcdevice.h
arcfb.h
ata.h
atalk.h
atm.h
atm_eni.h
atm_he.h
atm_idt77105.h
atm_nicstar.h
atm_suni.h
atm_tcp.h
atm_zatm.h
atmapi.h
atmarp.h
atmbr2684.h
atmclip.h
atmdev.h
atmioc.h
atmlec.h
atmmpc.h
atmppp.h
atmsap.h
atmsvc.h
attribute_container.h
audit.h Merge branch 'audit.b21' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/audit-current 2006-06-20 15:37:56 -07:00
auto_fs.h
auto_fs4.h
auxvec.h
awe_voice.h
ax25.h
b1lli.h
b1pcmcia.h
backing-dev.h
backlight.h
baycom.h
bcd.h
bfs_fs.h
binfmts.h
bio.h
bit_spinlock.h
bitmap.h
bitops.h
blkdev.h [PATCH] Rearrange a few struct request members 2006-06-23 17:10:39 +02:00
blkpg.h
blktrace_api.h [PATCH] blktrace_api.h: endian annotations 2006-06-23 17:10:38 +02:00
blockgroup_lock.h
bootmem.h [PATCH] wait_table and zonelist initializing for memory hotadd: change to meminit for build_zonelist 2006-06-23 07:42:46 -07:00
bpqether.h
buffer_head.h
cache.h
calc64.h
capability.h
capi.h
cciss_ioctl.h
cd1400.h
cdev.h
cdk.h
cdrom.h
chio.h
circ_buf.h
clk.h
cm4000_cs.h
cn_proc.h [PATCH] Process Events: License Change 2006-06-23 07:43:06 -07:00
cobalt-nvram.h
coda.h
coda_cache.h
coda_fs_i.h
coda_linux.h [PATCH] vfs: add lock owner argument to flush operation 2006-06-23 07:43:02 -07:00
coda_proc.h
coda_psdev.h [PATCH] VFS: Permit filesystem to perform statfs with a known root dentry 2006-06-23 07:42:45 -07:00
coff.h
com20020.h
compat.h
compat_ioctl.h
compiler-gcc.h
compiler-gcc3.h
compiler-gcc4.h
compiler-intel.h
compiler.h
completion.h
comstats.h
concap.h
config.h
configfs.h
connector.h [PATCH] w1: Move w1-connector definitions into linux/include/connector.h 2006-06-22 11:22:50 -07:00
console.h Add support for suspending and resuming the whole console subsystem 2006-06-19 18:16:01 -07:00
console_struct.h
consolemap.h
cpu.h
cpufreq.h Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6 2006-06-23 07:52:36 -07:00
cpumask.h [PATCH] remove for_each_cpu() 2006-06-25 10:00:54 -07:00
cpuset.h
cramfs_fs.h
cramfs_fs_sb.h
crash_dump.h
crc-ccitt.h
crc16.h
crc32.h
crc32c.h
crypto.h
cryptohash.h
ctype.h
cuda.h
cyclades.h
cyclomx.h
cycx_cfm.h
cycx_drv.h
cycx_x25.h
dcache.h [PATCH] VFS: Permit filesystem to override root dentry on mount 2006-06-23 07:42:45 -07:00
dccp.h
dcookies.h
debugfs.h
delay.h [POWERPC] Fix mdelay badness on shared processor partitions 2006-06-21 15:01:33 +10:00
devfs_fs.h
devfs_fs_kernel.h
device-mapper.h
device.h [PATCH] Driver Core: Make dev_info and friends print the bus name if there is no driver 2006-06-21 12:40:49 -07:00
devpts_fs.h
dio.h
dirent.h
divert.h
dm-ioctl.h
dm9000.h
dma-mapping.h
dmaengine.h [I/OAT]: Utility functions for offloading sk_buff to iovec copies 2006-06-17 21:25:46 -07:00
dmapool.h
dmi.h
dn.h
dnotify.h
dqblk_v1.h
dqblk_v2.h
dqblk_xfs.h
ds1286.h
ds1742rtc.h
ds17287rtc.h
dtlk.h
edd.h
efi.h
efs_dir.h
efs_fs.h
efs_fs_i.h
efs_fs_sb.h
efs_vh.h
eisa.h
elevator.h
elf-em.h
elf-fdpic.h
elf.h
elfcore.h
err.h
errno.h
errqueue.h
etherdevice.h
ethtool.h [NET]: Added GSO toggle 2006-06-23 02:07:36 -07:00
eventpoll.h
ext2_fs.h
ext2_fs_sb.h
ext3_fs.h
ext3_fs_i.h
ext3_fs_sb.h
ext3_jbd.h
fadvise.h
fb.h
fcdevice.h
fcntl.h
fd.h
fd1772.h
fddidevice.h
fdreg.h
file.h
filter.h
firmware.h
flat.h
font.h
fs.h [PATCH] fs/locks.c: make posix_locks_deadlock() static 2006-06-23 07:43:03 -07:00
fs_enet_pd.h
fs_struct.h
fs_uart_pd.h
fsl_devices.h
fsnotify.h [PATCH] log more info for directory entry change events 2006-06-20 05:25:28 -04:00
ftape-header-segment.h
ftape-vendors.h
ftape.h
fuse.h
futex.h
gameport.h
gen_stats.h
genalloc.h [PATCH] change gen_pool allocator to not touch managed memory 2006-06-23 07:42:49 -07:00
generic_serial.h
genetlink.h
genhd.h
gfp.h
gigaset_dev.h
hardirq.h
harrier_defs.h
hash.h
hayesesp.h
hdlc.h [PATCH] WAN: register_hdlc_device() doesn't need dev_alloc_name() 2006-06-22 23:32:03 -04:00
hdlcdrv.h
hdpu_features.h
hdreg.h
hdsmart.h
hiddev.h
highmem.h
highuid.h
hil.h
hil_mlc.h
hippidevice.h
hp_sdc.h
hpet.h
hpfs_fs.h
hrtimer.h
hugetlb.h [PATCH] tightening hugetlb strict accounting 2006-06-23 07:42:48 -07:00
hwmon-sysfs.h
hwmon-vid.h
hwmon.h
hysdn_if.h
i2c-algo-bit.h
i2c-algo-ite.h
i2c-algo-pca.h
i2c-algo-pcf.h
i2c-algo-sgi.h
i2c-algo-sibyte.h
i2c-dev.h
i2c-id.h
i2c-isa.h
i2c-ocores.h [PATCH] i2c: New bus driver for the OpenCores I2C controller 2006-06-22 11:10:33 -07:00
i2c-pxa.h
i2c.h [PATCH] i2c: Mark block write buffers as const 2006-06-22 11:10:34 -07:00
i2o-dev.h
i2o.h
i8k.h
ibmtr.h
icmp.h
icmpv6.h
ide.h
idr.h
if.h
if_arcnet.h
if_arp.h
if_bonding.h
if_bridge.h
if_cablemodem.h
if_ec.h
if_eql.h
if_ether.h
if_fc.h
if_fddi.h
if_frad.h
if_hippi.h
if_infiniband.h
if_ltalk.h
if_packet.h
if_plip.h
if_ppp.h
if_pppox.h
if_shaper.h
if_slip.h
if_strip.h
if_tr.h
if_tun.h
if_tunnel.h
if_vlan.h
if_wanpipe.h
if_wanpipe_common.h
igmp.h [IPV4] igmp: Fixup struct ip_mc_list::multiaddr type 2006-06-17 21:29:37 -07:00
in.h
in6.h
in_route.h
inet.h
inet_diag.h
inetdevice.h
init.h
init_task.h
initrd.h
inotify.h [PATCH] inotify (4/5): allow watch removal from event handler 2006-06-20 05:25:19 -04:00
input.h Merge git://git.infradead.org/hdrcleanup-2.6 2006-06-20 15:10:08 -07:00
interrupt.h [PATCH] adjust handle_IRR_event() return type 2006-06-23 07:43:08 -07:00
io.h [PATCH] add __iowrite64_copy 2006-06-20 20:24:58 -07:00
ioc3.h
ioc4.h [PATCH] SGI IOC4: Detect IO card variant 2006-06-23 07:43:07 -07:00
ioctl.h
ioctl32.h
ioport.h
ioprio.h
ip.h
ip6_tunnel.h
ip_mp_alg.h
ipc.h
ipmi.h
ipmi_msgdefs.h
ipmi_smi.h
ipsec.h
ipv6.h
ipv6_route.h
ipx.h
irda.h
irq.h [PATCH] adjust handle_IRR_event() return type 2006-06-23 07:43:08 -07:00
irq_cpustat.h
irqreturn.h [PATCH] adjust handle_IRR_event() return type 2006-06-23 07:43:08 -07:00
isa.h [PATCH] Driver model: add ISA bus 2006-06-21 12:40:49 -07:00
isapnp.h
isdn.h
isdn_divertif.h
isdn_ppp.h
isdnif.h
isicom.h
iso_fs.h
istallion.h
ite_gpio.h
ixjuser.h
jbd.h [PATCH] JBD: split checkpoint lists 2006-06-23 07:43:08 -07:00
jffs.h
jffs2.h
jhash.h
jiffies.h
journal-head.h
joystick.h
kallsyms.h
kbd_diacr.h
kbd_kern.h
kd.h
kdev_t.h
kernel.h [PATCH] remove unlikely() in might_sleep_if() 2006-06-23 07:43:06 -07:00
kernel_stat.h
kernelcapi.h
kexec.h [PATCH] Add a sysfs file to determine if a kexec kernel is loaded 2006-06-23 07:43:02 -07:00
key-ui.h
key.h [PATCH] Keys: Fix race between two instantiators of a key 2006-06-22 15:05:56 -07:00
keyboard.h
keyctl.h
kfifo.h
klist.h
kmalloc_sizes.h
kmod.h
kobj_map.h
kobject.h [PATCH] Driver Core: Add /sys/hypervisor when needed 2006-06-21 12:40:48 -07:00
kprobes.h
kref.h
kthread.h
ktime.h
lapb.h
lcd.h
leds.h
libata.h [libata] Add host lock to struct ata_port 2006-06-22 23:46:10 -04:00
libps2.h
limits.h
linkage.h
linux_logo.h
list.h [PATCH] list: introduce list_replace() helper 2006-06-23 07:43:07 -07:00
llc.h
loop.h
lp.h
m41t00.h [PATCH] I2C: m41t00: Add support for the ST M41T81 and M41T85 2006-06-22 11:10:32 -07:00
m48t86.h
major.h
matroxfb.h
mbcache.h
mc6821.h
mc146818rtc.h
mca-legacy.h
mca.h
memory.h
memory_hotplug.h
mempolicy.h Merge git://git.infradead.org/hdrcleanup-2.6 2006-06-20 15:10:08 -07:00
mempool.h
meye.h
migrate.h [PATCH] page migration: Support a vma migration function 2006-06-25 10:00:55 -07:00
mii.h
minix_fs.h
miscdevice.h
mm.h [PATCH] page migration: Support a vma migration function 2006-06-25 10:00:55 -07:00
mm_inline.h
mman.h
mmtimer.h
mmzone.h [PATCH] sparsemem: record nid during memory present 2006-06-23 07:42:51 -07:00
mod_devicetable.h
module.h [PATCH] module.h: updated comments with a new license 2006-06-23 07:43:03 -07:00
moduleloader.h
moduleparam.h
mount.h [PATCH] VFS: Permit filesystem to perform statfs with a known root dentry 2006-06-23 07:42:45 -07:00
mpage.h
mqueue.h
mroute.h
msdos_fs.h
msg.h
mtio.h
mutex-debug.h
mutex.h
mv643xx.h
n_r3964.h
namei.h
namespace.h
nbd.h
ncp.h
ncp_fs.h
ncp_fs_i.h
ncp_fs_sb.h
ncp_mount.h
ncp_no.h
net.h
netdevice.h [NET]: Added GSO toggle 2006-06-23 02:07:36 -07:00
netfilter.h
netfilter_arp.h
netfilter_bridge.h
netfilter_decnet.h
netfilter_ipv4.h
netfilter_ipv6.h
netfilter_logging.h
netlink.h [PATCH] w1: netlink: Mark netlink group 1 as unused. 2006-06-22 11:22:50 -07:00
netpoll.h
netrom.h
nfs.h
nfs2.h
nfs3.h
nfs4.h
nfs4_acl.h
nfs4_mount.h
nfs_fs.h
nfs_fs_i.h
nfs_fs_sb.h
nfs_idmap.h
nfs_mount.h
nfs_page.h
nfs_xdr.h
nfsacl.h
nfsd_idmap.h
nls.h
nmi.h
node.h
nodemask.h
notifier.h
nubus.h
numa.h
nvram.h
openprom_fs.h
oprofile.h
page-flags.h [PATCH] PG_uncached is ia64 only 2006-06-23 07:42:46 -07:00
pagemap.h [PATCH] read_mapping_page for address space 2006-06-23 07:43:02 -07:00
pagevec.h
param.h
parport.h
parport_pc.h
parser.h
patchkey.h
pci-acpi.h
pci.h [PATCH] PCI: disable msi mode in pci_disable_device 2006-06-21 12:00:00 -07:00
pci_ids.h Merge branch 'master' into upstream 2006-06-22 22:11:56 -04:00
pci_regs.h [PATCH] PCI: Add PCI_CAP_ID_VNDR 2006-06-22 15:05:56 -07:00
pcieport_if.h
percpu.h
percpu_counter.h [PATCH] percpu counter data type changes to suppport more than 2**31 ext3 free blocks counter 2006-06-23 07:43:06 -07:00
personality.h
pfkeyv2.h [PFKEYV2]: Fix inconsistent typing in struct sadb_x_kmprivate. 2006-06-17 22:54:03 -07:00
pfn.h
pg.h
phonedev.h
phy.h
pid.h
pipe_fs_i.h
pkt_cls.h
pkt_sched.h
pktcdvd.h
platform_device.h
pm.h
pm_legacy.h
pmu.h
pnp.h
pnpbios.h
poll.h
posix-timers.h
posix_acl.h
posix_acl_xattr.h
posix_types.h
ppdev.h
ppp-comp.h
ppp_channel.h
ppp_defs.h
prctl.h
preempt.h
prefetch.h
prio_tree.h
proc_fs.h
profile.h
ps2esdi.h
ptrace.h [PATCH] ptrace: document the locking rules 2006-06-23 07:43:03 -07:00
qic117.h
qnx4_fs.h
qnxtypes.h
quota.h
quotaio_v1.h
quotaio_v2.h
quotaops.h
radeonfb.h
radix-tree.h [PATCH] radix-tree: direct data 2006-06-23 07:42:49 -07:00
raid_class.h
ramfs.h [PATCH] VFS: Permit filesystem to override root dentry on mount 2006-06-23 07:42:45 -07:00
random.h
raw.h
rbtree.h [PATCH] rbtree: support functions used by the io schedulers 2006-06-23 17:10:39 +02:00
rcupdate.h [PATCH] Make RCU API inaccessible to non-GPL Linux kernel modules 2006-06-23 07:43:07 -07:00
reboot.h
reboot_fixups.h
reiserfs_acl.h
reiserfs_fs.h
reiserfs_fs_i.h
reiserfs_fs_sb.h
reiserfs_xattr.h
relay.h
resource.h
resume-trace.h Add some basic resume trace facilities 2006-06-24 14:44:01 -07:00
rio.h
rio_drv.h
rio_ids.h
rio_regs.h
rmap.h [PATCH] Swapless page migration: rip out swap based logic 2006-06-23 07:42:50 -07:00
romfs_fs.h
root_dev.h
rose.h
route.h
rslib.h
rtc.h
rtnetlink.h
rwsem-spinlock.h
rwsem.h
sc26198.h
scatterlist.h
scc.h
sched.h [PATCH] Kill PF_SYNCWRITE flag 2006-06-23 17:10:39 +02:00
screen_info.h
sctp.h
scx200.h
scx200_gpio.h
sdla.h
sdla_fr.h
seccomp.h
securebits.h
security.h [PATCH] SELinux: add task_movememory hook 2006-06-23 07:42:54 -07:00
selection.h
selinux.h [SECMARK]: Add SELinux exports 2006-06-17 21:29:55 -07:00
selinux_netlink.h
sem.h
seq_file.h
seqlock.h
serial.h
serial167.h
serial_8250.h
serial_core.h [ARM] 3639/1: S3C2412: serial port support 2006-06-24 21:21:32 +01:00
serial_ip3106.h
serial_reg.h
serialP.h
serio.h
shm.h
shmem_fs.h
signal.h
skbuff.h [NET]: fix net-core kernel-doc 2006-06-23 02:07:42 -07:00
slab.h [PATCH] slab: kmalloc, kzalloc comments cleanup and fix 2006-06-23 07:42:52 -07:00
smb.h
smb_fs.h
smb_fs_i.h
smb_fs_sb.h
smb_mount.h
smbno.h
smp.h
smp_lock.h
snmp.h
socket.h
sockios.h
som.h
sonet.h
sonypi.h
sort.h
sound.h
soundcard.h
spinlock.h
spinlock_api_smp.h
spinlock_api_up.h
spinlock_types.h
spinlock_types_up.h
spinlock_up.h
stallion.h
stat.h
statfs.h
stddef.h
stop_machine.h
string.h [PATCH] strstrip() API 2006-06-23 07:43:06 -07:00
stringify.h
superhyway.h
suspend.h [PATCH] swsusp: add architecture special saveable pages support 2006-06-23 07:42:59 -07:00
swap.h [PATCH] initialise total_memory() earlier 2006-06-23 07:42:52 -07:00
swapops.h [PATCH] Swapless page migration: add R/W migration entries 2006-06-23 07:42:50 -07:00
synclink.h
sys.h
syscalls.h [PATCH] move_pages: fix 32 -> 64 bit compat function 2006-06-23 07:42:53 -07:00
sysctl.h [PATCH] support for panic at OOM 2006-06-23 07:42:47 -07:00
sysdev.h [PATCH] Driver Core: Allow sysdev_class have attributes 2006-06-21 12:40:48 -07:00
sysfs.h
sysrq.h
sysv_fs.h
tcp.h [TCP]: Move inclusion of <linux/dmaengine.h> to correct place in <linux/tcp.h> 2006-06-23 02:07:40 -07:00
telephony.h
termios.h
textsearch.h
textsearch_fsm.h
tfrc.h
thread_info.h
threads.h
ticable.h
time.h
timer.h
times.h
timex.h
tiocl.h
tipc.h
tipc_config.h
topology.h
toshiba.h
transport_class.h
trdevice.h
tty.h [PATCH] TTY: return class device pointer from tty_register_device() 2006-06-21 12:40:47 -07:00
tty_driver.h
tty_flip.h
tty_ldisc.h
types.h
uaccess.h [PATCH] x86: cache pollution aware __copy_from_user_ll() 2006-06-23 07:42:56 -07:00
udf_fs.h
udf_fs_i.h
udf_fs_sb.h
udp.h
ufs_fs.h
ufs_fs_i.h
ufs_fs_sb.h
uinput.h
uio.h
ultrasound.h
umem.h
un.h
unistd.h
usb.h [PATCH] USB: convert usb class devices to real devices 2006-06-21 15:04:19 -07:00
usb_ch9.h
usb_gadget.h
usb_gadgetfs.h
usb_otg.h
usb_usual.h
usbdevice_fs.h
user.h
utime.h
uts.h
utsname.h
vermagic.h
vfs.h
via.h
video_decoder.h
video_encoder.h
videodev.h
videodev2.h
videotext.h
vmalloc.h [PATCH] mm: introduce remap_vmalloc_range() 2006-06-23 07:42:49 -07:00
vt.h
vt_buffer.h
vt_kern.h Merge git://git.infradead.org/hdrcleanup-2.6 2006-06-20 15:10:08 -07:00
wait.h
wanrouter.h
watchdog.h
wavefront.h
wireless.h
workqueue.h
writeback.h [PATCH] writeback: fix range handling 2006-06-23 07:42:49 -07:00
x25.h
xattr.h
xfrm.h [IPSEC] xfrm: Abstract out encapsulation modes 2006-06-17 21:28:39 -07:00
yam.h
zconf.h [PATCH] zlib_inflate: Upgrade library code to a recent version 2006-06-22 15:05:58 -07:00
zftape.h
zlib.h [PATCH] zlib_inflate: Upgrade library code to a recent version 2006-06-22 15:05:58 -07:00
zorro.h [PATCH] m68k: Remove some unused definitions in zorro.h 2006-06-23 07:43:00 -07:00
zorro_ids.h
zutil.h [PATCH] zlib_inflate: Upgrade library code to a recent version 2006-06-22 15:05:58 -07:00