diff options
author | Miaohe Lin <linmiaohe@huawei.com> | 2021-02-24 12:07:43 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2021-02-24 13:38:33 -0800 |
commit | 3f1b0162f6f6ae8a9012819b07d433bd0ec37d25 (patch) | |
tree | b0dfbb412dea6fe916e50a5f5fd5fc99e0527085 /mm/hugetlb.c | |
parent | 07e51edf839ab85187acf013384ceecbbba40b0b (diff) | |
download | lwn-3f1b0162f6f6ae8a9012819b07d433bd0ec37d25.tar.gz lwn-3f1b0162f6f6ae8a9012819b07d433bd0ec37d25.zip |
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 <linmiaohe@huawei.com>
Reviewed-by: Oscar Salvador <osalvador@suse.de>
Cc: Mike Kravetz <mike.kravetz@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/hugetlb.c')
-rw-r--r-- | mm/hugetlb.c | 1 |
1 files changed, 0 insertions, 1 deletions
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); |