From: Matthew Wilcox (Oracle) Date: Wed, 2 Apr 2025 21:06:10 +0000 (+0100) Subject: mm: delete thp_nr_pages() X-Git-Tag: v6.16-rc1~92^2~265 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2355153ea8185e7deaf9ce728716dadb707ef59f;p=thirdparty%2Fkernel%2Fstable.git 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) Reviewed-by: David Hildenbrand Signed-off-by: Andrew Morton --- diff --git a/include/linux/mm.h b/include/linux/mm.h index ae67d3a337925..dcdb798184ef7 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -2223,15 +2223,6 @@ static inline long compound_nr(struct page *page) return folio_large_nr_pages(folio); } -/** - * 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.