diff mbox series

mm: Export PageHeadHuge()

Message ID 162947608701.760537.640097323184606750.stgit@warthog.procyon.org.uk (mailing list archive)
State New, archived
Headers show
Series mm: Export PageHeadHuge() | expand

Commit Message

David Howells Aug. 20, 2021, 4:14 p.m. UTC
Export PageHeadHuge() - it's used by folio_test_hugetlb() and thence by
folio_file_page() and folio_contains().

Signed-off-by: David Howells <dhowells@redhat.com>
---

 mm/hugetlb.c |    1 +
 1 file changed, 1 insertion(+)

Comments

Christoph Hellwig Aug. 20, 2021, 5:35 p.m. UTC | #1
On Fri, Aug 20, 2021 at 05:14:47PM +0100, David Howells wrote:
> Export PageHeadHuge() - it's used by folio_test_hugetlb() and thence by
> folio_file_page() and folio_contains().

.. none of which are used in modular code in linux-next.
diff mbox series

Patch

diff --git a/mm/hugetlb.c b/mm/hugetlb.c
index 68eead0259cc..ad6ef6d2c0bc 100644
--- a/mm/hugetlb.c
+++ b/mm/hugetlb.c
@@ -1717,6 +1717,7 @@  int PageHeadHuge(struct page *page_head)
 
 	return page_head[1].compound_dtor == HUGETLB_PAGE_DTOR;
 }
+EXPORT_SYMBOL(PageHeadHuge);
 
 /*
  * Find and lock address space (mapping) in write mode.