mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
mm: convert a few VM_BUG_ON callers to VM_BUG_ON_VMA
Trivially convert a few VM_BUG_ON calls to VM_BUG_ON_VMA to extract more information when they trigger. [[email protected]: coding-style fixes] Signed-off-by: Sasha Levin <[email protected]> Reviewed-by: Naoya Horiguchi <[email protected]> Cc: Kirill A. Shutemov <[email protected]> Cc: Konstantin Khlebnikov <[email protected]> Cc: Rik van Riel <[email protected]> Cc: Mel Gorman <[email protected]> Cc: Michal Hocko <[email protected]> Cc: Hugh Dickins <[email protected]> Cc: Vlastimil Babka <[email protected]> Cc: Michel Lespinasse <[email protected]> Cc: Minchan Kim <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
fa3759ccd5
commit
81d1b09c6b
9 changed files with 24 additions and 23 deletions
|
|
@ -195,7 +195,8 @@ unsigned long move_page_tables(struct vm_area_struct *vma,
|
|||
if (pmd_trans_huge(*old_pmd)) {
|
||||
int err = 0;
|
||||
if (extent == HPAGE_PMD_SIZE) {
|
||||
VM_BUG_ON(vma->vm_file || !vma->anon_vma);
|
||||
VM_BUG_ON_VMA(vma->vm_file || !vma->anon_vma,
|
||||
vma);
|
||||
/* See comment in move_ptes() */
|
||||
if (need_rmap_locks)
|
||||
anon_vma_lock_write(vma->anon_vma);
|
||||
|
|
|
|||
Loading…
Reference in a new issue