android_kernel_xiaomi_sm8350/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
anchor.h
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
bitops.h [PATCH] m68knommu: removed include of system.h from bitops 2007-02-09 10:45:33 -08:00
bootinfo.h
bootstd.h [PATCH] m68knommu: fix clobber list in uCdimm/uCsimm helper asm 2006-06-28 15:03:47 -07:00
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]: M68Knommu checksum annotations and cleanups. 2006-12-02 21:23:08 -08:00
coldfire.h
commproc.h
cputime.h
current.h
dbg.h
delay.h
device.h Driver core: add dev_archdata to struct device 2006-12-01 14:52:01 -08:00
div64.h
dma-mapping.h [PATCH] m68knommu: fix dma-mapping.h 2006-12-04 08:28:47 -08:00
dma.h
elf.h
elia.h
emergency-restart.h
entry.h
errno.h
fcntl.h
flat.h
fpu.h
futex.h
hardirq.h
hwtest.h
io.h
ioctl.h
ioctls.h
ipc.h
ipcbuf.h
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
kdebug.h move die notifier handling to common code 2007-05-08 11:15:04 -07:00
kmap_types.h
linkage.h
local.h
m520xsim.h [PATCH] m68knommu: memory register defines for 520x ColdFire CPU's 2006-12-04 08:26:12 -08:00
m523xsim.h
m527xsim.h
m528xsim.h [PATCH] m68knommu: GPIO line defines for the ColdFire 5282 2007-03-06 18:08:38 -08:00
m532xsim.h
m5206sim.h
m5249sim.h
m5272sim.h
m5307sim.h
m5407sim.h
m68360_enet.h
m68360_pram.h
m68360_quicc.h
m68360_regs.h
m68360.h
machdep.h [PATCH] m68knommu: fix up for the irq_handler_t changes 2006-11-20 10:16:49 -08:00
math-emu.h
mc146818rtc.h
MC68EZ328.h
MC68VZ328.h
MC68328.h
MC68332.h
mcfcache.h
mcfdma.h
mcfmbus.h Fix misc .c/.h comment typos 2006-11-30 05:24:39 +01:00
mcfne.h
mcfpci.h
mcfpit.h
mcfsim.h
mcfsmc.h
mcftimer.h
mcfuart.h
mcfwdebug.h
md.h
mman.h
mmu_context.h [PATCH] x86: PARAVIRT: add hooks to intercept mm creation and destruction 2007-05-02 19:27:14 +02:00
mmu.h
module.h
movs.h
msgbuf.h
mutex.h
namei.h
nettel.h
openprom.h
oplib.h
page_offset.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
param.h
pci.h PCI: remove pci_dac_dma_... APIs 2007-07-11 16:02:11 -07:00
percpu.h
pgalloc.h
pgtable.h Clean up mostly unused IOSPACE macros 2007-05-08 11:15:13 -07:00
poll.h
posix_types.h
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
resource.h
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
segment.h
semaphore-helper.h
semaphore.h
sembuf.h
setup.h [PATCH] cleanup asm/setup.h userspace visibility 2006-12-07 08:39:46 -08:00
shm.h
shmbuf.h
shmparam.h
sigcontext.h
siginfo.h
signal.h [PATCH] irq-flags: M68KNOMMU: Use the new IRQF_ constants 2006-07-02 13:58:47 -07:00
smp.h
socket.h
sockios.h
spinlock.h
stat.h
statfs.h
string.h
system.h Remove tas() 2007-05-08 11:15:20 -07:00
termbits.h
termios.h
thread_info.h
timex.h
tlb.h
tlbflush.h
topology.h
traps.h
types.h
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
unistd.h [PATCH] remove kernel syscalls 2006-12-07 08:39:37 -08:00
user.h