fsnotify/vfsmount: add fsnotify fields to struct vfsmount
[linux-2.6-block.git] / fs / notify / fsnotify.c
index 60e84fd338dd3d2f3dec21fa85d2f35c96ec0670..e0bf86953e1b8d20f9ed4c22475ea4fed9a7a1c5 100644 (file)
@@ -163,9 +163,7 @@ static bool needed_by_vfsmount(__u32 test_mask, struct vfsmount *mnt)
        if (!mnt)
                return false;
 
-       /* hook in this when mnt->mnt_fsnotify_mask is defined */
-       /* return (test_mask & path->mnt->mnt_fsnotify_mask); */
-       return false;
+       return (test_mask & mnt->mnt_fsnotify_mask);
 }
 /*
  * This is the main call to fsnotify.  The VFS calls into hook specific functions