summaryrefslogtreecommitdiffstats
path: root/mm/madvise.c
diff options
context:
space:
mode:
authorSeongJae Park <sj@kernel.org>2024-04-30 00:44:50 +0200
committerAndrew Morton <akpm@linux-foundation.org>2024-05-07 19:37:02 +0200
commit14f5be2a2d9bb7eb21807b6e62de73dd24082b73 (patch)
tree1cab65741d808310decfb00de132ce68a99ba0e5 /mm/madvise.c
parentmm/damon/paddr: do page level access check for pageout DAMOS action on its own (diff)
downloadlinux-14f5be2a2d9bb7eb21807b6e62de73dd24082b73.tar.xz
linux-14f5be2a2d9bb7eb21807b6e62de73dd24082b73.zip
mm/vmscan: remove ignore_references argument of reclaim_pages()
All reclaim_pages() callers are setting 'ignore_references' parameter 'true'. In other words, the parameter is not really being used. Remove the argument to make it simple. Link: https://lkml.kernel.org/r/20240429224451.67081-4-sj@kernel.org Signed-off-by: SeongJae Park <sj@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/madvise.c')
-rw-r--r--mm/madvise.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/madvise.c b/mm/madvise.c
index 56efea02e26c..c8ba3f3eb54d 100644
--- a/mm/madvise.c
+++ b/mm/madvise.c
@@ -423,7 +423,7 @@ static int madvise_cold_or_pageout_pte_range(pmd_t *pmd,
huge_unlock:
spin_unlock(ptl);
if (pageout)
- reclaim_pages(&folio_list, true);
+ reclaim_pages(&folio_list);
return 0;
}
@@ -547,7 +547,7 @@ restart:
pte_unmap_unlock(start_pte, ptl);
}
if (pageout)
- reclaim_pages(&folio_list, true);
+ reclaim_pages(&folio_list);
cond_resched();
return 0;