Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
bdf3d06b
Commit
bdf3d06b
authored
Jan 26, 2017
by
Tejun Heo
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'for-4.10-fixes' into for-4.11
parents
bfc2cf6f
07cd1294
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
kernel/cgroup/cgroup.c
kernel/cgroup/cgroup.c
+5
-8
No files found.
kernel/cgroup/cgroup.c
View file @
bdf3d06b
...
@@ -4071,6 +4071,11 @@ static struct cgroup_subsys_state *css_create(struct cgroup *cgrp,
...
@@ -4071,6 +4071,11 @@ static struct cgroup_subsys_state *css_create(struct cgroup *cgrp,
return
ERR_PTR
(
err
);
return
ERR_PTR
(
err
);
}
}
/*
* The returned cgroup is fully initialized including its control mask, but
* it isn't associated with its kernfs_node and doesn't have the control
* mask applied.
*/
static
struct
cgroup
*
cgroup_create
(
struct
cgroup
*
parent
)
static
struct
cgroup
*
cgroup_create
(
struct
cgroup
*
parent
)
{
{
struct
cgroup_root
*
root
=
parent
->
root
;
struct
cgroup_root
*
root
=
parent
->
root
;
...
@@ -4138,11 +4143,6 @@ static struct cgroup *cgroup_create(struct cgroup *parent)
...
@@ -4138,11 +4143,6 @@ static struct cgroup *cgroup_create(struct cgroup *parent)
cgroup_propagate_control
(
cgrp
);
cgroup_propagate_control
(
cgrp
);
/* @cgrp doesn't have dir yet so the following will only create csses */
ret
=
cgroup_apply_control_enable
(
cgrp
);
if
(
ret
)
goto
out_destroy
;
return
cgrp
;
return
cgrp
;
out_cancel_ref:
out_cancel_ref:
...
@@ -4150,9 +4150,6 @@ static struct cgroup *cgroup_create(struct cgroup *parent)
...
@@ -4150,9 +4150,6 @@ static struct cgroup *cgroup_create(struct cgroup *parent)
out_free_cgrp:
out_free_cgrp:
kfree
(
cgrp
);
kfree
(
cgrp
);
return
ERR_PTR
(
ret
);
return
ERR_PTR
(
ret
);
out_destroy:
cgroup_destroy_locked
(
cgrp
);
return
ERR_PTR
(
ret
);
}
}
int
cgroup_mkdir
(
struct
kernfs_node
*
parent_kn
,
const
char
*
name
,
umode_t
mode
)
int
cgroup_mkdir
(
struct
kernfs_node
*
parent_kn
,
const
char
*
name
,
umode_t
mode
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment