Merge branch 'work.splice_read' of git://git.kernel.org/pub/scm/linux/kernel/git...
[cascardo/linux.git] / include / linux / fsnotify_backend.h
index 7268ed0..79467b2 100644 (file)
@@ -135,7 +135,7 @@ struct fsnotify_group {
        const struct fsnotify_ops *ops; /* how this group handles things */
 
        /* needed to send notification to userspace */
-       struct mutex notification_mutex;        /* protect the notification_list */
+       spinlock_t notification_lock;           /* protect the notification_list */
        struct list_head notification_list;     /* list of event_holder this group needs to send to userspace */
        wait_queue_head_t notification_waitq;   /* read() on the notification file blocks on this waitq */
        unsigned int q_len;                     /* events on the queue */
@@ -177,7 +177,6 @@ struct fsnotify_group {
                struct fanotify_group_private_data {
 #ifdef CONFIG_FANOTIFY_ACCESS_PERMISSIONS
                        /* allows a group to block waiting for a userspace response */
-                       spinlock_t access_lock;
                        struct list_head access_list;
                        wait_queue_head_t access_waitq;
 #endif /* CONFIG_FANOTIFY_ACCESS_PERMISSIONS */