Message ID | 20210909011008.OFzJhcuDA%akpm@linux-foundation.org |
---|---|
State | New |
Headers | show |
Series | [1/8] mm/hmm: bypass devmap pte when all pfn requested flags are fulfilled | expand |
--- a/mm/vmscan.c~mmvmscan-fix-divide-by-zero-in-get_scan_count +++ a/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