android_kernel_xiaomi_sm8350/include/asm-h8300
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
bitops.h
bootinfo.h
bug.h
bugs.h
byteorder.h
cache.h
cachectl.h
cacheflush.h
checksum.h
cputime.h
current.h
dbg.h
delay.h
device.h
div64.h
dma.h
elf.h
emergency-restart.h
errno.h
fcntl.h
flat.h
fpu.h
futex.h
gpio.h
hardirq.h
hw_irq.h
ide.h
io.h
ioctl.h
ioctls.h h8300: enable arbitary speed tty port setup 2007-07-16 09:05:37 -07:00
ipc.h
ipcbuf.h
irq_regs.h h8300 generic irq 2007-05-07 12:12:58 -07:00
irq.h h8300 generic irq 2007-05-07 12:12:58 -07:00
Kbuild
kdebug.h move die notifier handling to common code 2007-05-08 11:15:04 -07:00
keyboard.h
kmap_types.h
linkage.h
local.h
mc146818rtc.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
msgbuf.h
mutex.h
namei.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: 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
semaphore.h
sembuf.h
setup.h
sh_bios.h
shm.h
shmbuf.h
shmparam.h
sigcontext.h
siginfo.h
signal.h
smp.h
socket.h [NET]: Adding SO_TIMESTAMPNS / SCM_TIMESTAMPNS support 2007-04-25 22:24:21 -07:00
sockios.h
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
topology.h
traps.h
types.h
uaccess.h
ucontext.h
unaligned.h
unistd.h h8300 syscall update 2007-05-11 08:29:33 -07:00
user.h
virtconvert.h