ext4: Convert mpage_release_unused_pages() to use filemap_get_folios()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 3 Jun 2022 19:36:49 +0000 (15:36 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 29 Jun 2022 12:51:06 +0000 (08:51 -0400)
commitfb5a5be05fb45ab6fb3d1036c53435cde3d420ab
tree394bf3fbd42f3f917e2b73495001f0858fdb65ca
parent9e0b6f31bae6645010d2aa325560e74c05e17e5b
ext4: Convert mpage_release_unused_pages() to use filemap_get_folios()

If the folio is large, it may overlap the beginning or end of the
unused range.  If it does, we need to avoid invalidating it.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Acked-by: Christian Brauner (Microsoft) <brauner@kernel.org>
fs/ext4/inode.c