kernel-fxtec-pro1x/mm
Hugh Dickins 4294621f41 [PATCH] mm: rss = file_rss + anon_rss
I was lazy when we added anon_rss, and chose to change as few places as
possible.  So currently each anonymous page has to be counted twice, in rss
and in anon_rss.  Which won't be so good if those are atomic counts in some
configurations.

Change that around: keep file_rss and anon_rss separately, and add them
together (with get_mm_rss macro) when the total is needed - reading two
atomics is much cheaper than updating two atomics.  And update anon_rss
upfront, typically in memory.c, not tucked away in page_add_anon_rmap.

Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-10-29 21:40:38 -07:00
..
bootmem.c [PATCH] swiotlb: make sure initial DMA allocations really are in DMA memory 2005-10-19 23:11:33 -07:00
fadvise.c
filemap.c [PATCH] mm: page fault handlers tidyup 2005-10-29 21:40:37 -07:00
filemap.h
filemap_xip.c
fremap.c [PATCH] mm: rss = file_rss + anon_rss 2005-10-29 21:40:38 -07:00
highmem.c [PATCH] gfp_t: the rest 2005-10-28 08:16:51 -07:00
hugetlb.c [PATCH] mm: rss = file_rss + anon_rss 2005-10-29 21:40:38 -07:00
internal.h
Kconfig
madvise.c [PATCH] madvise: Avoid returning error code -EBADF for anonymous mappings 2005-10-11 09:46:54 -07:00
Makefile
memory.c [PATCH] mm: rss = file_rss + anon_rss 2005-10-29 21:40:38 -07:00
mempolicy.c [PATCH] Remove near all BUGs in mm/mempolicy.c 2005-10-29 21:40:35 -07:00
mempool.c [PATCH] gfp_t: mm/* (easy parts) 2005-10-28 08:16:47 -07:00
mincore.c
mlock.c
mmap.c [PATCH] mm: exit_mmap need not reset 2005-10-29 21:40:37 -07:00
mprotect.c [PATCH] mm: vm_stat_account unshackled 2005-10-29 21:40:37 -07:00
mremap.c [PATCH] mm: move_page_tables by extents 2005-10-29 21:40:37 -07:00
msync.c [PATCH] mm: msync_pte_range progress 2005-10-29 21:40:36 -07:00
nommu.c [PATCH] mm: rss = file_rss + anon_rss 2005-10-29 21:40:38 -07:00
oom_kill.c [PATCH] gfp flags annotations - part 1 2005-10-08 15:00:57 -07:00
page-writeback.c
page_alloc.c [PATCH] mm: set per-cpu-pages lower threshold to zero 2005-10-29 21:40:35 -07:00
page_io.c [PATCH] gfp flags annotations - part 1 2005-10-08 15:00:57 -07:00
pdflush.c
prio_tree.c
readahead.c
rmap.c [PATCH] mm: rss = file_rss + anon_rss 2005-10-29 21:40:38 -07:00
shmem.c [PATCH] mm: page fault handlers tidyup 2005-10-29 21:40:37 -07:00
slab.c [PATCH] slab: add additional debugging to detect slabs from the wrong node 2005-10-29 21:40:36 -07:00
sparse.c
swap.c
swap_state.c [PATCH] gfp flags annotations - part 1 2005-10-08 15:00:57 -07:00
swapfile.c [PATCH] mm: rss = file_rss + anon_rss 2005-10-29 21:40:38 -07:00
thrash.c [PATCH] swaptoken tuning 2005-10-29 21:40:35 -07:00
tiny-shmem.c
truncate.c
vmalloc.c [PATCH] vmalloc_node 2005-10-29 21:40:35 -07:00
vmscan.c [PATCH] shrink_list(): skip anon pages if not may_swap 2005-10-29 21:40:36 -07:00