Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
6fec4327
Unverified
Commit
6fec4327
authored
Feb 17, 2021
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cgroups: reorder function arguments
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
e82bb1b3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
cgfsng.c
src/lxc/cgroups/cgfsng.c
+5
-4
No files found.
src/lxc/cgroups/cgfsng.c
View file @
6fec4327
...
...
@@ -1101,7 +1101,7 @@ static int __cgroup_tree_create(int dfd_base, const char *path, mode_t mode,
static
bool
cgroup_tree_create
(
struct
cgroup_ops
*
ops
,
struct
lxc_conf
*
conf
,
struct
hierarchy
*
h
,
const
char
*
cgroup_leaf
,
bool
payload
,
const
char
*
cgroup_limit_dir
)
const
char
*
cgroup_limit_dir
,
bool
payload
)
{
__do_close
int
fd_limit
=
-
EBADF
,
fd_final
=
-
EBADF
;
__do_free
char
*
path
=
NULL
,
*
limit_path
=
NULL
;
...
...
@@ -1354,7 +1354,7 @@ __cgfsng_ops static bool cgfsng_monitor_create(struct cgroup_ops *ops, struct lx
for
(
i
=
0
;
ops
->
hierarchies
[
i
];
i
++
)
{
if
(
cgroup_tree_create
(
ops
,
handler
->
conf
,
ops
->
hierarchies
[
i
],
monitor_cgroup
,
false
,
NULL
))
monitor_cgroup
,
NULL
,
false
))
continue
;
DEBUG
(
"Failed to create cgroup
\"
%s
\"
"
,
maybe_empty
(
ops
->
hierarchies
[
i
]
->
monitor_full_path
));
...
...
@@ -1450,8 +1450,9 @@ __cgfsng_ops static bool cgfsng_payload_create(struct cgroup_ops *ops, struct lx
for
(
i
=
0
;
ops
->
hierarchies
[
i
];
i
++
)
{
if
(
cgroup_tree_create
(
ops
,
handler
->
conf
,
ops
->
hierarchies
[
i
],
container_cgroup
,
true
,
limiting_cgroup
))
container_cgroup
,
limiting_cgroup
,
true
))
continue
;
DEBUG
(
"Failed to create cgroup
\"
%s
\"
"
,
ops
->
hierarchies
[
i
]
->
container_full_path
?:
"(null)"
);
...
...
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