summaryrefslogtreecommitdiffstats
path: root/drivers/net/s2io-regs.h
diff options
context:
space:
mode:
authorNick Piggin <nickpiggin@yahoo.com.au>2006-03-06 15:42:58 -0800
committerLinus Torvalds <torvalds@g5.osdl.org>2006-03-06 18:40:45 -0800
commitad820c5dd47dff9397ef1e94388bc6577983f68b (patch)
tree37c5386889669dd12899d28d2a38a25d1d9bcea2 /drivers/net/s2io-regs.h
parent5ddfae16bddb12104fff63c36fb5901f1a3729fc (diff)
downloadblackbird-op-linux-ad820c5dd47dff9397ef1e94388bc6577983f68b.tar.gz
blackbird-op-linux-ad820c5dd47dff9397ef1e94388bc6577983f68b.zip
[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>
Diffstat (limited to 'drivers/net/s2io-regs.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud