From: Tejun Heo Date: Sun, 4 May 2014 19:09:13 +0000 (-0400) Subject: cgroup, memcg: allocate cgroup ID from 1 X-Git-Tag: omap-for-v3.16/fixes-against-rc1~81^2~58 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7d699ddb2b181a2c76e5ea18b1bdf102c4bebe4b;p=pandora-kernel.git cgroup, memcg: allocate cgroup ID from 1 Currently, cgroup->id is allocated from 0, which is always assigned to the root cgroup; unfortunately, memcg wants to use ID 0 to indicate invalid IDs and ends up incrementing all IDs by one. It's reasonable to reserve 0 for special purposes. This patch updates cgroup core so that ID 0 is not used and the root cgroups get ID 1. The ID incrementing is removed form memcg. Signed-off-by: Tejun Heo Acked-by: Michal Hocko Cc: Johannes Weiner Acked-by: Li Zefan --- Reading git-diff-tree failed