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>
Mon, 18 Oct 2021 11:49:39 +0000 (07:49 -0400)
commitf143f1ea5a5380b2682e6836fcd24338a2aa82c7
tree3912ce46f28ad878eea5e51020833563f54c7b53
parent269ccca3899f6bce49e004f50f623e0b161fb027
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