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
nexedi
linux
Commits
e637835e
Commit
e637835e
authored
Nov 20, 2016
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fsnotify(): constify 'data'
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
3cd5eca8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
fs/notify/fsnotify.c
fs/notify/fsnotify.c
+3
-3
include/linux/fsnotify_backend.h
include/linux/fsnotify_backend.h
+2
-2
No files found.
fs/notify/fsnotify.c
View file @
e637835e
...
...
@@ -125,7 +125,7 @@ EXPORT_SYMBOL_GPL(__fsnotify_parent);
static
int
send_to_group
(
struct
inode
*
to_tell
,
struct
fsnotify_mark
*
inode_mark
,
struct
fsnotify_mark
*
vfsmount_mark
,
__u32
mask
,
void
*
data
,
__u32
mask
,
const
void
*
data
,
int
data_is
,
u32
cookie
,
const
unsigned
char
*
file_name
)
{
...
...
@@ -187,7 +187,7 @@ static int send_to_group(struct inode *to_tell,
* out to all of the registered fsnotify_group. Those groups can then use the
* notification event in whatever means they feel necessary.
*/
int
fsnotify
(
struct
inode
*
to_tell
,
__u32
mask
,
void
*
data
,
int
data_is
,
int
fsnotify
(
struct
inode
*
to_tell
,
__u32
mask
,
const
void
*
data
,
int
data_is
,
const
unsigned
char
*
file_name
,
u32
cookie
)
{
struct
hlist_node
*
inode_node
=
NULL
,
*
vfsmount_node
=
NULL
;
...
...
@@ -199,7 +199,7 @@ int fsnotify(struct inode *to_tell, __u32 mask, void *data, int data_is,
__u32
test_mask
=
(
mask
&
~
FS_EVENT_ON_CHILD
);
if
(
data_is
==
FSNOTIFY_EVENT_PATH
)
mnt
=
real_mount
(((
struct
path
*
)
data
)
->
mnt
);
mnt
=
real_mount
(((
const
struct
path
*
)
data
)
->
mnt
);
else
mnt
=
NULL
;
...
...
include/linux/fsnotify_backend.h
View file @
e637835e
...
...
@@ -245,7 +245,7 @@ struct fsnotify_mark {
/* called from the vfs helpers */
/* main fsnotify call to send events */
extern
int
fsnotify
(
struct
inode
*
to_tell
,
__u32
mask
,
void
*
data
,
int
data_is
,
extern
int
fsnotify
(
struct
inode
*
to_tell
,
__u32
mask
,
const
void
*
data
,
int
data_is
,
const
unsigned
char
*
name
,
u32
cookie
);
extern
int
__fsnotify_parent
(
struct
path
*
path
,
struct
dentry
*
dentry
,
__u32
mask
);
extern
void
__fsnotify_inode_delete
(
struct
inode
*
inode
);
...
...
@@ -357,7 +357,7 @@ extern void fsnotify_init_event(struct fsnotify_event *event,
#else
static
inline
int
fsnotify
(
struct
inode
*
to_tell
,
__u32
mask
,
void
*
data
,
int
data_is
,
static
inline
int
fsnotify
(
struct
inode
*
to_tell
,
__u32
mask
,
const
void
*
data
,
int
data_is
,
const
unsigned
char
*
name
,
u32
cookie
)
{
return
0
;
...
...
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