diff options
Diffstat (limited to 'fs/notify/fanotify/fanotify.h')
-rw-r--r-- | fs/notify/fanotify/fanotify.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/fs/notify/fanotify/fanotify.h b/fs/notify/fanotify/fanotify.h new file mode 100644 index 000000000000..50765eb30fe4 --- /dev/null +++ b/fs/notify/fanotify/fanotify.h | |||
@@ -0,0 +1,12 @@ | |||
1 | #include <linux/fanotify.h> | ||
2 | #include <linux/fsnotify_backend.h> | ||
3 | #include <linux/net.h> | ||
4 | #include <linux/kernel.h> | ||
5 | #include <linux/types.h> | ||
6 | |||
7 | static inline bool fanotify_mask_valid(__u32 mask) | ||
8 | { | ||
9 | if (mask & ~((__u32)FAN_ALL_INCOMING_EVENTS)) | ||
10 | return false; | ||
11 | return true; | ||
12 | } | ||