]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - block/blk-cgroup.c
Merge branch 'for-2.6.37/core' of git://git.kernel.dk/linux-2.6-block
[mv-sheeva.git] / block / blk-cgroup.c
index 0f59b23096db628c23fe111f867e0fe55cda9e8c..b1febd0f6d2a5227f617d82c7d4687e190cfc456 100644 (file)
@@ -1454,7 +1454,7 @@ blkiocg_create(struct cgroup_subsys *subsys, struct cgroup *cgroup)
 
        /* Currently we do not support hierarchy deeper than two level (0,1) */
        if (parent != cgroup->top_cgroup)
-               return ERR_PTR(-EINVAL);
+               return ERR_PTR(-EPERM);
 
        blkcg = kzalloc(sizeof(*blkcg), GFP_KERNEL);
        if (!blkcg)