]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
mm: migrate: fix missing update page_private to hugetlb_page_subpool
authorMuchun Song <songmuchun@bytedance.com>
Wed, 2 Jun 2021 03:52:56 +0000 (13:52 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 2 Jun 2021 03:52:56 +0000 (13:52 +1000)
fix compiler error when !CONFIG_HUGETLB_PAGE reported by Randy

Link: https://lkml.kernel.org/r/20210521022747.35736-1-songmuchun@bytedance.com
Fixes: d6995da31122 ("hugetlb: use page.private for hugetlb specific page flags")
Signed-off-by: Muchun Song <songmuchun@bytedance.com>
Reported-by: Anshuman Khandual <anshuman.khandual@arm.com>
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Reviewed-by: Mike Kravetz <mike.kravetz@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
include/linux/hugetlb.h

index 9f192ce440888c8fb071530a08965623b76392d4..e11a2e9aa514490f999a4682a86ff44b6542be18 100644 (file)
@@ -915,6 +915,11 @@ static inline bool is_hugetlb_free_vmemmap_enabled(void)
 #else  /* CONFIG_HUGETLB_PAGE */
 struct hstate {};
 
+static inline struct hugepage_subpool *hugetlb_page_subpool(struct page *hpage)
+{
+       return NULL;
+}
+
 static inline int isolate_or_dissolve_huge_page(struct page *page,
                                                struct list_head *list)
 {