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>
Fri, 25 Feb 2022 14:10:22 +0000 (09:10 -0500)
commit999efe1cbd9ef3c429471f23fc006fd63c516343
tree07509298ed02c12eb0266c2a8cfafa6b514b405c
parenta29c80093f14fd8fdf95ebb36834e940b52d67fb
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