]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/writeback: Add folio_clear_dirty_for_io()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Sun, 28 Feb 2021 21:21:20 +0000 (16:21 -0500)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Sun, 15 Aug 2021 15:31:56 +0000 (11:31 -0400)
commitb159d0975b0bae94fbff8a217ccbb0c30a65f9ca
tree2f66c21cb9f26a6177e4ab713aa22cda14e3ee79
parentb16b13ab960bf27496535753d03503fca598d169
mm/writeback: Add folio_clear_dirty_for_io()

Transform clear_page_dirty_for_io() into folio_clear_dirty_for_io()
and add a compatibility wrapper.  Also move the declaration to pagemap.h
as this is page cache functionality that doesn't need to be used by the
rest of the kernel.

Increases the size of the kernel by 79 bytes.  While we remove a few
calls to compound_head(), we add a call to folio_nr_pages() to get the
stats correct for the eventual support of multi-page folios.

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