Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
3cd5eca8
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看板
提交
3cd5eca8
编写于
11月 20, 2016
作者:
A
Al Viro
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fsnotify: constify 'data' passed to ->handle_event()
Signed-off-by:
N
Al Viro
<
viro@zeniv.linux.org.uk
>
上级
640eb7e7
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
20 addition
and
20 deletion
+20
-20
fs/notify/dnotify/dnotify.c
fs/notify/dnotify/dnotify.c
+1
-1
fs/notify/fanotify/fanotify.c
fs/notify/fanotify/fanotify.c
+4
-4
fs/notify/fanotify/fanotify.h
fs/notify/fanotify/fanotify.h
+1
-1
fs/notify/inotify/inotify.h
fs/notify/inotify/inotify.h
+1
-1
fs/notify/inotify/inotify_fsnotify.c
fs/notify/inotify/inotify_fsnotify.c
+2
-2
include/linux/fsnotify_backend.h
include/linux/fsnotify_backend.h
+1
-1
kernel/audit_fsnotify.c
kernel/audit_fsnotify.c
+5
-5
kernel/audit_tree.c
kernel/audit_tree.c
+1
-1
kernel/audit_watch.c
kernel/audit_watch.c
+4
-4
未找到文件。
fs/notify/dnotify/dnotify.c
浏览文件 @
3cd5eca8
...
...
@@ -85,7 +85,7 @@ static int dnotify_handle_event(struct fsnotify_group *group,
struct
inode
*
inode
,
struct
fsnotify_mark
*
inode_mark
,
struct
fsnotify_mark
*
vfsmount_mark
,
u32
mask
,
void
*
data
,
int
data_type
,
u32
mask
,
const
void
*
data
,
int
data_type
,
const
unsigned
char
*
file_name
,
u32
cookie
)
{
struct
dnotify_mark
*
dn_mark
;
...
...
fs/notify/fanotify/fanotify.c
浏览文件 @
3cd5eca8
...
...
@@ -90,10 +90,10 @@ static int fanotify_get_response(struct fsnotify_group *group,
static
bool
fanotify_should_send_event
(
struct
fsnotify_mark
*
inode_mark
,
struct
fsnotify_mark
*
vfsmnt_mark
,
u32
event_mask
,
void
*
data
,
int
data_type
)
const
void
*
data
,
int
data_type
)
{
__u32
marks_mask
,
marks_ignored_mask
;
struct
path
*
path
=
data
;
const
struct
path
*
path
=
data
;
pr_debug
(
"%s: inode_mark=%p vfsmnt_mark=%p mask=%x data=%p"
" data_type=%d
\n
"
,
__func__
,
inode_mark
,
vfsmnt_mark
,
...
...
@@ -140,7 +140,7 @@ static bool fanotify_should_send_event(struct fsnotify_mark *inode_mark,
}
struct
fanotify_event_info
*
fanotify_alloc_event
(
struct
inode
*
inode
,
u32
mask
,
struct
path
*
path
)
const
struct
path
*
path
)
{
struct
fanotify_event_info
*
event
;
...
...
@@ -177,7 +177,7 @@ static int fanotify_handle_event(struct fsnotify_group *group,
struct
inode
*
inode
,
struct
fsnotify_mark
*
inode_mark
,
struct
fsnotify_mark
*
fanotify_mark
,
u32
mask
,
void
*
data
,
int
data_type
,
u32
mask
,
const
void
*
data
,
int
data_type
,
const
unsigned
char
*
file_name
,
u32
cookie
)
{
int
ret
=
0
;
...
...
fs/notify/fanotify/fanotify.h
浏览文件 @
3cd5eca8
...
...
@@ -47,4 +47,4 @@ static inline struct fanotify_event_info *FANOTIFY_E(struct fsnotify_event *fse)
}
struct
fanotify_event_info
*
fanotify_alloc_event
(
struct
inode
*
inode
,
u32
mask
,
struct
path
*
path
);
const
struct
path
*
path
);
fs/notify/inotify/inotify.h
浏览文件 @
3cd5eca8
...
...
@@ -26,7 +26,7 @@ extern int inotify_handle_event(struct fsnotify_group *group,
struct
inode
*
inode
,
struct
fsnotify_mark
*
inode_mark
,
struct
fsnotify_mark
*
vfsmount_mark
,
u32
mask
,
void
*
data
,
int
data_type
,
u32
mask
,
const
void
*
data
,
int
data_type
,
const
unsigned
char
*
file_name
,
u32
cookie
);
extern
const
struct
fsnotify_ops
inotify_fsnotify_ops
;
fs/notify/inotify/inotify_fsnotify.c
浏览文件 @
3cd5eca8
...
...
@@ -66,7 +66,7 @@ int inotify_handle_event(struct fsnotify_group *group,
struct
inode
*
inode
,
struct
fsnotify_mark
*
inode_mark
,
struct
fsnotify_mark
*
vfsmount_mark
,
u32
mask
,
void
*
data
,
int
data_type
,
u32
mask
,
const
void
*
data
,
int
data_type
,
const
unsigned
char
*
file_name
,
u32
cookie
)
{
struct
inotify_inode_mark
*
i_mark
;
...
...
@@ -80,7 +80,7 @@ int inotify_handle_event(struct fsnotify_group *group,
if
((
inode_mark
->
mask
&
FS_EXCL_UNLINK
)
&&
(
data_type
==
FSNOTIFY_EVENT_PATH
))
{
struct
path
*
path
=
data
;
const
struct
path
*
path
=
data
;
if
(
d_unlinked
(
path
->
dentry
))
return
0
;
...
...
include/linux/fsnotify_backend.h
浏览文件 @
3cd5eca8
...
...
@@ -96,7 +96,7 @@ struct fsnotify_ops {
struct
inode
*
inode
,
struct
fsnotify_mark
*
inode_mark
,
struct
fsnotify_mark
*
vfsmount_mark
,
u32
mask
,
void
*
data
,
int
data_type
,
u32
mask
,
const
void
*
data
,
int
data_type
,
const
unsigned
char
*
file_name
,
u32
cookie
);
void
(
*
free_group_priv
)(
struct
fsnotify_group
*
group
);
void
(
*
freeing_mark
)(
struct
fsnotify_mark
*
mark
,
struct
fsnotify_group
*
group
);
...
...
kernel/audit_fsnotify.c
浏览文件 @
3cd5eca8
...
...
@@ -74,7 +74,7 @@ int audit_mark_compare(struct audit_fsnotify_mark *mark, unsigned long ino, dev_
}
static
void
audit_update_mark
(
struct
audit_fsnotify_mark
*
audit_mark
,
struct
inode
*
inode
)
const
struct
inode
*
inode
)
{
audit_mark
->
dev
=
inode
?
inode
->
i_sb
->
s_dev
:
AUDIT_DEV_UNSET
;
audit_mark
->
ino
=
inode
?
inode
->
i_ino
:
AUDIT_INO_UNSET
;
...
...
@@ -168,11 +168,11 @@ static int audit_mark_handle_event(struct fsnotify_group *group,
struct
inode
*
to_tell
,
struct
fsnotify_mark
*
inode_mark
,
struct
fsnotify_mark
*
vfsmount_mark
,
u32
mask
,
void
*
data
,
int
data_type
,
u32
mask
,
const
void
*
data
,
int
data_type
,
const
unsigned
char
*
dname
,
u32
cookie
)
{
struct
audit_fsnotify_mark
*
audit_mark
;
struct
inode
*
inode
=
NULL
;
const
struct
inode
*
inode
=
NULL
;
audit_mark
=
container_of
(
inode_mark
,
struct
audit_fsnotify_mark
,
mark
);
...
...
@@ -180,10 +180,10 @@ static int audit_mark_handle_event(struct fsnotify_group *group,
switch
(
data_type
)
{
case
(
FSNOTIFY_EVENT_PATH
):
inode
=
((
struct
path
*
)
data
)
->
dentry
->
d_inode
;
inode
=
((
const
struct
path
*
)
data
)
->
dentry
->
d_inode
;
break
;
case
(
FSNOTIFY_EVENT_INODE
):
inode
=
(
struct
inode
*
)
data
;
inode
=
(
const
struct
inode
*
)
data
;
break
;
default:
BUG
();
...
...
kernel/audit_tree.c
浏览文件 @
3cd5eca8
...
...
@@ -948,7 +948,7 @@ static int audit_tree_handle_event(struct fsnotify_group *group,
struct
inode
*
to_tell
,
struct
fsnotify_mark
*
inode_mark
,
struct
fsnotify_mark
*
vfsmount_mark
,
u32
mask
,
void
*
data
,
int
data_type
,
u32
mask
,
const
void
*
data
,
int
data_type
,
const
unsigned
char
*
file_name
,
u32
cookie
)
{
return
0
;
...
...
kernel/audit_watch.c
浏览文件 @
3cd5eca8
...
...
@@ -472,10 +472,10 @@ static int audit_watch_handle_event(struct fsnotify_group *group,
struct
inode
*
to_tell
,
struct
fsnotify_mark
*
inode_mark
,
struct
fsnotify_mark
*
vfsmount_mark
,
u32
mask
,
void
*
data
,
int
data_type
,
u32
mask
,
const
void
*
data
,
int
data_type
,
const
unsigned
char
*
dname
,
u32
cookie
)
{
struct
inode
*
inode
;
const
struct
inode
*
inode
;
struct
audit_parent
*
parent
;
parent
=
container_of
(
inode_mark
,
struct
audit_parent
,
mark
);
...
...
@@ -484,10 +484,10 @@ static int audit_watch_handle_event(struct fsnotify_group *group,
switch
(
data_type
)
{
case
(
FSNOTIFY_EVENT_PATH
):
inode
=
d_backing_inode
(((
struct
path
*
)
data
)
->
dentry
);
inode
=
d_backing_inode
(((
const
struct
path
*
)
data
)
->
dentry
);
break
;
case
(
FSNOTIFY_EVENT_INODE
):
inode
=
(
struct
inode
*
)
data
;
inode
=
(
const
struct
inode
*
)
data
;
break
;
default:
BUG
();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录