mm/filemap: Add filemap_alloc_folio
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 16 Dec 2020 04:11:07 +0000 (23:11 -0500)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 18 Oct 2021 11:49:40 +0000 (07:49 -0400)
commitbb3c579e25e5757bc5bac1333f4a56dfebf7cb91
tree1a20d81732d86e00c385fc709e8fd87465144e08
parentcc09cb134124a42fbe3bdcebefdc54e286d8f3e5
mm/filemap: Add filemap_alloc_folio

Reimplement __page_cache_alloc as a wrapper around filemap_alloc_folio
to allow filesystems to be converted at our leisure.  Increases
kernel text size by 133 bytes, mostly in cachefiles_read_backing_file().
pagecache_get_page() shrinks by 32 bytes, though.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: David Howells <dhowells@redhat.com>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
include/linux/pagemap.h
mm/filemap.c