mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
Merge branch 'master' into for-2.6.35
Conflicts: fs/ext3/fsync.c Signed-off-by: Jens Axboe <[email protected]>
This commit is contained in:
commit
ee9a3607fb
5727 changed files with 379086 additions and 149040 deletions
|
|
@ -956,16 +956,16 @@ static void blkiocg_destroy(struct cgroup_subsys *subsys, struct cgroup *cgroup)
|
|||
static struct cgroup_subsys_state *
|
||||
blkiocg_create(struct cgroup_subsys *subsys, struct cgroup *cgroup)
|
||||
{
|
||||
struct blkio_cgroup *blkcg, *parent_blkcg;
|
||||
struct blkio_cgroup *blkcg;
|
||||
struct cgroup *parent = cgroup->parent;
|
||||
|
||||
if (!cgroup->parent) {
|
||||
if (!parent) {
|
||||
blkcg = &blkio_root_cgroup;
|
||||
goto done;
|
||||
}
|
||||
|
||||
/* Currently we do not support hierarchy deeper than two level (0,1) */
|
||||
parent_blkcg = cgroup_to_blkio_cgroup(cgroup->parent);
|
||||
if (css_depth(&parent_blkcg->css) > 0)
|
||||
if (parent != cgroup->top_cgroup)
|
||||
return ERR_PTR(-EINVAL);
|
||||
|
||||
blkcg = kzalloc(sizeof(*blkcg), GFP_KERNEL);
|
||||
|
|
|
|||
Loading…
Reference in a new issue