diff mbox series

[3/5] mm: remove thp_nr_pages()

Message ID 20240817095122.2460977-4-wangkefeng.wang@huawei.com (mailing list archive)
State New
Headers show
Series mm: finish three more folio conversion | expand

Commit Message

Kefeng Wang Aug. 17, 2024, 9:51 a.m. UTC
There are no users of thp_nr_pages(), remove it.

Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
---
 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 653287396808..d6a1b8356a31 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -2065,15 +2065,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.