mm/vmpressure.c: fix subtree pressure detection
authorVladimir Davydov <[email protected]>
Wed, 3 Feb 2016 00:57:49 +0000 (16:57 -0800)
committerLinus Torvalds <[email protected]>
Wed, 3 Feb 2016 16:28:43 +0000 (08:28 -0800)
commit3c1da7beeee02560cd0f0c66c5a59fce3c6746e3
tree2fc9b86f2fc86e7a720b4088aa0a46d4ae1cf909
parent30bdbb78009e67767983085e302bec6d97afc679
mm/vmpressure.c: fix subtree pressure detection

When vmpressure is called for the entire subtree under pressure we
mistakenly use vmpressure->scanned instead of vmpressure->tree_scanned
when checking if vmpressure work is to be scheduled.  This results in
suppressing all vmpressure events in the legacy cgroup hierarchy.  Fix it.

Fixes: 8e8ae645249b ("mm: memcontrol: hook up vmpressure to socket pressure")
Signed-off-by: Vladimir Davydov <[email protected]>
Acked-by: Johannes Weiner <[email protected]>
Acked-by: Michal Hocko <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/vmpressure.c