mm/hugetlb: Remove unnecessary VM_BUG_ON_PAGE on putback_active_hugepage()
Subsystems (2)
PATCH v2 1/1 mm/hugetlb: Remove unnecessary VM_BUG_ON_PAGE on putback_active_hugepage()
All callers know they are operating on a hugetlb head page. So this VM_BUG_ON_PAGE can not catch anything useful.
Signed-off-by Miaohe Lin <[email protected]>
--- mm/hugetlb.c | 1 - 1 file changed, 1 deletion(-)
mm/hugetlb.c +0 -1
@@ -5577,7 +5577,6 @@ bool isolate_huge_page(struct page *page, struct list_head *list)void putback_active_hugepage (struct page *page) { -VM_BUG_ON_PAGE (!PageHead (page), page);spin_lock (&hugetlb_lock);SetHPageMigratable (page);list_move_tail (&page->lru, &(page_hstate (page))->hugepage_activelist);
Signature · 1 line
2.19.1
Quoted 7 lines · Miaohe Lin
All callers know they are operating on a hugetlb head page. So this
VM_BUG_ON_PAGEcan not catch anything useful.Signed-off-by Miaohe Lin <[email protected]>--- mm/hugetlb.c | 1 - 1 file changed, 1 deletion(-)
Thanks,
Reviewed-by Mike Kravetz <[email protected]>
Signature · 1 line
Mike Kravetz
Quoted 14 lines
mm/hugetlb.c +0
-1@@ -5577,7 +5577,6 @@ bool isolate_huge_page(struct page *page, struct list_head *list)void putback_active_hugepage (struct page *page) { -VM_BUG_ON_PAGE (!PageHead (page), page);spin_lock (&hugetlb_lock);SetHPageMigratable (page);list_move_tail (&page->lru, &(page_hstate (page))->hugepage_activelist);
Quoted 4 lines · Miaohe Lin
All callers know they are operating on a hugetlb head page. So this
VM_BUG_ON_PAGEcan not catch anything useful.Signed-off-by Miaohe Lin <[email protected]>
Reviewed-by Oscar Salvador <[email protected]>
Quoted 20 lines
--- mm/hugetlb.c | 1 - 1 file changed, 1 deletion(-)mm/hugetlb.c +0
-1@@ -5577,7 +5577,6 @@ bool isolate_huge_page(struct page *page, struct list_head *list)void putback_active_hugepage (struct page *page) { -VM_BUG_ON_PAGE (!PageHead (page), page);spin_lock (&hugetlb_lock);SetHPageMigratable (page);list_move_tail (&page->lru, &(page_hstate (page))->hugepage_activelist);Signature · 1 line
2.19.1
Signature · 2 lines
Oscar Salvador SUSE L3