From: Miaohe Lin Date: Wed, 24 Feb 2021 20:07:43 +0000 (-0800) Subject: mm/hugetlb: remove unnecessary VM_BUG_ON_PAGE on putback_active_hugepage() X-Git-Tag: v5.12-rc1~40^2~45 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=3f1b0162f6f6ae8a9012819b07d433bd0ec37d25;p=linux-platform-drivers-x86.git 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. Link: https://lkml.kernel.org/r/20210209071151.44731-1-linmiaohe@huawei.com Signed-off-by: Miaohe Lin Reviewed-by: Oscar Salvador Cc: Mike Kravetz Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/hugetlb.c b/mm/hugetlb.c index 4c956e64a10c..ddfd1f99c884 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c @@ -5622,7 +5622,6 @@ unlock: void putback_active_hugepage(struct page *page) { - VM_BUG_ON_PAGE(!PageHead(page), page); spin_lock(&hugetlb_lock); set_page_huge_active(page); list_move_tail(&page->lru, &(page_hstate(page))->hugepage_activelist);