kernel-ark/include/asm-m68knommu
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 Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
anchor.h [PATCH] m68knommu: use board name defines to differentiate board definitions 2005-11-01 21:41:19 -08:00
atomic.h atomic.h: atomic_add_unless as inline. Remove system.h atomic.h circular dependency 2007-05-08 11:15:20 -07:00
auxvec.h [PATCH] auxiliary vector cleanups 2005-09-07 16:57:21 -07:00
bitops.h [PATCH] m68knommu: removed include of system.h from bitops 2007-02-09 10:45:33 -08:00
bootinfo.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
bootstd.h [PATCH] m68knommu: fix clobber list in uCdimm/uCsimm helper asm 2006-06-28 15:03:47 -07:00
bug.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
bugs.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
byteorder.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
cache.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
cachectl.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
cacheflush.h [PATCH] Optimize D-cache alias handling on fork 2006-12-13 09:27:08 -08:00
checksum.h [NET]: M68Knommu checksum annotations and cleanups. 2006-12-02 21:23:08 -08:00
coldfire.h [PATCH] m68knommu: configurable frequency selection header 2006-06-25 21:04:24 -07:00
commproc.h Don't include linux/config.h from anywhere else in include/ 2006-04-26 12:56:16 +01:00
cputime.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
current.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
dbg.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
delay.h [PATCH] m68knommu: change use of extern inline to static inline in headers 2005-11-01 21:41:19 -08:00
device.h Driver core: add dev_archdata to struct device 2006-12-01 14:52:01 -08:00
div64.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
dma-mapping.h [PATCH] m68knommu: fix dma-mapping.h 2006-12-04 08:28:47 -08:00
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
elia.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
entry.h Don't include linux/config.h from anywhere else in include/ 2006-04-26 12:56:16 +01:00
errno.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
fcntl.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
flat.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
fpu.h Don't include linux/config.h from anywhere else in include/ 2006-04-26 12:56:16 +01:00
futex.h [PATCH] consolidate asm/futex.h 2006-01-08 20:13:39 -08:00
hardirq.h Don't include linux/config.h from anywhere else in include/ 2006-04-26 12:56:16 +01:00
hwtest.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
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 Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ipc.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ipcbuf.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
irq_regs.h [PATCH] m68knommu: fix up for the irq_handler_t changes 2006-11-20 10:16:49 -08:00
irq.h [PATCH] m68knommu: implement irq_canonicalize() 2006-12-06 07:41:26 -08:00
irqnode.h [PATCH] m68knommu: fix up for the irq_handler_t changes 2006-11-20 10:16:49 -08: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
kmap_types.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
linkage.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
local.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
m520xsim.h [PATCH] m68knommu: memory register defines for 520x ColdFire CPU's 2006-12-04 08:26:12 -08:00
m523xsim.h Don't include linux/config.h from anywhere else in include/ 2006-04-26 12:56:16 +01:00
m527xsim.h Don't include linux/config.h from anywhere else in include/ 2006-04-26 12:56:16 +01:00
m528xsim.h [PATCH] m68knommu: GPIO line defines for the ColdFire 5282 2007-03-06 18:08:38 -08:00
m532xsim.h [PATCH] m68knommu: ColdFire 532x register definitions 2006-06-25 17:43:33 -07:00
m5206sim.h Don't include linux/config.h from anywhere else in include/ 2006-04-26 12:56:16 +01:00
m5249sim.h [PATCH] m68knommu: fix ColdFire 5249 PLL set 2006-06-25 21:04:24 -07:00
m5272sim.h Don't include linux/config.h from anywhere else in include/ 2006-04-26 12:56:16 +01:00
m5307sim.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
m5407sim.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
m68360_enet.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
m68360_pram.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
m68360_quicc.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
m68360_regs.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
m68360.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
machdep.h [PATCH] m68knommu: fix up for the irq_handler_t changes 2006-11-20 10:16:49 -08:00
math-emu.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mc146818rtc.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
MC68EZ328.h [PATCH] __attribute__ placement fixes 2005-05-01 08:59:09 -07:00
MC68VZ328.h [PATCH] __attribute__ placement fixes 2005-05-01 08:59:09 -07:00
MC68328.h [PATCH] __attribute__ placement fixes 2005-05-01 08:59:09 -07:00
MC68332.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mcfcache.h [PATCH] m68knommu: add ColdFire 532x cache init 2006-06-25 17:43:33 -07:00
mcfdma.h Don't include linux/config.h from anywhere else in include/ 2006-04-26 12:56:16 +01:00
mcfmbus.h Fix misc .c/.h comment typos 2006-11-30 05:24:39 +01:00
mcfne.h Don't include linux/config.h from anywhere else in include/ 2006-04-26 12:56:16 +01:00
mcfpci.h Don't include linux/config.h from anywhere else in include/ 2006-04-26 12:56:16 +01:00
mcfpit.h [PATCH] m68knommu: read/write register access for PIT timer 2006-06-25 17:43:33 -07:00
mcfsim.h [PATCH] m68knommu: include ColdFire 532x register definitions 2006-06-25 17:43:33 -07:00
mcfsmc.h Don't include linux/config.h from anywhere else in include/ 2006-04-26 12:56:16 +01:00
mcftimer.h [PATCH] m68knommu: read/write register access for ColdFire core timer 2006-06-25 17:43:33 -07:00
mcfuart.h [PATCH] m68knommu: add ColdFire 532x UART address support 2006-06-25 17:43:34 -07:00
mcfwdebug.h Don't include linux/config.h from anywhere else in include/ 2006-04-26 12:56:16 +01:00
md.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mman.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mmu_context.h [PATCH] x86: PARAVIRT: add hooks to intercept mm creation and destruction 2007-05-02 19:27:14 +02:00
mmu.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
module.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
movs.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
msgbuf.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mutex.h [PATCH] mutex subsystem, add default include/asm-*/mutex.h files 2006-01-09 15:59:19 -08:00
namei.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
nettel.h Don't include linux/config.h from anywhere else in include/ 2006-04-26 12:56:16 +01:00
openprom.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
oplib.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
page_offset.h [PATCH] m68knommu: use configurable RAM setup page_offset.h 2006-06-26 10:59:44 -07:00
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
param.h Don't include linux/config.h from anywhere else in include/ 2006-04-26 12:56:16 +01:00
pci.h PCI: remove pci_dac_dma_... APIs 2007-07-11 16:02:11 -07:00
percpu.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
pgalloc.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
pgtable.h Clean up mostly unused IOSPACE macros 2007-05-08 11:15:13 -07:00
poll.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
posix_types.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
processor.h fix file specification in comments 2006-10-03 23:01:26 +02:00
ptrace.h [PATCH] m68knommu: remove NO_FORMAT_VECi from ptrace.h header 2006-06-27 18:30:14 -07:00
quicc_simple.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
resource.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
rtc.h [PATCH] m68knommu: create rtc.h 2006-12-06 07:41:26 -08:00
scatterlist.h PCI: scatterlist.h needs types.h 2007-05-02 19:02:34 -07:00
sections.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
segment.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
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] m68knommu: change use of extern inline to static inline in headers 2005-11-01 21:41:19 -08:00
sembuf.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
setup.h [PATCH] cleanup asm/setup.h userspace visibility 2006-12-07 08:39:46 -08:00
shm.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
shmbuf.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
shmparam.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sigcontext.h [PATCH] m68knommu: save reg a5 on context change 2006-01-10 09:31:27 -08:00
siginfo.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
signal.h [PATCH] irq-flags: M68KNOMMU: Use the new IRQF_ constants 2006-07-02 13:58:47 -07:00
smp.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
socket.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sockios.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
spinlock.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
stat.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
statfs.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
string.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
system.h Remove tas() 2007-05-08 11:15:20 -07:00
termbits.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
termios.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
thread_info.h [PATCH] death of get_thread_info/put_thread_info 2006-01-12 09:08:59 -08:00
timex.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
tlb.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
tlbflush.h [PATCH] m68knommu: change use of extern inline to static inline in headers 2005-11-01 21:41:19 -08:00
topology.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
traps.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
types.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
uaccess.h [PATCH] m68knommu: fix result type in get_user() macro 2006-07-13 07:51:48 -07:00
ucontext.h [PATCH] m68knommu: remove FP conditionals in ucontext struct 2006-12-06 07:41:26 -08:00
unaligned.h Don't include linux/config.h from anywhere else in include/ 2006-04-26 12:56:16 +01:00
unistd.h [PATCH] remove kernel syscalls 2006-12-07 08:39:37 -08:00
user.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00