diff mbox series

[RFC,4/4] mm: page_ext: drop page_ext_next()

Message ID 3604c0ceeb0942b25ef645f4b74154c0122149f4.1737754625.git.luizcap@redhat.com (mailing list archive)
State New
Headers show
Series mm: page_ext: Fix crash when reserving 1G pages | expand

Commit Message

Luiz Capitulino Jan. 24, 2025, 9:37 p.m. UTC
Previous commits converted users to the new page extension iteration API.

TODO: We can use this implementation for flatmem.

Fixes: e98337d11bbd ("mm/contig_alloc: support __GFP_COMP")
Signed-off-by: Luiz Capitulino <luizcap@redhat.com>
---
 include/linux/page_ext.h | 7 -------
 1 file changed, 7 deletions(-)
diff mbox series

Patch

diff --git a/include/linux/page_ext.h b/include/linux/page_ext.h
index df904544d3fac..4bbc6638fe14f 100644
--- a/include/linux/page_ext.h
+++ b/include/linux/page_ext.h
@@ -86,13 +86,6 @@  static inline void *page_ext_data(struct page_ext *page_ext,
 	return (void *)(page_ext) + ops->offset;
 }
 
-static inline struct page_ext *page_ext_next(struct page_ext *curr)
-{
-	void *next = curr;
-	next += page_ext_size;
-	return next;
-}
-
 struct page_ext_iter {
 	unsigned long pfn;
 	struct page_ext *page_ext;