diff mbox series

[6/6] mm: Delete thp_nr_pages()

Message ID 20250303175317.3277891-7-willy@infradead.org (mailing list archive)
State New
Headers show
Series ITER_XARRAY cleanups and consequences | expand

Commit Message

Matthew Wilcox (Oracle) March 3, 2025, 5:53 p.m. UTC
All callers now use folio_nr_pages().  Delete this wrapper.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
---
 include/linux/mm.h | 9 ---------
 1 file changed, 9 deletions(-)
diff mbox series

Patch

diff --git a/include/linux/mm.h b/include/linux/mm.h
index d5844ade822c..39eef633d725 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -2129,15 +2129,6 @@  static inline unsigned long compound_nr(struct page *page)
 #endif
 }
 
-/**
- * thp_nr_pages - The number of regular pages in this huge page.
- * @page: The head page of a huge page.
- */
-static inline int 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.