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
40212d53
Commit
40212d53
authored
Nov 20, 2016
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fsnotify: constify the places working with ->f_path
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
12c7f9dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
include/linux/fsnotify.h
include/linux/fsnotify.h
+5
-5
No files found.
include/linux/fsnotify.h
View file @
40212d53
...
...
@@ -28,7 +28,7 @@ static inline int fsnotify_parent(const struct path *path, struct dentry *dentry
/* simple call site for access decisions */
static
inline
int
fsnotify_perm
(
struct
file
*
file
,
int
mask
)
{
struct
path
*
path
=
&
file
->
f_path
;
const
struct
path
*
path
=
&
file
->
f_path
;
/*
* Do not use file_inode() here or anywhere in this file to get the
* inode. That would break *notity on overlayfs.
...
...
@@ -176,7 +176,7 @@ static inline void fsnotify_mkdir(struct inode *inode, struct dentry *dentry)
*/
static
inline
void
fsnotify_access
(
struct
file
*
file
)
{
struct
path
*
path
=
&
file
->
f_path
;
const
struct
path
*
path
=
&
file
->
f_path
;
struct
inode
*
inode
=
path
->
dentry
->
d_inode
;
__u32
mask
=
FS_ACCESS
;
...
...
@@ -194,7 +194,7 @@ static inline void fsnotify_access(struct file *file)
*/
static
inline
void
fsnotify_modify
(
struct
file
*
file
)
{
struct
path
*
path
=
&
file
->
f_path
;
const
struct
path
*
path
=
&
file
->
f_path
;
struct
inode
*
inode
=
path
->
dentry
->
d_inode
;
__u32
mask
=
FS_MODIFY
;
...
...
@@ -212,7 +212,7 @@ static inline void fsnotify_modify(struct file *file)
*/
static
inline
void
fsnotify_open
(
struct
file
*
file
)
{
struct
path
*
path
=
&
file
->
f_path
;
const
struct
path
*
path
=
&
file
->
f_path
;
struct
inode
*
inode
=
path
->
dentry
->
d_inode
;
__u32
mask
=
FS_OPEN
;
...
...
@@ -228,7 +228,7 @@ static inline void fsnotify_open(struct file *file)
*/
static
inline
void
fsnotify_close
(
struct
file
*
file
)
{
struct
path
*
path
=
&
file
->
f_path
;
const
struct
path
*
path
=
&
file
->
f_path
;
struct
inode
*
inode
=
path
->
dentry
->
d_inode
;
fmode_t
mode
=
file
->
f_mode
;
__u32
mask
=
(
mode
&
FMODE_WRITE
)
?
FS_CLOSE_WRITE
:
FS_CLOSE_NOWRITE
;
...
...
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