summaryrefslogtreecommitdiffstats
path: root/mm/vmstat.c
diff options
context:
space:
mode:
authorHugh Dickins2016-01-15 00:21:37 +0100
committerLinus Torvalds2016-01-15 01:00:49 +0100
commit686739f6af5e8d5687ffebbf1193ff066aada6d9 (patch)
treeefb5e9dbd6cdc5be2e8072ea81651bc0a13aecdc /mm/vmstat.c
parentmm: memcontrol: switch to the updated jump-label API (diff)
downloadkernel-qcow2-linux-686739f6af5e8d5687ffebbf1193ff066aada6d9.tar.gz
kernel-qcow2-linux-686739f6af5e8d5687ffebbf1193ff066aada6d9.tar.xz
kernel-qcow2-linux-686739f6af5e8d5687ffebbf1193ff066aada6d9.zip
memcg: avoid vmpressure oops when memcg disabled
A CONFIG_MEMCG=y kernel booted with "cgroup_disable=memory" crashes on a NULL memcg (but non-NULL root_mem_cgroup) when vmpressure kicks in. Here's the patch I use to avoid that, but you might prefer a test on mem_cgroup_disabled() somewhere. Signed-off-by: Hugh Dickins <hughd@google.com> Acked-by: Johannes Weiner <hannes@cmpxchg.org> Cc: David S. Miller <davem@davemloft.net> Cc: Vladimir Davydov <vdavydov@virtuozzo.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/vmstat.c')
0 files changed, 0 insertions, 0 deletions