Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

mm: remove page_cache_alloc()

Patch series "More folio compat code removal".

More code removal with bonus kernel-doc addition.


This patch (of 7):

All callers have now been converted to filemap_alloc_folio().

Link: https://lkml.kernel.org/r/20240424191914.361554-1-willy@infradead.org
Link: https://lkml.kernel.org/r/20240424191914.361554-2-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Matthew Wilcox (Oracle) and committed by
Andrew Morton
3f2ae4eb a568b412

-5
-5
include/linux/pagemap.h
··· 558 558 return &filemap_alloc_folio(gfp, 0)->page; 559 559 } 560 560 561 - static inline struct page *page_cache_alloc(struct address_space *x) 562 - { 563 - return __page_cache_alloc(mapping_gfp_mask(x)); 564 - } 565 - 566 561 static inline gfp_t readahead_gfp_mask(struct address_space *x) 567 562 { 568 563 return mapping_gfp_mask(x) | __GFP_NORETRY | __GFP_NOWARN;