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
a12df67a
Unverified
Commit
a12df67a
authored
Feb 15, 2021
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cgroups: s/__cg_mount_direct()/__cgroupfs_mount()/g
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
8c527d87
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
cgfsng.c
src/lxc/cgroups/cgfsng.c
+6
-6
No files found.
src/lxc/cgroups/cgfsng.c
View file @
a12df67a
...
...
@@ -1767,15 +1767,15 @@ static int cg_legacy_mount_controllers(int cg_flags, struct hierarchy *h,
return
0
;
}
/* __cg
_mount_direc
t
/* __cg
roupfs_moun
t
*
* Mount cgroup hierarchies directly without using bind-mounts. The main
* uses-cases are mounting cgroup hierarchies in cgroup namespaces and mounting
* cgroups for the LXC_AUTO_CGROUP_FULL option.
*/
static
int
__cg
_mount_direc
t
(
int
cg_flags
,
struct
hierarchy
*
h
,
struct
lxc_rootfs
*
root
fs
,
int
dfd_mnt_cgroupfs
,
const
char
*
hierarchy_mnt
)
static
int
__cg
roupfs_moun
t
(
int
cg_flags
,
struct
hierarchy
*
h
,
struct
lxc_rootfs
*
rootfs
,
int
dfd_mnt_cgroup
fs
,
const
char
*
hierarchy_mnt
)
{
__do_close
int
fd_fs
=
-
EBADF
;
unsigned
int
flags
=
0
;
...
...
@@ -1851,7 +1851,7 @@ 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_direc
t
(
cg_flags
,
h
,
rootfs
,
dfd_mnt_cgroupfs
,
hierarchy_mnt
);
return
__cg
roupfs_moun
t
(
cg_flags
,
h
,
rootfs
,
dfd_mnt_cgroupfs
,
hierarchy_mnt
);
}
static
inline
int
cgroupfs_bind_mount
(
int
cg_flags
,
struct
hierarchy
*
h
,
...
...
@@ -1863,7 +1863,7 @@ static inline int cgroupfs_bind_mount(int cg_flags, struct hierarchy *h,
!
(
cg_flags
&
LXC_AUTO_CGROUP_FULL_MIXED
))
return
0
;
return
__cg
_mount_direc
t
(
cg_flags
,
h
,
rootfs
,
dfd_mnt_cgroupfs
,
hierarchy_mnt
);
return
__cg
roupfs_moun
t
(
cg_flags
,
h
,
rootfs
,
dfd_mnt_cgroupfs
,
hierarchy_mnt
);
}
__cgfsng_ops
static
bool
cgfsng_mount
(
struct
cgroup_ops
*
ops
,
...
...
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