diff options
author | Petr Holasek <pholasek@redhat.com> | 2011-01-12 17:00:34 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-01-13 08:03:17 -0800 |
commit | a6fc86d2b43bf1086557f023a24adf91db915559 (patch) | |
tree | 4ad1a6f004d50c21bdce5b14d8f78fef3f453670 /fs/proc/generic.c | |
parent | c6a340584607f653e10549c76dd427d4780c8f2c (diff) | |
download | linux-stable-a6fc86d2b43bf1086557f023a24adf91db915559.tar.gz linux-stable-a6fc86d2b43bf1086557f023a24adf91db915559.tar.bz2 linux-stable-a6fc86d2b43bf1086557f023a24adf91db915559.zip |
kpagecount: add slab page checking because _mapcount is in a union
Add a PageSlab() check before adding the _mapcount value to /kpagecount.
page->_mapcount is in a union with the SLAB structure so for pages
controlled by SLAB, page_mapcount() returns nonsense.
Signed-off-by: Petr Holasek <pholasek@redhat.com>
Cc: Wu Fengguang <fengguang.wu@intel.com>
Cc: Matt Mackall <mpm@selenic.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/proc/generic.c')
0 files changed, 0 insertions, 0 deletions