diff options
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r-- | include/linux/fs.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 85fe89c43487..50ef4d4c95bf 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -90,6 +90,9 @@ struct inodes_stat_t { | |||
90 | /* Expect random access pattern */ | 90 | /* Expect random access pattern */ |
91 | #define FMODE_RANDOM ((__force fmode_t)0x1000) | 91 | #define FMODE_RANDOM ((__force fmode_t)0x1000) |
92 | 92 | ||
93 | /* File was opened by fanotify and shouldn't generate fanotify events */ | ||
94 | #define FMODE_NONOTIFY ((__force fmode_t)8388608) | ||
95 | |||
93 | /* | 96 | /* |
94 | * The below are the various read and write types that we support. Some of | 97 | * The below are the various read and write types that we support. Some of |
95 | * them include behavioral modifiers that send information down to the | 98 | * them include behavioral modifiers that send information down to the |
@@ -2508,7 +2511,8 @@ int proc_nr_files(struct ctl_table *table, int write, | |||
2508 | int __init get_filesystem_list(char *buf); | 2511 | int __init get_filesystem_list(char *buf); |
2509 | 2512 | ||
2510 | #define ACC_MODE(x) ("\004\002\006\006"[(x)&O_ACCMODE]) | 2513 | #define ACC_MODE(x) ("\004\002\006\006"[(x)&O_ACCMODE]) |
2511 | #define OPEN_FMODE(flag) ((__force fmode_t)((flag + 1) & O_ACCMODE)) | 2514 | #define OPEN_FMODE(flag) ((__force fmode_t)(((flag + 1) & O_ACCMODE) | \ |
2515 | (flag & FMODE_NONOTIFY))) | ||
2512 | 2516 | ||
2513 | #endif /* __KERNEL__ */ | 2517 | #endif /* __KERNEL__ */ |
2514 | #endif /* _LINUX_FS_H */ | 2518 | #endif /* _LINUX_FS_H */ |