diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2022-02-13 04:48:55 +0100 |
---|---|---|
committer | Matthew Wilcox (Oracle) <willy@infradead.org> | 2022-03-21 17:59:01 +0100 |
commit | 5100da38ef3c33d9ad8b60b29c2b671249bf7e1d (patch) | |
tree | eef4a39c6e56852c4cba81fe237adabb6e70213d /mm/truncate.c | |
parent | mm/truncate: Replace page_mapped() call in invalidate_inode_page() (diff) | |
download | linux-5100da38ef3c33d9ad8b60b29c2b671249bf7e1d.tar.xz linux-5100da38ef3c33d9ad8b60b29c2b671249bf7e1d.zip |
mm: Convert remove_mapping() to take a folio
Add kernel-doc and return the number of pages removed in order to
get the statistics right in __invalidate_mapping_pages().
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Miaohe Lin <linmiaohe@huawei.com>
Diffstat (limited to 'mm/truncate.c')
-rw-r--r-- | mm/truncate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/truncate.c b/mm/truncate.c index 06b7a4ca2370..1d97c4cae6a0 100644 --- a/mm/truncate.c +++ b/mm/truncate.c @@ -294,7 +294,7 @@ int invalidate_inode_page(struct page *page) if (folio_has_private(folio) && !filemap_release_folio(folio, 0)) return 0; - return remove_mapping(mapping, page); + return remove_mapping(mapping, folio); } /** |