linux/mm
Rik van Riel b2e185384f define page_file_cache() function
Define page_file_cache() function to answer the question:
	is page backed by a file?

Originally part of Rik van Riel's split-lru patch.  Extracted to make
available for other, independent reclaim patches.

Moved inline function to linux/mm_inline.h where it will be needed by
subsequent "split LRU" and "noreclaim" patches.

Unfortunately this needs to use a page flag, since the PG_swapbacked state
needs to be preserved all the way to the point where the page is last
removed from the LRU.  Trying to derive the status from other info in the
page resulted in wrong VM statistics in earlier split VM patchsets.

The total number of page flags in use on a 32 bit machine after this patch
is 19.

[akpm@linux-foundation.org: fix up out-of-order merge fallout]
[hugh@veritas.com: splitlru: shmem_getpage SetPageSwapBacked sooner[
Signed-off-by: Rik van Riel <riel@redhat.com>
Signed-off-by: Lee Schermerhorn <lee.schermerhorn@hp.com>
Signed-off-by: MinChan Kim <minchan.kim@gmail.com>
Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-10-20 08:50:25 -07:00
..
allocpercpu.c
backing-dev.c
bootmem.c misc: replace __FUNCTION__ with __func__ 2008-10-16 11:21:30 -07:00
bounce.c
dmapool.c
fadvise.c Remove Andrew Morton's old email accounts 2008-10-16 11:21:32 -07:00
filemap_xip.c
filemap.c Merge branch 'core-v28-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip 2008-10-16 15:17:40 -07:00
fremap.c
highmem.c
hugetlb.c hugetlb: handle updating of ACCESSED and DIRTY in hugetlb_fault() 2008-10-16 11:21:29 -07:00
internal.h vmscan: move isolate_lru_page() to vmscan.c 2008-10-20 08:50:25 -07:00
Kconfig Merge branch 'core-v28-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip 2008-10-16 15:17:40 -07:00
maccess.c
madvise.c
Makefile
memcontrol.c vmscan: Use an indexed array for LRU variables 2008-10-20 08:50:25 -07:00
memory_hotplug.c vmscan: move isolate_lru_page() to vmscan.c 2008-10-20 08:50:25 -07:00
memory.c define page_file_cache() function 2008-10-20 08:50:25 -07:00
mempolicy.c vmscan: move isolate_lru_page() to vmscan.c 2008-10-20 08:50:25 -07:00
mempool.c
migrate.c define page_file_cache() function 2008-10-20 08:50:25 -07:00
mincore.c
mlock.c
mm_init.c
mmap.c
mmu_notifier.c
mmzone.c
mprotect.c
mremap.c
msync.c
nommu.c
oom_kill.c
page_alloc.c define page_file_cache() function 2008-10-20 08:50:25 -07:00
page_io.c
page_isolation.c
page-writeback.c Remove Andrew Morton's old email accounts 2008-10-16 11:21:32 -07:00
pagewalk.c
pdflush.c Remove Andrew Morton's old email accounts 2008-10-16 11:21:32 -07:00
prio_tree.c
quicklist.c
readahead.c Remove Andrew Morton's old email accounts 2008-10-16 11:21:32 -07:00
rmap.c anon_vma_prepare: properly lock even newly allocated entries 2008-10-19 11:50:35 -07:00
shmem_acl.c
shmem.c define page_file_cache() function 2008-10-20 08:50:25 -07:00
slab.c
slob.c
slub.c
sparse-vmemmap.c
sparse.c
swap_state.c define page_file_cache() function 2008-10-20 08:50:25 -07:00
swap.c vmscan: free swap space on swap-in/activation 2008-10-20 08:50:25 -07:00
swapfile.c vmscan: free swap space on swap-in/activation 2008-10-20 08:50:25 -07:00
thrash.c
tiny-shmem.c
truncate.c Remove Andrew Morton's old email accounts 2008-10-16 11:21:32 -07:00
util.c
vmalloc.c
vmscan.c vmscan: free swap space on swap-in/activation 2008-10-20 08:50:25 -07:00
vmstat.c vmscan: Use an indexed array for LRU variables 2008-10-20 08:50:25 -07:00