projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
41e422a
)
mm: delete thp_nr_pages()
author
Matthew Wilcox (Oracle)
<willy@infradead.org>
Wed, 2 Apr 2025 21:06:10 +0000
(22:06 +0100)
committer
Andrew Morton
<akpm@linux-foundation.org>
Mon, 12 May 2025 00:48:06 +0000
(17:48 -0700)
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>
include/linux/mm.h
patch
|
blob
|
blame
|
history
diff --git
a/include/linux/mm.h
b/include/linux/mm.h
index ae67d3a337925f2fc934a7adba019930708d02de..dcdb798184ef72e2162bafc5887ef9ad7951e9b8 100644
(file)
--- 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.