kernel-ark/fs/proc
Nick Piggin ad820c5dd4 [PATCH] smaps: shared fix
The point of the smaps "shared" is to count the number of pages that are
mapped by more than one process, according to Mauricio Lin.  However, smaps
uses page_count for this, so it will return a false positive for every page
that is mapped by just that one process, which is also in pagecache or
swapcache.  There are false positive situations for anonymous pages not in
swapcache as well: - page reclaim, migration - get_user_pages (eg.
direct-io, ptrace)

Use page_mapcount instead, to count the number of mappings to the page.

Use vm_normal_page so that weird things like /dev/mem aren't counted either.

Signed-off-by: Nick Piggin <npiggin@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-03-06 18:40:45 -08:00
..
array.c [PATCH] hrtimer: switch itimers to hrtimer 2006-01-10 08:01:38 -08:00
base.c [PATCH] capable/capability.h (fs/) 2006-01-11 18:42:13 -08:00
generic.c [PATCH] fs/proc/: function prototypes belong in header files 2006-01-08 20:14:03 -08:00
inode-alloc.txt Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
inode.c [PATCH] fix handling of st_nlink on procfs root 2006-02-18 15:54:36 -05:00
internal.h [PATCH] fs/proc/: function prototypes belong in header files 2006-01-08 20:14:03 -08:00
kcore.c [PATCH] capable/capability.h (fs/) 2006-01-11 18:42:13 -08:00
kmsg.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Makefile [PATCH] kdump: Access dump file in elf format (/proc/vmcore) 2005-06-25 16:24:53 -07:00
mmu.c [PATCH] fix impossible VmallocChunk 2005-05-17 07:59:10 -07:00
nommu.c [PATCH] output of /proc/maps on nommu systems is incomplete 2005-10-17 17:03:57 -07:00
proc_devtree.c [PATCH] powerpc: Add/remove/update properties in /proc/device-tree 2006-01-13 21:02:13 +11:00
proc_misc.c [PATCH] disable per cpu intr in /proc/stat 2006-02-03 08:32:07 -08:00
proc_tty.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
root.c [PATCH] fix handling of st_nlink on procfs root 2006-02-18 15:54:36 -05:00
task_mmu.c [PATCH] smaps: shared fix 2006-03-06 18:40:45 -08:00
task_nommu.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
vmcore.c [PATCH] kdump: vmcore compilation warning fix 2006-01-11 18:42:11 -08:00