Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
a5e7ed32
cloud-kernel
项目概览
openanolis
/
cloud-kernel
1 年多 前同步成功
通知
160
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
a5e7ed32
编写于
7月 26, 2011
作者:
A
Al Viro
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
cgroup: propagate mode_t
Signed-off-by:
N
Al Viro
<
viro@zeniv.linux.org.uk
>
上级
f9ec8006
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
8 addition
and
8 deletion
+8
-8
include/linux/cgroup.h
include/linux/cgroup.h
+1
-1
kernel/cgroup.c
kernel/cgroup.c
+7
-7
未找到文件。
include/linux/cgroup.h
浏览文件 @
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
浏览文件 @
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
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录