]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/writeback: Add folio_start_writeback()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Sat, 24 Apr 2021 16:00:48 +0000 (12:00 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Sun, 15 Aug 2021 03:08:57 +0000 (23:08 -0400)
commite93ccd808dff4141a2880c93fecb5742304359e0
tree660e528d06c6c00a445c0946871115732cc541c8
parente2b89715d24511869d63466c7d3f31dfeae03055
mm/writeback: Add folio_start_writeback()

Rename set_page_writeback() to folio_start_writeback() to match
folio_end_writeback().  Do not bother with wrappers that return void;
callers are perfectly capable of ignoring return values.

Add wrappers for set_page_writeback(), set_page_writeback_keepwrite() and
test_set_page_writeback() for compatibililty with existing filesystems.
The main advantage of this patch is getting the statistics right,
although it does eliminate a couple of calls to compound_head().

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/page-flags.h
mm/folio-compat.c
mm/page-writeback.c