memcg: convert to use cgroup id
authorLi Zefan <lizefan@huawei.com>
Mon, 23 Sep 2013 08:56:01 +0000 (16:56 +0800)
committerTejun Heo <tj@kernel.org>
Tue, 24 Sep 2013 01:44:14 +0000 (21:44 -0400)
commit34c00c319ce7eddf79be0cd307acd5630addcbb8
tree258bfd6fe01e876feea8a05112338564dde46e05
parentb47f77b5a2243768d5cb1f143ce5e6c28baa271a
memcg: convert to use cgroup id

Use cgroup id instead of css id. This is a preparation to kill css id.

Note, as memcg treat 0 as an invalid id, while cgroup id starts with 0,
we define memcg_id == cgroup_id + 1.

Signed-off-by: Li Zefan <lizefan@huawei.com>
Acked-by: Michal Hocko <mhocko@suse.cz>
Signed-off-by: Tejun Heo <tj@kernel.org>
mm/memcontrol.c