diff options
author | 2022-02-13 16:40:24 -0500 | |
---|---|---|
committer | 2022-03-21 12:59:02 -0400 | |
commit | 261b6840ed10419ac2f554e515592d59dd5c82cf (patch) | |
tree | 4613688e69179573f8f0174340de334ecd58aec0 /include/linux/swap.h | |
parent | mm/truncate: Convert __invalidate_mapping_pages() to use a folio (diff) | |
download | linux-261b6840ed10419ac2f554e515592d59dd5c82cf.tar.gz linux-261b6840ed10419ac2f554e515592d59dd5c82cf.tar.bz2 linux-261b6840ed10419ac2f554e515592d59dd5c82cf.zip |
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>
Diffstat (limited to 'include/linux/swap.h')
-rw-r--r-- | include/linux/swap.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/swap.h b/include/linux/swap.h index 304f174b4d31..064e60e9f63f 100644 --- a/include/linux/swap.h +++ b/include/linux/swap.h @@ -372,7 +372,6 @@ extern void lru_add_drain(void); extern void lru_add_drain_cpu(int cpu); extern void lru_add_drain_cpu_zone(struct zone *zone); extern void lru_add_drain_all(void); -extern void deactivate_file_page(struct page *page); extern void deactivate_page(struct page *page); extern void mark_page_lazyfree(struct page *page); extern void swap_setup(void); |