memcg: add mem_cgroup_root_css
authorTejun Heo <tj@kernel.org>
Fri, 22 May 2015 21:13:20 +0000 (17:13 -0400)
committerJens Axboe <axboe@fb.com>
Tue, 2 Jun 2015 14:33:33 +0000 (08:33 -0600)
commit56161634e4824380a67243a4cf3fa52eb1e5d836
treef270436ae91d6a472efc425c256f487460e9b108
parentec13b1d6f0a0457312e615335ce8ceb07da50a11
memcg: add mem_cgroup_root_css

Add global mem_cgroup_root_css which points to the root memcg css.
This will be used by cgroup writeback support.  If memcg is disabled,
it's defined as ERR_PTR(-EINVAL).

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Johannes Weiner <hannes@cmpxchg.org>
aCc: Michal Hocko <mhocko@suse.cz>
Signed-off-by: Jens Axboe <axboe@fb.com>
include/linux/memcontrol.h
mm/memcontrol.c