]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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>
Sun, 15 Aug 2021 15:31:40 +0000 (11:31 -0400)
commitb16b13ab960bf27496535753d03503fca598d169
tree3baafe6640e3a20ded4949d67dc9ca4e59372cb5
parent8797096760902424d096cf5f9c76f24eeb6773ee
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