filemap: Add read_cache_folio and read_mapping_folio
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 16 Dec 2020 16:45:30 +0000 (11:45 -0500)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 4 Jan 2022 18:15:34 +0000 (13:15 -0500)
commit539a3322f208db478db88c4a76239476defce6b1
treebaac2207dbcd2a3847a78e436223aad27073913d
parente292e6d644ce7ba4036494dc1b6ae1dcd79e0a86
filemap: Add read_cache_folio and read_mapping_folio

Reimplement read_cache_page() as a wrapper around read_cache_folio().
Saves over 400 bytes of text from do_read_cache_folio() which more
than makes up for the extra 100 bytes of text added to the various
wrapper functions.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: William Kucharski <william.kucharski@oracle.com>
include/linux/pagemap.h
mm/filemap.c