Skip to content

Commit 284f795

Browse files
committed
mglru: Add changes from v5
Signed-off-by: Eric Naim <dnaim@cachyos.org>
1 parent 102c30a commit 284f795

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mm/vmscan.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4787,7 +4787,7 @@ static long get_nr_to_scan(struct lruvec *lruvec, struct scan_control *sc,
47874787
* to keep reclaim moving forwards.
47884788
*/
47894789
nr_to_scan >>= sc->priority;
4790-
if (!nr_to_scan)
4790+
if (!nr_to_scan && sc->priority < DEF_PRIORITY)
47914791
nr_to_scan = min(evictable, SWAP_CLUSTER_MAX);
47924792

47934793
return nr_to_scan;

0 commit comments

Comments
 (0)