mm/writeback: Add folio_cancel_dirty()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 8 Mar 2021 21:43:04 +0000 (16:43 -0500)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 18 Oct 2021 11:49:40 +0000 (07:49 -0400)
commitfdaf532a23795e320c47e1caab50a53c202135c5
tree8c3d7d01b53dc1d7eb7a9c44b6fdc3d1e6733f12
parentfc9b6a538b222eaeb4d1e3f93e716b6626d9b653
mm/writeback: Add folio_cancel_dirty()

Turn __cancel_dirty_page() into __folio_cancel_dirty() and add wrappers.
Move the prototypes into pagemap.h since this is page cache functionality.
Saves 44 bytes of kernel text in total; 33 bytes from __folio_cancel_dirty
and 11 from two callers of cancel_dirty_page().

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/page-writeback.c