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
61983e15
Unverified
Commit
61983e15
authored
Feb 24, 2021
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cgroups: s/cgroup_layout/layout/g
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
c206ac24
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
cgfsng.c
src/lxc/cgroups/cgfsng.c
+1
-1
cgroup.h
src/lxc/cgroups/cgroup.h
+2
-2
No files found.
src/lxc/cgroups/cgfsng.c
View file @
61983e15
...
@@ -3406,7 +3406,7 @@ static int __cgroup_attach_many(const struct lxc_conf *conf, const char *name,
...
@@ -3406,7 +3406,7 @@ static int __cgroup_attach_many(const struct lxc_conf *conf, const char *name,
if
(
idx
==
0
)
if
(
idx
==
0
)
return
syserrno_set
(
-
ENOENT
,
"Failed to attach to cgroups"
);
return
syserrno_set
(
-
ENOENT
,
"Failed to attach to cgroups"
);
TRACE
(
"Attached to %s cgroup layout"
,
cgroup_layout_name
(
ctx
->
cgroup_
layout
));
TRACE
(
"Attached to %s cgroup layout"
,
cgroup_layout_name
(
ctx
->
layout
));
return
0
;
return
0
;
}
}
...
...
src/lxc/cgroups/cgroup.h
View file @
61983e15
...
@@ -64,7 +64,7 @@ typedef enum {
...
@@ -64,7 +64,7 @@ typedef enum {
// BUILD_BUG_ON(CGROUP_CTX_MAX_FD > KERNEL_SCM_MAX_FD);
// BUILD_BUG_ON(CGROUP_CTX_MAX_FD > KERNEL_SCM_MAX_FD);
struct
cgroup_ctx
{
struct
cgroup_ctx
{
__s32
cgroup_
layout
;
__s32
layout
;
__u32
utilities
;
__u32
utilities
;
__u32
fd_len
;
__u32
fd_len
;
__s32
fd
[
CGROUP_CTX_MAX_FD
];
__s32
fd
[
CGROUP_CTX_MAX_FD
];
...
@@ -311,7 +311,7 @@ static inline int prepare_cgroup_ctx(struct cgroup_ops *ops,
...
@@ -311,7 +311,7 @@ static inline int prepare_cgroup_ctx(struct cgroup_ops *ops,
return
ret_errno
(
ENOENT
);
return
ret_errno
(
ENOENT
);
ctx
->
fd_len
=
idx
;
ctx
->
fd_len
=
idx
;
ctx
->
cgroup_
layout
=
ops
->
cgroup_layout
;
ctx
->
layout
=
ops
->
cgroup_layout
;
if
(
ops
->
unified
&&
ops
->
unified
->
dfd_con
>
0
)
if
(
ops
->
unified
&&
ops
->
unified
->
dfd_con
>
0
)
ctx
->
utilities
=
ops
->
unified
->
utilities
;
ctx
->
utilities
=
ops
->
unified
->
utilities
;
...
...
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