From: Tejun Heo Date: Fri, 14 Jun 2013 18:18:22 +0000 (-0700) Subject: cgroup: disallow rename(2) if sane_behavior X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~44^2~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6db8e85c5c1f89cd0183b76dab027c81009f129f;p=pandora-kernel.git cgroup: disallow rename(2) if sane_behavior cgroup's rename(2) isn't a proper migration implementation - it can't move the cgroup to a different parent in the hierarchy. All it can do is swapping the name string for that cgroup. This isn't useful and can mislead users to think that cgroup supports proper cgroup-level migration. Disallow rename(2) if sane_behavior. v2: Fail with -EPERM instead of -EINVAL so that it matches the vfs return value when ->rename is not implemented as suggested by Li. Signed-off-by: Tejun Heo Acked-by: Li Zefan --- Reading git-diff-tree failed