Thread (2 messages) flat view 2 messages, 2 authors, 2021-08-20
STALE1826d

[PATCH] mm: Export PageHeadHuge()

From: David Howells <dhowells@redhat.com>
Date: 2021-08-20 16:14:53
Also in: linux-fsdevel, lkml
Subsystem: hugetlb subsystem, memory management, the rest · Maintainers: Muchun Song, Oscar Salvador, Andrew Morton, Linus Torvalds

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(+)
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.


Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help