summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2020-07-17 21:17:37 +1000
committerStephen Rothwell <sfr@canb.auug.org.au>2020-07-17 21:18:47 +1000
commit42c5805d9f7f4f6ca5a710fe040a922d9e86c2ed (patch)
tree80c9200313a258e6dbb201da04e5fcf52240ffcb
parentb1f7350305ce6c6b1184d2dfbcbecac7af0c3ff7 (diff)
downloadlinux-42c5805d9f7f4f6ca5a710fe040a922d9e86c2ed.tar.gz
linux-42c5805d9f7f4f6ca5a710fe040a922d9e86c2ed.tar.xz
fix up for hugetlb.c code movement
Fuxes: "mm,hwpoison: rework soft offline for in-use pages" Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
-rw-r--r--mm/hugetlb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/hugetlb.c b/mm/hugetlb.c
index 1fe5f7229b24..589c330df4db 100644
--- a/mm/hugetlb.c
+++ b/mm/hugetlb.c
@@ -1220,6 +1220,7 @@ static inline void ClearPageHugePoisoned(struct page *page)
page[3].mapping = NULL;
}
+#ifdef CONFIG_ARCH_HAS_GIGANTIC_PAGE
static void destroy_compound_gigantic_page(struct hstate *h, struct page *page,
unsigned int order)
{
@@ -1244,7 +1245,6 @@ static void destroy_compound_gigantic_page(struct hstate *h, struct page *page,
__ClearPageHead(page);
}
-#ifdef CONFIG_ARCH_HAS_GIGANTIC_PAGE
static void free_gigantic_page(struct page *page, unsigned int order)
{
/*