mm: Convert remove_mapping() to take a folio
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Sun, 13 Feb 2022 03:48:55 +0000 (22:48 -0500)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 25 Feb 2022 14:06:18 +0000 (09:06 -0500)
commit33d996f2d538ab1844dc3da03c8b9c81a95e44ed
tree812c42b712647dcfea4a5ea6241992eaba0f7f24
parent011b5546d40bf9f848a6453ef203c6c56f74d35d
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>
fs/splice.c
include/linux/swap.h
mm/truncate.c
mm/vmscan.c