android_kernel_xiaomi_sm8350/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
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
Makefile
mmu.c
nommu.c
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
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
vmcore.c [PATCH] kdump: vmcore compilation warning fix 2006-01-11 18:42:11 -08:00