mm: Turn deactivate_file_page() into deactivate_file_folio()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Sun, 13 Feb 2022 21:40:24 +0000 (16:40 -0500)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 25 Feb 2022 14:10:22 +0000 (09:10 -0500)
commita29c80093f14fd8fdf95ebb36834e940b52d67fb
treed54a6a548f6d03f3939524e48e3f4ae8f63ec791
parent8df914f0b3f6bc169a924b878daeb6e49122c74e
mm: Turn deactivate_file_page() into deactivate_file_folio()

This function has one caller which already has a reference to the
page, so we don't need to use get_page_unless_zero().  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/swap.h
mm/internal.h
mm/swap.c
mm/truncate.c