Skip to content
This repository has been archived by the owner on Oct 2, 2024. It is now read-only.

Commit

Permalink
Remove unused
Browse files Browse the repository at this point in the history
  • Loading branch information
reocat committed Jan 14, 2024
1 parent d231ddf commit f8b7e83
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions mm/vmscan.c
Original file line number Diff line number Diff line change
Expand Up @@ -2555,18 +2555,6 @@ static bool shrink_zone(struct zone *zone, struct scan_control *sc,
sc->nr_scanned - nr_scanned,
zone_lru_pages);

/*
* Record the subtree's reclaim efficiency. The reclaimed
* pages from slab is excluded here because the corresponding
* scanned pages is not accounted. Moreover, freeing a page
* by slab shrinking depends on each slab's object population,
* making the cost model (i.e. scan:free) different from that
* of LRU.
*/
vmpressure(sc->gfp_mask, sc->target_mem_cgroup,
sc->nr_scanned - nr_scanned,
sc->nr_reclaimed - nr_reclaimed);

if (reclaim_state) {
sc->nr_reclaimed += reclaim_state->reclaimed_slab;
reclaim_state->reclaimed_slab = 0;
Expand Down

0 comments on commit f8b7e83

Please sign in to comment.