]> git.ipfire.org Git - thirdparty/linux.git/commit - mm/filemap.c
filemap: Convert filemap_fault to folio
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 10 Mar 2021 15:46:41 +0000 (10:46 -0500)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 4 Jan 2022 18:15:34 +0000 (13:15 -0500)
commite292e6d644ce7ba4036494dc1b6ae1dcd79e0a86
tree00949e5cef1c6e7e58522912b2f5fd7a9670382b
parent79598cedad85d192dac2b85799f44aa31f7f2279
filemap: Convert filemap_fault to folio

Instead of converting back-and-forth between the actual page and
the head page, just convert once at the end of the function where we
set the vmf->page.  Saves 241 bytes of text, or 15% of the size of
filemap_fault().

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: William Kucharski <william.kucharski@oracle.com>
mm/filemap.c