mm: use mapping_evict_folio() in truncate_error_page()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 8 Nov 2023 18:28:06 +0000 (18:28 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 11 Dec 2023 00:51:38 +0000 (16:51 -0800)
commit19369d866a8b89788cdc9b10c7b8c9b2777f806b
tree93c36e8b71f4dcf0c1b628d0437ee7dde5721132
parent01d1e0e6b7d99ebaf2e42d2205595080b7d0c271
mm: use mapping_evict_folio() in truncate_error_page()

We already have the folio and the mapping, so replace the call to
invalidate_inode_page() with mapping_evict_folio().

Link: https://lkml.kernel.org/r/20231108182809.602073-4-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Naoya Horiguchi <naoya.horiguchi@nec.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/memory-failure.c