mm/slub.c: do not VM_BUG_ON_PAGE() for temporary on-stack pages
authorDave Hansen <[email protected]>
Wed, 29 Jan 2014 22:05:50 +0000 (14:05 -0800)
committerLinus Torvalds <[email protected]>
Thu, 30 Jan 2014 00:22:40 +0000 (16:22 -0800)
commita0132ac0f275434db32111b8cf7372d991899da3
tree5fb93dbdc8292182d7b1c5505cbeea00c985276c
parentba3253c78d7443d2c80c544b1e7aec9f39938395
mm/slub.c: do not VM_BUG_ON_PAGE() for temporary on-stack pages

Commit 309381feaee5 ("mm: dump page when hitting a VM_BUG_ON using
VM_BUG_ON_PAGE") added a bunch of VM_BUG_ON_PAGE() calls.

But, most of the ones in the slub code are for _temporary_ 'struct
page's which are declared on the stack and likely have lots of gunk in
them.  Dumping their contents out will just confuse folks looking at
bad_page() output.  Plus, if we try to page_to_pfn() on them or
soemthing, we'll probably oops anyway.

Turn them back in to VM_BUG_ON()s.

Signed-off-by: Dave Hansen <[email protected]>
Cc: Sasha Levin <[email protected]>
Cc: "Kirill A. Shutemov" <[email protected]>
Cc: Pekka Enberg <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/slub.c