fs/writeback: Convert inode_switch_wbs_work_fn to folios
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 19 Mar 2021 12:58:36 +0000 (08:58 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 3 Jan 2022 01:28:49 +0000 (20:28 -0500)
commit22b3c8d6612e09f5fcecba1009d399aaf7f934f6
tree2d4aca790c22b52ecb0cd648860e2be273b7c682
parent9144785b02765409f63b2fe16948bc746248cf1f
fs/writeback: Convert inode_switch_wbs_work_fn to folios

This gets the statistics correct for large folios by modifying the
counters by the number of pages in the folio instead of by 1.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: William Kucharski <william.kucharski@oracle.com>
fs/fs-writeback.c