diff options
author | Dave Hansen <dave.hansen@linux.intel.com> | 2014-01-29 23:05:50 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-01-30 01:22:40 +0100 |
commit | a0132ac0f275434db32111b8cf7372d991899da3 (patch) | |
tree | 5fb93dbdc8292182d7b1c5505cbeea00c985276c /mm/readahead.c | |
parent | slab: fix wrong retval on kmem_cache_create_memcg error path (diff) | |
download | linux-a0132ac0f275434db32111b8cf7372d991899da3.tar.xz linux-a0132ac0f275434db32111b8cf7372d991899da3.zip |
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 <dave.hansen@linux.intel.com>
Cc: Sasha Levin <sasha.levin@oracle.com>
Cc: "Kirill A. Shutemov" <kirill@shutemov.name>
Cc: Pekka Enberg <penberg@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions