|
@@ -966,7 +966,7 @@ blkiocg_create(struct cgroup_subsys *subsys, struct cgroup *cgroup)
|
|
|
|
|
|
/* Currently we do not support hierarchy deeper than two level (0,1) */
|
|
/* Currently we do not support hierarchy deeper than two level (0,1) */
|
|
if (parent != cgroup->top_cgroup)
|
|
if (parent != cgroup->top_cgroup)
|
|
- return ERR_PTR(-EINVAL);
|
|
|
|
|
|
+ return ERR_PTR(-EPERM);
|
|
|
|
|
|
blkcg = kzalloc(sizeof(*blkcg), GFP_KERNEL);
|
|
blkcg = kzalloc(sizeof(*blkcg), GFP_KERNEL);
|
|
if (!blkcg)
|
|
if (!blkcg)
|