]> git.baikalelectronics.ru Git - kernel.git/commit
vmscan: fix sane_reclaim helper for legacy memcg
authorVladimir Davydov <vdavydov@parallels.com>
Tue, 22 Sep 2015 21:59:20 +0000 (14:59 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 22 Sep 2015 22:09:53 +0000 (15:09 -0700)
commit5843c11c3994b8ee68ad6b88d46df00ae2a87ab8
treef890e8ebe10bbfbf2252de20d1fb9d60c1b425b8
parent6407cf88ef5aaa654a1beaf0ba456f9544063b48
vmscan: fix sane_reclaim helper for legacy memcg

The sane_reclaim() helper is supposed to return false for memcg reclaim
if the legacy hierarchy is used, because the latter lacks dirty
throttling mechanism, and so it did before it was accidentally broken by
commit 5e941251b82a2 ("memcg: export struct mem_cgroup").  Fix it.

Fixes: 5e941251b82a2 ("memcg: export struct mem_cgroup")
Signed-off-by: Vladimir Davydov <vdavydov@parallels.com>
Acked-by: Tejun Heo <tj@kernel.org>
Acked-by: Michal Hocko <mhocko@suse.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/vmscan.c