diff options
author | Vlastimil Babka <vbabka@suse.cz> | 2014-05-14 10:02:20 +1000 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2014-05-14 10:02:20 +1000 |
commit | e966636970f787fcfada09977a39a5a4d4967725 (patch) | |
tree | e70449603ce079bc2854d6c6551a050c9fcb87da /mm | |
parent | c660fc0aa74f3943ff4f233fe945e396288ee71b (diff) |
mm-page_alloc-debug_vm-checks-for-free_list-placement-of-cma-and-reserve-pages-fix
Use VM_BUG_ON_PAGE instead of VM_BUG_ON as suggested by Sasha Levin.
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
Cc: Sasha Levin <sasha.levin@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/page_alloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 7abd15e74c91..f0a10738002c 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -712,7 +712,7 @@ static void free_pcppages_bulk(struct zone *zone, int count, /* must delete as __free_one_page list manipulates */ list_del(&page->lru); - VM_BUG_ON(!check_freepage_migratetype(page)); + VM_BUG_ON_PAGE(!check_freepage_migratetype(page), page); mt = get_freepage_migratetype(page); /* MIGRATE_MOVABLE list may include MIGRATE_RESERVEs */ __free_one_page(page, page_to_pfn(page), zone, 0, mt); @@ -1210,7 +1210,7 @@ static int rmqueue_bulk(struct zone *zone, unsigned int order, struct page *page = __rmqueue(zone, order, migratetype); if (unlikely(page == NULL)) break; - VM_BUG_ON(!check_freepage_migratetype(page)); + VM_BUG_ON_PAGE(!check_freepage_migratetype(page), page); /* * Split buddy pages returned by expand() are received here |