kernel-ark/include/asm-x86_64
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
..
8253pit.h
a.out.h
acpi.h
agp.h
alternative-asm.i
alternative.h Unify the CPU features vectors between i386 and x86-64 2007-07-12 10:55:54 -07:00
apic.h
apicdef.h
atomic.h
auxvec.h
bitops.h
boot.h Make struct boot_params a real structure, and remove obsolete fields 2007-07-12 10:55:54 -07:00
bootparam.h Make struct boot_params a real structure, and remove obsolete fields 2007-07-12 10:55:54 -07:00
bootsetup.h
bug.h
bugs.h
byteorder.h
cache.h
cacheflush.h
calgary.h Detach sched.h from mm.h 2007-05-21 09:18:19 -07:00
calling.h
checksum.h
cmpxchg.h
compat.h Introduce compat_u64 and compat_s64 types 2007-07-16 09:05:48 -07:00
cpu.h
cpufeature.h Unify the CPU features vectors between i386 and x86-64 2007-07-12 10:55:54 -07:00
cputime.h
current.h
debugreg.h
delay.h
desc_defs.h
desc.h
device.h
div64.h
dma-mapping.h
dma.h
dmi.h
dwarf2.h
e820.h Make definitions for struct e820entry and struct e820map consistent 2007-07-12 10:55:54 -07:00
edac.h
elf.h
emergency-restart.h
errno.h
fcntl.h
fixmap.h serial: convert early_uart to earlycon for 8250 2007-07-16 09:05:35 -07:00
floppy.h
fpu32.h
futex.h
genapic.h
hardirq.h
hpet.h
hw_irq.h
hypertransport.h
i387.h
ia32_unistd.h
ia32.h
ide.h
idle.h
intel_arch_perfmon.h
io_apic.h
io.h serial: convert early_uart to earlycon for 8250 2007-07-16 09:05:35 -07:00
ioctl.h
ioctls.h
ipcbuf.h
ipi.h
irq_regs.h
irq.h
irqflags.h
k8.h
Kbuild
kdebug.h Revert "ipmi: add new IPMI nmi watchdog handling" 2007-05-14 15:24:24 -07:00
kexec.h
kmap_types.h
kprobes.h
ldt.h
linkage.h
local.h
mach_apic.h
mc146818rtc.h
mce.h
mman.h
mmsegment.h
mmu_context.h
mmu.h
mmzone.h
module.h
mpspec.h
msgbuf.h
msidef.h
msr-index.h
msr.h
mtrr.h
mutex.h
namei.h
nmi.h
node.h
numa.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
parport.h
pci-direct.h
pci.h PCI: remove pci_dac_dma_... APIs 2007-07-11 16:02:11 -07:00
pda.h
percpu.h
pgalloc.h
pgtable.h mm: remove ptep_test_and_clear_dirty and ptep_clear_flush_dirty 2007-07-17 10:22:59 -07:00
poll.h Consolidate asm/poll.h 2007-05-11 08:29:34 -07:00
posix_types.h
prctl.h
processor-flags.h
processor.h Use a new CPU feature word to cover features that are spread around 2007-07-12 10:55:54 -07:00
proto.h
ptrace-abi.h
ptrace.h
required-features.h Use a new CPU feature word to cover features that are spread around 2007-07-12 10:55:54 -07:00
resource.h
rio.h
rtc.h
rwlock.h
scatterlist.h
seccomp.h
sections.h
segment.h x86-64: add symbolic constants for the boot segment selectors 2007-07-12 10:55:54 -07:00
semaphore.h
sembuf.h
serial.h
setup.h
shmbuf.h
shmparam.h
sigcontext32.h
sigcontext.h
siginfo.h
signal.h
smp.h Use the APIC to determine the hardware processor id - x86_64 2007-05-09 12:30:48 -07:00
socket.h
sockios.h
sparsemem.h
spinlock_types.h
spinlock.h
stacktrace.h
stat.h
statfs.h
string.h
suspend.h
swiotlb.h
system.h rename thread_info to stack 2007-05-09 12:30:56 -07:00
tce.h
termbits.h
termios.h
therm_throt.h
thread_info.h wrap access to thread_info 2007-05-09 12:30:56 -07:00
timex.h
tlb.h
tlbflush.h Detach sched.h from mm.h 2007-05-21 09:18:19 -07:00
topology.h
tsc.h
types.h
uaccess.h
ucontext.h
unaligned.h
unistd.h x86_64: Fix eventd/timerfd syscalls 2007-06-20 14:27:25 -07:00
unwind.h
user32.h
user.h
vga.h
vsyscall32.h
vsyscall.h
xor.h