Message ID | 20240722102338.2567810-1-zhaoyang.huang@unisoc.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | [RFC] mm: keep LRU order by move unisolated folios to tail | expand |
diff --git a/mm/vmscan.c b/mm/vmscan.c index 2e34de9cd0d4..cd1f38bb1d45 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -4397,7 +4397,10 @@ static int scan_folios(struct lruvec *lruvec, struct scan_control *sc, } if (skipped_zone) { - list_splice(&moved, head); + if (sc->priority > DEF_PRIORITY - 2) + list_splice_tail(&moved, head); + else + list_splice(&moved, head); __count_zid_vm_events(PGSCAN_SKIP, zone, skipped_zone); skipped += skipped_zone; }