]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - fs/notify/group.c
fsnotify: drop mask argument from fsnotify_alloc_group
[net-next-2.6.git] / fs / notify / group.c
index 1d20d26d5fee18f89f41cfcd0d6e35a1c00bb16a..1657349c30a63d5b29b46512daaa063cd7fe3d0a 100644 (file)
@@ -164,8 +164,7 @@ void fsnotify_put_group(struct fsnotify_group *group)
 /*
  * Create a new fsnotify_group and hold a reference for the group returned.
  */
-struct fsnotify_group *fsnotify_alloc_group(__u32 mask,
-                                           const struct fsnotify_ops *ops)
+struct fsnotify_group *fsnotify_alloc_group(const struct fsnotify_ops *ops)
 {
        struct fsnotify_group *group;
 
@@ -175,8 +174,6 @@ struct fsnotify_group *fsnotify_alloc_group(__u32 mask,
 
        atomic_set(&group->refcnt, 1);
 
-       group->mask = mask;
-
        mutex_init(&group->notification_mutex);
        INIT_LIST_HEAD(&group->notification_list);
        init_waitqueue_head(&group->notification_waitq);
@@ -196,8 +193,5 @@ struct fsnotify_group *fsnotify_alloc_group(__u32 mask,
 
        mutex_unlock(&fsnotify_grp_mutex);
 
-       if (mask)
-               fsnotify_recalc_global_mask();
-
        return group;
 }