mm: correct arg in reclaim_pages()/reclaim_clean_pages_from_list()
authorKefeng Wang <wangkefeng.wang@huawei.com>
Mon, 17 Apr 2023 11:48:07 +0000 (19:48 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 21 Apr 2023 21:52:02 +0000 (14:52 -0700)
commit4bf4f155bfbc77a12ad2c9e12d9f57718adb9a5c
treebae3865fc93a81cd6c0526fc37845c43be97b21e
parentc6c8c3e7b47d7d20952202e7568389a5e3b043dd
mm: correct arg in reclaim_pages()/reclaim_clean_pages_from_list()

Both of them change the arg from page_list to folio_list when convert them
to use a folio, but not the declaration, let's correct it, also move the
reclaim_pages() from swap.h to internal.h as it only used in mm.

Link: https://lkml.kernel.org/r/20230417114807.186786-1-wangkefeng.wang@huawei.com
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Reviwed-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: SeongJae Park <sj@kernel.org>
Reviewed-by: David Hildenbrand <david@redhat.com>
Cc: Hugh Dickins <hughd@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/swap.h
mm/internal.h