]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
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>
Mon, 21 Mar 2022 16:59:02 +0000 (12:59 -0400)
commit261b6840ed10419ac2f554e515592d59dd5c82cf
tree4613688e69179573f8f0174340de334ecd58aec0
parentb4545f46533b7e69cb20e05c9fe987be76e1a3da
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