Skip to content

Commit

Permalink
mm/compaction: remove unused parameter pgdata of fragmentation_score_…
Browse files Browse the repository at this point in the history
…wmark

Parameter pgdat is not used in fragmentation_score_wmark. Just remove it.

Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Kemeng Shi <[email protected]>
Reviewed-by: David Hildenbrand <[email protected]>
Acked-by: Mel Gorman <[email protected]>
Reviewed-by: Baolin Wang <[email protected]>
Cc: Matthew Wilcox <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
  • Loading branch information
Kemeng Shi authored and akpm00 committed Aug 21, 2023
1 parent 1305870 commit 8fbb92b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mm/compaction.c
Original file line number Diff line number Diff line change
Expand Up @@ -2140,7 +2140,7 @@ static unsigned int fragmentation_score_node(pg_data_t *pgdat)
return score;
}

static unsigned int fragmentation_score_wmark(pg_data_t *pgdat, bool low)
static unsigned int fragmentation_score_wmark(bool low)
{
unsigned int wmark_low;

Expand All @@ -2160,7 +2160,7 @@ static bool should_proactive_compact_node(pg_data_t *pgdat)
if (!sysctl_compaction_proactiveness || kswapd_is_running(pgdat))
return false;

wmark_high = fragmentation_score_wmark(pgdat, false);
wmark_high = fragmentation_score_wmark(false);
return fragmentation_score_node(pgdat) > wmark_high;
}

Expand Down Expand Up @@ -2199,7 +2199,7 @@ static enum compact_result __compact_finished(struct compact_control *cc)
return COMPACT_PARTIAL_SKIPPED;

score = fragmentation_score_zone(cc->zone);
wmark_low = fragmentation_score_wmark(pgdat, true);
wmark_low = fragmentation_score_wmark(true);

if (score > wmark_low)
ret = COMPACT_CONTINUE;
Expand Down

0 comments on commit 8fbb92b

Please sign in to comment.