diff mbox series

[1/7] mm: Remove page_cache_alloc()

Message ID 20240424191914.361554-2-willy@infradead.org (mailing list archive)
State New
Headers show
Series More folio compat code removal | expand

Commit Message

Matthew Wilcox April 24, 2024, 7:19 p.m. UTC
All callers have now been converted to filemap_alloc_folio().

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
---
 include/linux/pagemap.h | 5 -----
 1 file changed, 5 deletions(-)
diff mbox series

Patch

diff --git a/include/linux/pagemap.h b/include/linux/pagemap.h
index 941f7ed714b9..1dcaf86fb615 100644
--- a/include/linux/pagemap.h
+++ b/include/linux/pagemap.h
@@ -557,11 +557,6 @@  static inline struct page *__page_cache_alloc(gfp_t gfp)
 	return &filemap_alloc_folio(gfp, 0)->page;
 }
 
-static inline struct page *page_cache_alloc(struct address_space *x)
-{
-	return __page_cache_alloc(mapping_gfp_mask(x));
-}
-
 static inline gfp_t readahead_gfp_mask(struct address_space *x)
 {
 	return mapping_gfp_mask(x) | __GFP_NORETRY | __GFP_NOWARN;