mm/truncate: Split invalidate_inode_page() into mapping_evict_folio()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Sun, 13 Feb 2022 20:22:28 +0000 (15:22 -0500)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 25 Feb 2022 14:07:43 +0000 (09:07 -0500)
commit9fa6383900fab004c8d3be60bb03408132d38fd5
tree4185c3724954cacdc2aa139a4adafb95f2cf5e2f
parent33d996f2d538ab1844dc3da03c8b9c81a95e44ed
mm/truncate: Split invalidate_inode_page() into mapping_evict_folio()

Some of the callers already have the address_space and can avoid calling
folio_mapping() and checking if the folio was already truncated.  Also
add kernel-doc and fix the return type (in case we ever support folios
larger than 4TB).

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