mm/truncate: Combine invalidate_mapping_pagevec() and __invalidate_mapping_pages()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Sun, 13 Feb 2022 22:22:10 +0000 (17:22 -0500)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 21 Mar 2022 16:59:02 +0000 (12:59 -0400)
commitc56109dd35c9204cd6c49d2116ef36e5044ef867
treedd7d6540d3562d0760663375cb88b76cb0bf310d
parent261b6840ed10419ac2f554e515592d59dd5c82cf
mm/truncate: Combine invalidate_mapping_pagevec() and __invalidate_mapping_pages()

We can save a function call by combining these two functions, which
are identical except for the return value.  Also move the prototype
to mm/internal.h.

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/fs.h
mm/internal.h
mm/truncate.c