truncate: Convert invalidate_inode_pages2_range to folios
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Thu, 20 May 2021 12:17:44 +0000 (08:17 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Sat, 8 Jan 2022 05:28:41 +0000 (00:28 -0500)
commitf6357c3a9d3ea5a00c5bf52845b633d649da6722
treebc7ee8f208669a1195504f8953fbf5ae3dab6592
parent338f379cf7c21e3bc31186f303ac99dc5d2cc613
truncate: Convert invalidate_inode_pages2_range to folios

If we're going to unmap a folio, we have to be sure to unmap the entire
folio, not just the part of it which lies after the search index.

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