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
a5e7ed32
Commit
a5e7ed32
authored
Jul 26, 2011
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cgroup: propagate mode_t
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
f9ec8006
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
include/linux/cgroup.h
include/linux/cgroup.h
+1
-1
kernel/cgroup.c
kernel/cgroup.c
+7
-7
No files found.
include/linux/cgroup.h
View file @
a5e7ed32
...
...
@@ -319,7 +319,7 @@ struct cftype {
* If not 0, file mode is set to this value, otherwise it will
* be figured out automatically
*/
mode_t
mode
;
u
mode_t
mode
;
/*
* If non-zero, defines the maximum length of string that can
...
...
kernel/cgroup.c
View file @
a5e7ed32
...
...
@@ -775,7 +775,7 @@ static struct backing_dev_info cgroup_backing_dev_info = {
static
int
alloc_css_id
(
struct
cgroup_subsys
*
ss
,
struct
cgroup
*
parent
,
struct
cgroup
*
child
);
static
struct
inode
*
cgroup_new_inode
(
mode_t
mode
,
struct
super_block
*
sb
)
static
struct
inode
*
cgroup_new_inode
(
u
mode_t
mode
,
struct
super_block
*
sb
)
{
struct
inode
*
inode
=
new_inode
(
sb
);
...
...
@@ -2585,7 +2585,7 @@ static inline struct cftype *__file_cft(struct file *file)
return
__d_cft
(
file
->
f_dentry
);
}
static
int
cgroup_create_file
(
struct
dentry
*
dentry
,
mode_t
mode
,
static
int
cgroup_create_file
(
struct
dentry
*
dentry
,
u
mode_t
mode
,
struct
super_block
*
sb
)
{
struct
inode
*
inode
;
...
...
@@ -2626,7 +2626,7 @@ static int cgroup_create_file(struct dentry *dentry, mode_t mode,
* @mode: mode to set on new directory.
*/
static
int
cgroup_create_dir
(
struct
cgroup
*
cgrp
,
struct
dentry
*
dentry
,
mode_t
mode
)
u
mode_t
mode
)
{
struct
dentry
*
parent
;
int
error
=
0
;
...
...
@@ -2653,9 +2653,9 @@ static int cgroup_create_dir(struct cgroup *cgrp, struct dentry *dentry,
* returns S_IRUGO if it has only a read handler
* returns S_IWUSR if it has only a write hander
*/
static
mode_t
cgroup_file_mode
(
const
struct
cftype
*
cft
)
static
u
mode_t
cgroup_file_mode
(
const
struct
cftype
*
cft
)
{
mode_t
mode
=
0
;
u
mode_t
mode
=
0
;
if
(
cft
->
mode
)
return
cft
->
mode
;
...
...
@@ -2678,7 +2678,7 @@ int cgroup_add_file(struct cgroup *cgrp,
struct
dentry
*
dir
=
cgrp
->
dentry
;
struct
dentry
*
dentry
;
int
error
;
mode_t
mode
;
u
mode_t
mode
;
char
name
[
MAX_CGROUP_TYPE_NAMELEN
+
MAX_CFTYPE_NAME
+
2
]
=
{
0
};
if
(
subsys
&&
!
test_bit
(
ROOT_NOPREFIX
,
&
cgrp
->
root
->
flags
))
{
...
...
@@ -3752,7 +3752,7 @@ static void cgroup_unlock_hierarchy(struct cgroupfs_root *root)
* Must be called with the mutex on the parent inode held
*/
static
long
cgroup_create
(
struct
cgroup
*
parent
,
struct
dentry
*
dentry
,
mode_t
mode
)
u
mode_t
mode
)
{
struct
cgroup
*
cgrp
;
struct
cgroupfs_root
*
root
=
parent
->
root
;
...
...
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