mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-06 04:19:23 -04:00
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>
This commit is contained in:
committed by
Andrew Morton
parent
41e422a898
commit
2355153ea8
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user