page_mapping must avoid slub pages
commitb9bae3402572dc50a1e084c5b1ae5117918ef0f0
authorHugh Dickins <hugh@veritas.com>
Thu, 21 Jun 2007 22:27:45 +0000 (21 23:27 +0100)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 21 Jun 2007 22:55:12 +0000 (21 15:55 -0700)
treeb351181fffd09e06c0b3f185a0571cdb2860e870
parentf1518a088bde6aea49e7c472ed6ab96178fcba3e
page_mapping must avoid slub pages

Nicolas Ferre reports oops from flush_dcache_page() on ARM when using
SLUB: which reuses page->mapping as page->slab.  The page_mapping()
function, used by ARM and PA-RISC flush_dcache_page() implementations,
must not confuse SLUB pages with those which have page->mapping set.

Signed-off-by: Hugh Dickins <hugh@veritas.com>
Cc: Nicolas Ferre <nicolas.ferre@rfo.atmel.com>
Cc: Christoph Lameter <clameter@sgi.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/mm.h