]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - mm/vmscan.c
x86/speculation/mmio: Add sysfs reporting for Processor MMIO Stale Data
[mirror_ubuntu-jammy-kernel.git] / mm / vmscan.c
index 740d03e6dae280f60f75cfb2e05486b8c74c9988..74296c2d1fed28e06088eb89b8e912bc73bd5f71 100644 (file)
@@ -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