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
074af890
Unverified
Commit
074af890
authored
Feb 15, 2021
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cgroups: s/cg_mount_in_cgroup_namespace()/cgroupfs_mount()/g
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
6cc501f3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
cgfsng.c
src/lxc/cgroups/cgfsng.c
+5
-6
No files found.
src/lxc/cgroups/cgfsng.c
View file @
074af890
...
...
@@ -1848,10 +1848,9 @@ static int __cg_mount_direct(int cg_flags, struct hierarchy *h,
return
0
;
}
static
inline
int
cg_mount_in_cgroup_namespace
(
int
cg_flags
,
struct
hierarchy
*
h
,
struct
lxc_rootfs
*
rootfs
,
int
dfd_mnt_cgroupfs
,
const
char
*
hierarchy_mnt
)
static
inline
int
cgroupfs_mount
(
int
cg_flags
,
struct
hierarchy
*
h
,
struct
lxc_rootfs
*
rootfs
,
int
dfd_mnt_cgroupfs
,
const
char
*
hierarchy_mnt
)
{
return
__cg_mount_direct
(
cg_flags
,
h
,
rootfs
,
dfd_mnt_cgroupfs
,
hierarchy_mnt
);
}
...
...
@@ -1941,7 +1940,7 @@ __cgfsng_ops static bool cgfsng_mount(struct cgroup_ops *ops,
* the cgroups manually.
*/
if
(
in_cgroup_ns
&&
wants_force_mount
)
ret
=
cg
_mount_in_cgroup_namespace
(
cg_flags
,
ops
->
unified
,
rootfs
,
dfd_mnt_cgroupfs
,
""
);
ret
=
cg
roupfs_mount
(
cg_flags
,
ops
->
unified
,
rootfs
,
dfd_mnt_cgroupfs
,
""
);
else
ret
=
cg_mount_cgroup_full
(
cg_flags
,
ops
->
unified
,
rootfs
,
dfd_mnt_cgroupfs
,
""
);
if
(
ret
<
0
)
...
...
@@ -2013,7 +2012,7 @@ __cgfsng_ops static bool cgfsng_mount(struct cgroup_ops *ops,
* will not have CAP_SYS_ADMIN after it has started we
* need to mount the cgroups manually.
*/
ret
=
cg
_mount_in_cgroup_namespace
(
cg_flags
,
h
,
rootfs
,
dfd_mnt_cgroupfs
,
controller
);
ret
=
cg
roupfs_mount
(
cg_flags
,
h
,
rootfs
,
dfd_mnt_cgroupfs
,
controller
);
if
(
ret
<
0
)
return
false
;
...
...
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