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