Petr Holasek a6fc86d2b4 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>
2011-01-13 08:03:17 -08:00
..
2011-01-13 08:03:16 -08:00
2011-01-13 08:03:16 -08:00
2011-01-13 08:03:16 -08:00
2011-01-13 08:03:16 -08:00
2010-05-27 09:12:47 -07:00
2009-05-15 15:32:45 +02:00
2010-11-16 12:50:17 -08:00
2009-10-29 07:39:25 -07:00
2007-10-17 08:42:48 -07:00
2010-11-16 12:50:17 -08:00
2010-10-29 04:17:01 -04:00