Commits
Andrey Ryabinin authored and Konstantin Khorenko committed 6254b06fdfb
mm/vmscan: Use per-zone sum of reclaim_stat to change zone state. Currently we collect reclaim stats per-lru list and set zone flags based on these stats. This seems wrong, as lrus a per-memcg thus one zone could have hundreds of them. Move all that zone-related logic from shrink_inactive_list() to shrink_zone, and make decisions based on per-zone sum of reclaim stat instead of just per-lru. https://jira.sw.ru/browse/PSBM-61409 Signed-off-by: Andrey Ryabinin <aryabinin@virtuozzo.com>