Skip to content

Commit c961bdd

Browse files
sjp38akpm00
authored andcommitted
mm/vmscan: remove ignore_references argument of reclaim_folio_list()
All reclaim_folio_list() callers are passing 'true' for 'ignore_references' parameter. In other words, the parameter is not really being used. Simplify the code by removing the parameter. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: SeongJae Park <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 14f5be2 commit c961bdd

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

mm/vmscan.c

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2109,8 +2109,7 @@ static void shrink_active_list(unsigned long nr_to_scan,
21092109
}
21102110

21112111
static unsigned int reclaim_folio_list(struct list_head *folio_list,
2112-
struct pglist_data *pgdat,
2113-
bool ignore_references)
2112+
struct pglist_data *pgdat)
21142113
{
21152114
struct reclaim_stat dummy_stat;
21162115
unsigned int nr_reclaimed;
@@ -2123,7 +2122,7 @@ static unsigned int reclaim_folio_list(struct list_head *folio_list,
21232122
.no_demotion = 1,
21242123
};
21252124

2126-
nr_reclaimed = shrink_folio_list(folio_list, pgdat, &sc, &dummy_stat, ignore_references);
2125+
nr_reclaimed = shrink_folio_list(folio_list, pgdat, &sc, &dummy_stat, true);
21272126
while (!list_empty(folio_list)) {
21282127
folio = lru_to_folio(folio_list);
21292128
list_del(&folio->lru);
@@ -2155,12 +2154,11 @@ unsigned long reclaim_pages(struct list_head *folio_list)
21552154
continue;
21562155
}
21572156

2158-
nr_reclaimed += reclaim_folio_list(&node_folio_list, NODE_DATA(nid),
2159-
true);
2157+
nr_reclaimed += reclaim_folio_list(&node_folio_list, NODE_DATA(nid));
21602158
nid = folio_nid(lru_to_folio(folio_list));
21612159
} while (!list_empty(folio_list));
21622160

2163-
nr_reclaimed += reclaim_folio_list(&node_folio_list, NODE_DATA(nid), true);
2161+
nr_reclaimed += reclaim_folio_list(&node_folio_list, NODE_DATA(nid));
21642162

21652163
memalloc_noreclaim_restore(noreclaim_flag);
21662164

0 commit comments

Comments
 (0)