author: Rik van Riel <riel@surriel.com> 2021-09-08 18:10:08 -0700
committer: Linus Torvalds <torvalds@linux-foundation.org> 2021-09-08 18:45:53 -0700
commit: 32d4f4b782bb8f0ceb78c6b5dc46eb577ae25bf7
parent: 13db8c50477d83ad3e3b9b0ae247e5cd833a7ae4
Commit Summary:
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/mm/vmscan.c b/mm/vmscan.c
index 740d03e6dae2..74296c2d1fed 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -2715,7 +2715,7 @@ out:
cgroup_size = max(cgroup_size, protection);
scan = lruvec_size - lruvec_size * protection /
- cgroup_size;
+ (cgroup_size + 1);
/*
* Minimally target SWAP_CLUSTER_MAX pages to keep