From: Petr Holasek Date: Thu, 13 Jan 2011 01:00:34 +0000 (-0800) Subject: kpagecount: add slab page checking because _mapcount is in a union X-Git-Tag: v2.6.38-rc1~312 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a6fc86d2b43bf1086557f023a24adf91db915559;p=pandora-kernel.git 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 Cc: Wu Fengguang Cc: Matt Mackall Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed