diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2020-12-24 12:55:56 -0500 |
---|---|---|
committer | Matthew Wilcox (Oracle) <willy@infradead.org> | 2021-09-27 09:27:34 -0400 |
commit | 011cfd9e145a864c1e722053d813d50098d5e9b7 (patch) | |
tree | dc29d2197ffe6a3d6f28d1aec43883381478839a /mm/page-writeback.c | |
parent | db2c05d524eb660a3e1151cb18f621906e6eec7c (diff) |
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>
Diffstat (limited to 'mm/page-writeback.c')
0 files changed, 0 insertions, 0 deletions