summaryrefslogtreecommitdiff
path: root/include/linux/mm.h
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2025-04-02 22:06:10 +0100
committerAndrew Morton <akpm@linux-foundation.org>2025-05-11 17:48:06 -0700
commit2355153ea8185e7deaf9ce728716dadb707ef59f (patch)
tree2c17d81ce4f255000f4b33aa5dcfb4bdbb0dedf2 /include/linux/mm.h
parent41e422a898da69e903a846dfb2b0c0ff62abc3cd (diff)
mm: delete thp_nr_pages()
All callers now use folio_nr_pages(). Delete this wrapper. Link: https://lkml.kernel.org/r/20250402210612.2444135-9-willy@infradead.org Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Reviewed-by: David Hildenbrand <david@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'include/linux/mm.h')
-rw-r--r--include/linux/mm.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h
index ae67d3a33792..dcdb798184ef 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -2224,15 +2224,6 @@ static inline long compound_nr(struct page *page)
}
/**
- * thp_nr_pages - The number of regular pages in this huge page.
- * @page: The head page of a huge page.
- */
-static inline long thp_nr_pages(struct page *page)
-{
- return folio_nr_pages((struct folio *)page);
-}
-
-/**
* folio_next - Move to the next physical folio.
* @folio: The folio we're currently operating on.
*