]> git.ipfire.org Git - thirdparty/linux.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>
Mon, 18 Oct 2021 11:49:40 +0000 (07:49 -0400)
commitfc9b6a538b222eaeb4d1e3f93e716b6626d9b653
treebace0aa13d6853d8cb612fa7a599999018b16adc
parent85d4d2ebc86f02740c5f5f72ec43cc47d3560720
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