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
12c7f9dc
Commit
12c7f9dc
authored
Nov 20, 2016
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
constify fsnotify_parent()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
e637835e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
fs/notify/fsnotify.c
fs/notify/fsnotify.c
+1
-1
include/linux/fsnotify.h
include/linux/fsnotify.h
+1
-1
include/linux/fsnotify_backend.h
include/linux/fsnotify_backend.h
+2
-2
No files found.
fs/notify/fsnotify.c
View file @
12c7f9dc
...
...
@@ -86,7 +86,7 @@ void __fsnotify_update_child_dentry_flags(struct inode *inode)
}
/* Notify this dentry's parent about a child's events. */
int
__fsnotify_parent
(
struct
path
*
path
,
struct
dentry
*
dentry
,
__u32
mask
)
int
__fsnotify_parent
(
const
struct
path
*
path
,
struct
dentry
*
dentry
,
__u32
mask
)
{
struct
dentry
*
parent
;
struct
inode
*
p_inode
;
...
...
include/linux/fsnotify.h
View file @
12c7f9dc
...
...
@@ -17,7 +17,7 @@
#include <linux/bug.h>
/* Notify this dentry's parent about a child's events. */
static
inline
int
fsnotify_parent
(
struct
path
*
path
,
struct
dentry
*
dentry
,
__u32
mask
)
static
inline
int
fsnotify_parent
(
const
struct
path
*
path
,
struct
dentry
*
dentry
,
__u32
mask
)
{
if
(
!
dentry
)
dentry
=
path
->
dentry
;
...
...
include/linux/fsnotify_backend.h
View file @
12c7f9dc
...
...
@@ -247,7 +247,7 @@ struct fsnotify_mark {
/* main fsnotify call to send events */
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
int
__fsnotify_parent
(
const
struct
path
*
path
,
struct
dentry
*
dentry
,
__u32
mask
);
extern
void
__fsnotify_inode_delete
(
struct
inode
*
inode
);
extern
void
__fsnotify_vfsmount_delete
(
struct
vfsmount
*
mnt
);
extern
u32
fsnotify_get_cookie
(
void
);
...
...
@@ -363,7 +363,7 @@ static inline int fsnotify(struct inode *to_tell, __u32 mask, const void *data,
return
0
;
}
static
inline
int
__fsnotify_parent
(
struct
path
*
path
,
struct
dentry
*
dentry
,
__u32
mask
)
static
inline
int
__fsnotify_parent
(
const
struct
path
*
path
,
struct
dentry
*
dentry
,
__u32
mask
)
{
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