mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
filemap: add mapping_read_folio_gfp()
This is like read_cache_page_gfp() except it returns the folio instead of the precise page. Link: https://lkml.kernel.org/r/20230206162520.4029022-1-willy@infradead.org Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Cc: Charan Teja Kalla <quic_charante@quicinc.com> Cc: David Rientjes <rientjes@google.com> Cc: Hugh Dickins <hughd@google.com> Cc: Mark Hemment <markhemm@googlemail.com> Cc: Michal Hocko <mhocko@suse.com> Cc: Pavankumar Kondeti <quic_pkondeti@quicinc.com> Cc: Shakeel Butt <shakeelb@google.com> Cc: Suren Baghdasaryan <surenb@google.com> Cc: Vlastimil Babka <vbabka@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
committed by
Andrew Morton
parent
aa02d3c174
commit
3e629597b8
@@ -756,6 +756,8 @@ static inline struct page *grab_cache_page(struct address_space *mapping,
|
||||
|
||||
struct folio *read_cache_folio(struct address_space *, pgoff_t index,
|
||||
filler_t *filler, struct file *file);
|
||||
struct folio *mapping_read_folio_gfp(struct address_space *, pgoff_t index,
|
||||
gfp_t flags);
|
||||
struct page *read_cache_page(struct address_space *, pgoff_t index,
|
||||
filler_t *filler, struct file *file);
|
||||
extern struct page * read_cache_page_gfp(struct address_space *mapping,
|
||||
|
Reference in New Issue
Block a user