]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/writeback: Add folio_account_cleaned()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 4 May 2021 20:12:09 +0000 (16:12 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Sun, 15 Aug 2021 11:01:56 +0000 (07:01 -0400)
commit8797096760902424d096cf5f9c76f24eeb6773ee
tree0a7090e3c1918fab30911a2e27485dac99b56e30
parentf2985b9b5195b73e8d7b9895ef19bf7ae0a658d2
mm/writeback: Add folio_account_cleaned()

Get the statistics right; compound pages were being accounted as a
single page.  This didn't matter before now as no filesystem which
supported compound pages did writeback.  Also move the declaration
to pagemap.h since this is part of the page cache.  Add a wrapper for
account_page_cleaned().

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