Mel Gorman
769848c038
Add __GFP_MOVABLE for callers to flag allocations from high memory that may be migrated
...
It is often known at allocation time whether a page may be migrated or not.
This patch adds a flag called __GFP_MOVABLE and a new mask called
GFP_HIGH_MOVABLE. Allocations using the __GFP_MOVABLE can be either migrated
using the page migration mechanism or reclaimed by syncing with backing
storage and discarding.
An API function very similar to alloc_zeroed_user_highpage() is added for
__GFP_MOVABLE allocations called alloc_zeroed_user_highpage_movable(). The
flags used by alloc_zeroed_user_highpage() are not changed because it would
change the semantics of an existing API. After this patch is applied there
are no in-kernel users of alloc_zeroed_user_highpage() so it probably should
be marked deprecated if this patch is merged.
Note that this patch includes a minor cleanup to the use of __GFP_ZERO in
shmem.c to keep all flag modifications to inode->mapping in the
shmem_dir_alloc() helper function. This clean-up suggestion is courtesy of
Hugh Dickens.
Additional credit goes to Christoph Lameter and Linus Torvalds for shaping the
concept. Credit to Hugh Dickens for catching issues with shmem swap vector
and ramfs allocations.
[akpm@linux-foundation.org: build fix]
[hugh@veritas.com: __GFP_ZERO cleanup]
Signed-off-by: Mel Gorman <mel@csn.ul.ie>
Cc: Andy Whitcroft <apw@shadowen.org>
Cc: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-07-17 10:22:59 -07:00
..
a.out.h
atomic.h
h8300 atomic.h update
2007-05-15 08:54:00 -07:00
auxvec.h
[PATCH] auxiliary vector cleanups
2005-09-07 16:57:21 -07:00
bitops.h
Don't include linux/config.h from anywhere else in include/
2006-04-26 12:56:16 +01:00
bootinfo.h
bug.h
bugs.h
byteorder.h
cache.h
cachectl.h
cacheflush.h
[PATCH] Optimize D-cache alias handling on fork
2006-12-13 09:27:08 -08:00
checksum.h
[NET]: H8300 checksum annotations and cleanups.
2006-12-02 21:23:04 -08:00
cputime.h
current.h
dbg.h
delay.h
[PATCH] include/asm-h8300/: "extern inline" -> "static inline"
2006-12-07 08:39:45 -08:00
device.h
Driver core: add dev_archdata to struct device
2006-12-01 14:52:01 -08:00
div64.h
dma.h
Don't include linux/config.h from anywhere else in include/
2006-04-26 12:56:16 +01:00
elf.h
Don't include linux/config.h from anywhere else in include/
2006-04-26 12:56:16 +01:00
emergency-restart.h
[PATCH] Add emergency_restart()
2005-07-26 14:35:41 -07:00
errno.h
fcntl.h
[PATCH] Clean up struct flock64 definitions
2005-09-07 16:57:38 -07:00
flat.h
fpu.h
futex.h
[PATCH] consolidate asm/futex.h
2006-01-08 20:13:39 -08:00
gpio.h
hardirq.h
Don't include linux/config.h from anywhere else in include/
2006-04-26 12:56:16 +01:00
hw_irq.h
ide.h
io.h
Don't include linux/config.h from anywhere else in include/
2006-04-26 12:56:16 +01:00
ioctl.h
[PATCH] Generic ioctl.h
2006-01-10 08:01:34 -08:00
ioctls.h
h8300: enable arbitary speed tty port setup
2007-07-16 09:05:37 -07:00
ipc.h
ipcbuf.h
irq.h
h8300 generic irq
2007-05-07 12:12:58 -07:00
irq_regs.h
h8300 generic irq
2007-05-07 12:12:58 -07:00
Kbuild
Add empty Kbuild files for 'make headers_install' in remaining arches.
2006-06-18 12:58:53 +01:00
kdebug.h
move die notifier handling to common code
2007-05-08 11:15:04 -07:00
keyboard.h
[PATCH] remove SYSRQ_KEY and related defines from ppc/sh/h8300
2006-10-01 00:39:22 -07:00
kmap_types.h
linkage.h
local.h
mc146818rtc.h
md.h
mman.h
[PATCH] add asm-generic/mman.h
2006-02-15 15:32:22 -08:00
mmu.h
mmu_context.h
[PATCH] x86: PARAVIRT: add hooks to intercept mm creation and destruction
2007-05-02 19:27:14 +02:00
module.h
msgbuf.h
mutex.h
[PATCH] mutex subsystem, add default include/asm-*/mutex.h files
2006-01-09 15:59:19 -08:00
namei.h
page.h
Add __GFP_MOVABLE for callers to flag allocations from high memory that may be migrated
2007-07-17 10:22:59 -07:00
page_offset.h
Don't include linux/config.h from anywhere else in include/
2006-04-26 12:56:16 +01:00
param.h
Don't include linux/config.h from anywhere else in include/
2006-04-26 12:56:16 +01:00
pci.h
PCI: Use a weak symbol for the empty version of pcibios_add_platform_entries()
2007-07-11 16:02:07 -07:00
percpu.h
pgalloc.h
pgtable.h
Clean up mostly unused IOSPACE macros
2007-05-08 11:15:13 -07:00
poll.h
Consolidate asm/poll.h
2007-05-11 08:29:34 -07:00
posix_types.h
processor.h
h8300 trival patches
2007-06-01 08:18:29 -07:00
ptrace.h
regs267x.h
regs306x.h
resource.h
scatterlist.h
PCI: scatterlist.h needs types.h
2007-05-02 19:02:34 -07:00
sections.h
segment.h
semaphore-helper.h
Don't include linux/config.h from anywhere else in include/
2006-04-26 12:56:16 +01:00
semaphore.h
[PATCH] semaphore: Remove __MUTEX_INITIALIZER()
2005-10-30 17:37:27 -08:00
sembuf.h
setup.h
sh_bios.h
shm.h
Don't include linux/config.h from anywhere else in include/
2006-04-26 12:56:16 +01:00
shmbuf.h
shmparam.h
sigcontext.h
siginfo.h
signal.h
[PATCH] irq-flags: H8300: Use the new IRQF_ constants
2006-07-02 13:58:47 -07:00
smp.h
socket.h
[NET]: Adding SO_TIMESTAMPNS / SCM_TIMESTAMPNS support
2007-04-25 22:24:21 -07:00
sockios.h
[NET]: Introduce SIOCGSTAMPNS ioctl to get timestamps with nanosec resolution
2007-04-25 22:24:04 -07:00
spinlock.h
stat.h
statfs.h
string.h
system.h
Remove tas()
2007-05-08 11:15:20 -07:00
target_time.h
termbits.h
h8300: enable arbitary speed tty port setup
2007-07-16 09:05:37 -07:00
termios.h
h8300: enable arbitary speed tty port setup
2007-07-16 09:05:37 -07:00
thread_info.h
h8300 entry.S update
2007-07-16 09:05:37 -07:00
timex.h
tlb.h
tlbflush.h
[PATCH] include/asm-h8300/: "extern inline" -> "static inline"
2006-12-07 08:39:45 -08:00
topology.h
traps.h
types.h
[PATCH] Centralise definitions of sector_t and blkcnt_t
2006-12-04 19:41:15 -08:00
uaccess.h
[PATCH] remove verify_area(): remove verify_area() from various uaccess.h headers
2005-09-07 16:57:35 -07:00
ucontext.h
unaligned.h
Don't include linux/config.h from anywhere else in include/
2006-04-26 12:56:16 +01:00
unistd.h
h8300 syscall update
2007-05-11 08:29:33 -07:00
user.h
virtconvert.h
Don't include linux/config.h from anywhere else in include/
2006-04-26 12:56:16 +01:00