diff options
Diffstat (limited to 'fs/notify/inotify/inotify.c')
-rw-r--r-- | fs/notify/inotify/inotify.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/fs/notify/inotify/inotify.c b/fs/notify/inotify/inotify.c index 220c13f0d73d..40b1cf914ccb 100644 --- a/fs/notify/inotify/inotify.c +++ b/fs/notify/inotify/inotify.c | |||
@@ -32,6 +32,7 @@ | |||
32 | #include <linux/list.h> | 32 | #include <linux/list.h> |
33 | #include <linux/writeback.h> | 33 | #include <linux/writeback.h> |
34 | #include <linux/inotify.h> | 34 | #include <linux/inotify.h> |
35 | #include <linux/fsnotify_backend.h> | ||
35 | 36 | ||
36 | static atomic_t inotify_cookie; | 37 | static atomic_t inotify_cookie; |
37 | 38 | ||
@@ -905,6 +906,25 @@ EXPORT_SYMBOL_GPL(inotify_rm_watch); | |||
905 | */ | 906 | */ |
906 | static int __init inotify_setup(void) | 907 | static int __init inotify_setup(void) |
907 | { | 908 | { |
909 | BUILD_BUG_ON(IN_ACCESS != FS_ACCESS); | ||
910 | BUILD_BUG_ON(IN_MODIFY != FS_MODIFY); | ||
911 | BUILD_BUG_ON(IN_ATTRIB != FS_ATTRIB); | ||
912 | BUILD_BUG_ON(IN_CLOSE_WRITE != FS_CLOSE_WRITE); | ||
913 | BUILD_BUG_ON(IN_CLOSE_NOWRITE != FS_CLOSE_NOWRITE); | ||
914 | BUILD_BUG_ON(IN_OPEN != FS_OPEN); | ||
915 | BUILD_BUG_ON(IN_MOVED_FROM != FS_MOVED_FROM); | ||
916 | BUILD_BUG_ON(IN_MOVED_TO != FS_MOVED_TO); | ||
917 | BUILD_BUG_ON(IN_CREATE != FS_CREATE); | ||
918 | BUILD_BUG_ON(IN_DELETE != FS_DELETE); | ||
919 | BUILD_BUG_ON(IN_DELETE_SELF != FS_DELETE_SELF); | ||
920 | BUILD_BUG_ON(IN_MOVE_SELF != FS_MOVE_SELF); | ||
921 | BUILD_BUG_ON(IN_Q_OVERFLOW != FS_Q_OVERFLOW); | ||
922 | |||
923 | BUILD_BUG_ON(IN_UNMOUNT != FS_UNMOUNT); | ||
924 | BUILD_BUG_ON(IN_ISDIR != FS_IN_ISDIR); | ||
925 | BUILD_BUG_ON(IN_IGNORED != FS_IN_IGNORED); | ||
926 | BUILD_BUG_ON(IN_ONESHOT != FS_IN_ONESHOT); | ||
927 | |||
908 | atomic_set(&inotify_cookie, 0); | 928 | atomic_set(&inotify_cookie, 0); |
909 | 929 | ||
910 | return 0; | 930 | return 0; |