]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/filemap: Add FGP_STABLE
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Thu, 24 Dec 2020 17:55:56 +0000 (12:55 -0500)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 16 Aug 2021 03:03:52 +0000 (23:03 -0400)
commit7c468240484db4b402f54a919971ec04cb0a6e91
tree3a2fdb15b1d3f8c38d4b9181882210e5c3325766
parentee189fe13a6b745cbdde84dad2cf472d85f8bb53
mm/filemap: Add FGP_STABLE

Allow filemap_get_folio() to wait for writeback to complete (if the
filesystem wants that behaviour).  This is the folio equivalent of
grab_cache_page_write_begin(), which is moved into the folio-compat
file as a reminder to migrate all the code using it.  This paves the
way for getting rid of AOP_FLAG_NOFS once grab_cache_page_write_begin()
is removed.

Kernel grows by 11 bytes.  filemap_get_folio() grows by 33 bytes but
grab_cache_page_write_begin() shrinks by 22 bytes to make up for it.

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