Skip to content

Commit 14f5be2

Browse files
sjp38akpm00
authored andcommitted
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/[email protected] Signed-off-by: SeongJae Park <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent ebd3f70 commit 14f5be2

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

mm/damon/paddr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ static unsigned long damon_pa_pageout(struct damon_region *r, struct damos *s)
283283
}
284284
if (install_young_filter)
285285
damos_destroy_filter(filter);
286-
applied = reclaim_pages(&folio_list, true);
286+
applied = reclaim_pages(&folio_list);
287287
cond_resched();
288288
return applied * PAGE_SIZE;
289289
}

mm/internal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1052,7 +1052,7 @@ extern unsigned long __must_check vm_mmap_pgoff(struct file *, unsigned long,
10521052
unsigned long, unsigned long);
10531053

10541054
extern void set_pageblock_order(void);
1055-
unsigned long reclaim_pages(struct list_head *folio_list, bool ignore_references);
1055+
unsigned long reclaim_pages(struct list_head *folio_list);
10561056
unsigned int reclaim_clean_pages_from_list(struct zone *zone,
10571057
struct list_head *folio_list);
10581058
/* The ALLOC_WMARK bits are used as an index to zone->watermark */

mm/madvise.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ static int madvise_cold_or_pageout_pte_range(pmd_t *pmd,
423423
huge_unlock:
424424
spin_unlock(ptl);
425425
if (pageout)
426-
reclaim_pages(&folio_list, true);
426+
reclaim_pages(&folio_list);
427427
return 0;
428428
}
429429

@@ -547,7 +547,7 @@ static int madvise_cold_or_pageout_pte_range(pmd_t *pmd,
547547
pte_unmap_unlock(start_pte, ptl);
548548
}
549549
if (pageout)
550-
reclaim_pages(&folio_list, true);
550+
reclaim_pages(&folio_list);
551551
cond_resched();
552552

553553
return 0;

mm/vmscan.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2133,7 +2133,7 @@ static unsigned int reclaim_folio_list(struct list_head *folio_list,
21332133
return nr_reclaimed;
21342134
}
21352135

2136-
unsigned long reclaim_pages(struct list_head *folio_list, bool ignore_references)
2136+
unsigned long reclaim_pages(struct list_head *folio_list)
21372137
{
21382138
int nid;
21392139
unsigned int nr_reclaimed = 0;
@@ -2156,11 +2156,11 @@ unsigned long reclaim_pages(struct list_head *folio_list, bool ignore_references
21562156
}
21572157

21582158
nr_reclaimed += reclaim_folio_list(&node_folio_list, NODE_DATA(nid),
2159-
ignore_references);
2159+
true);
21602160
nid = folio_nid(lru_to_folio(folio_list));
21612161
} while (!list_empty(folio_list));
21622162

2163-
nr_reclaimed += reclaim_folio_list(&node_folio_list, NODE_DATA(nid), ignore_references);
2163+
nr_reclaimed += reclaim_folio_list(&node_folio_list, NODE_DATA(nid), true);
21642164

21652165
memalloc_noreclaim_restore(noreclaim_flag);
21662166

0 commit comments

Comments
 (0)