Skip to content

Commit

Permalink
mm: mempolicy: use VM_BUG_ON_VMA in queue_pages_test_walk()
Browse files Browse the repository at this point in the history
The VM_BUG_ON() is already used by queue_pages_test_walk(), it sounds
better to dump more debug information by using VM_BUG_ON_VMA() to help
debugging.

Signed-off-by: Yang Shi <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Reviewed-by: Andrew Morton <[email protected]>
Cc: "Li Xinhai" <[email protected]>
Cc: Qian Cai <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Yang Shi authored and torvalds committed Apr 2, 2020
1 parent 20ca87f commit d888fb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/mempolicy.c
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ static int queue_pages_test_walk(unsigned long start, unsigned long end,
unsigned long flags = qp->flags;

/* range check first */
VM_BUG_ON((vma->vm_start > start) || (vma->vm_end < end));
VM_BUG_ON_VMA((vma->vm_start > start) || (vma->vm_end < end), vma);

if (!qp->first) {
qp->first = vma;
Expand Down

0 comments on commit d888fb2

Please sign in to comment.