mm/truncate: Convert __invalidate_mapping_pages() to use a folio
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Sun, 13 Feb 2022 21:38:07 +0000 (16:38 -0500)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 21 Mar 2022 16:59:02 +0000 (12:59 -0400)
commitb4545f46533b7e69cb20e05c9fe987be76e1a3da
tree5a100229dd72f8bcbfffac9efa470edced0fa094
parentd6c75dc22c755c567838f12f12a16f2a323ebd4e
mm/truncate: Convert __invalidate_mapping_pages() to use a folio

Now we can call mapping_evict_folio() instead of invalidate_inode_page()
and save a few calls to compound_head().

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Miaohe Lin <linmiaohe@huawei.com>
mm/truncate.c