]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit729024294b627818fafdae3ac632dba2fa5731d8
treef270436ae91d6a472efc425c256f487460e9b108
parentf8be0a35ed9b50f2f04697c387013e5af048b4f1
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