diff options
author | Sasha Levin <sasha.levin@oracle.com> | 2014-10-09 18:28:39 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-10-09 22:25:58 -0400 |
commit | 96dad67ff244e797c4bc3e4f7f0fdaa0cfdf0a7d (patch) | |
tree | ea45352bf168845bf42d0d656b5d8bdacc55d8e8 /mm/huge_memory.c | |
parent | 31c9afa6db122a5c7a7843278aaf77dd08ea6e98 (diff) |
mm: use VM_BUG_ON_MM where possible
Dump the contents of the relevant struct_mm when we hit the bug condition.
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/huge_memory.c')
-rw-r--r-- | mm/huge_memory.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/huge_memory.c b/mm/huge_memory.c index c13148cc745f..74c78aa8bc2f 100644 --- a/mm/huge_memory.c +++ b/mm/huge_memory.c | |||
@@ -2048,7 +2048,7 @@ int __khugepaged_enter(struct mm_struct *mm) | |||
2048 | return -ENOMEM; | 2048 | return -ENOMEM; |
2049 | 2049 | ||
2050 | /* __khugepaged_exit() must not run from under us */ | 2050 | /* __khugepaged_exit() must not run from under us */ |
2051 | VM_BUG_ON(khugepaged_test_exit(mm)); | 2051 | VM_BUG_ON_MM(khugepaged_test_exit(mm), mm); |
2052 | if (unlikely(test_and_set_bit(MMF_VM_HUGEPAGE, &mm->flags))) { | 2052 | if (unlikely(test_and_set_bit(MMF_VM_HUGEPAGE, &mm->flags))) { |
2053 | free_mm_slot(mm_slot); | 2053 | free_mm_slot(mm_slot); |
2054 | return 0; | 2054 | return 0; |