aboutsummaryrefslogtreecommitdiffstats
path: root/fs/notify/fanotify/fanotify.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/notify/fanotify/fanotify.h')
-rw-r--r--fs/notify/fanotify/fanotify.h25
1 files changed, 0 insertions, 25 deletions
diff --git a/fs/notify/fanotify/fanotify.h b/fs/notify/fanotify/fanotify.h
index 5608783c6bca..4d5723a74a8e 100644
--- a/fs/notify/fanotify/fanotify.h
+++ b/fs/notify/fanotify/fanotify.h
@@ -6,31 +6,6 @@
6 6
7extern const struct fsnotify_ops fanotify_fsnotify_ops; 7extern const struct fsnotify_ops fanotify_fsnotify_ops;
8 8
9static inline bool fanotify_mark_flags_valid(unsigned int flags)
10{
11 /* must be either and add or a remove */
12 if (!(flags & (FAN_MARK_ADD | FAN_MARK_REMOVE)))
13 return false;
14
15 /* cannot be both add and remove */
16 if ((flags & FAN_MARK_ADD) &&
17 (flags & FAN_MARK_REMOVE))
18 return false;
19
20 /* cannot have more flags than we know about */
21 if (flags & ~FAN_ALL_MARK_FLAGS)
22 return false;
23
24 return true;
25}
26
27static inline bool fanotify_mask_valid(__u32 mask)
28{
29 if (mask & ~((__u32)FAN_ALL_INCOMING_EVENTS))
30 return false;
31 return true;
32}
33
34static inline __u32 fanotify_outgoing_mask(__u32 mask) 9static inline __u32 fanotify_outgoing_mask(__u32 mask)
35{ 10{
36 return mask & FAN_ALL_OUTGOING_EVENTS; 11 return mask & FAN_ALL_OUTGOING_EVENTS;