]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - include/linux/fsnotify_backend.h
fanotify: groups can specify their f_flags for new fd
[net-next-2.6.git] / include / linux / fsnotify_backend.h
index a46355db1e47e5d111645ae97657b3aae1f38c9f..a83859d7d36ef689a9b35646cbe0d28e659bbe1b 100644 (file)
@@ -169,14 +169,17 @@ struct fsnotify_group {
                        struct user_struct      *user;
                } inotify_data;
 #endif
-#ifdef CONFIG_FANOTIFY_ACCESS_PERMISSIONS
+#ifdef CONFIG_FANOTIFY
                struct fanotify_group_private_data {
+#ifdef CONFIG_FANOTIFY_ACCESS_PERMISSIONS
                        /* allows a group to block waiting for a userspace response */
                        struct mutex access_mutex;
                        struct list_head access_list;
                        wait_queue_head_t access_waitq;
+#endif /* CONFIG_FANOTIFY_ACCESS_PERMISSIONS */
+                       int f_flags;
                } fanotify_data;
-#endif
+#endif /* CONFIG_FANOTIFY */
        };
 };