]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - fs/notify/mark.c
fsnotify: remove global fsnotify groups lists
[net-next-2.6.git] / fs / notify / mark.c
index 236f29b066ed005f5be27ed2b595687919243d31..325185e514bbda65cab96525d8e2e26577be5e4e 100644 (file)
@@ -222,15 +222,6 @@ int fsnotify_add_mark(struct fsnotify_mark *mark,
        BUG_ON(inode && mnt);
        BUG_ON(!inode && !mnt);
 
-       /*
-        * if this group isn't being testing for inode type events we need
-        * to start testing
-        */
-       if (inode && unlikely(list_empty(&group->inode_group_list)))
-               fsnotify_add_inode_group(group);
-       else if (mnt && unlikely(list_empty(&group->vfsmount_group_list)))
-               fsnotify_add_vfsmount_group(group);
-
        /*
         * LOCKING ORDER!!!!
         * mark->lock