fsnotify: Move locking into fsnotify_find_mark()
[sfrench/cifs-2.6.git] / fs / notify / vfsmount_mark.c
index ffe0d7098cbaca7b8747db5ffc0e0249e8ffd44b..3476ee44b2c5a3783bc7c01a9af484777bf51d1b 100644 (file)
@@ -65,11 +65,6 @@ struct fsnotify_mark *fsnotify_find_vfsmount_mark(struct fsnotify_group *group,
                                                  struct vfsmount *mnt)
 {
        struct mount *m = real_mount(mnt);
-       struct fsnotify_mark *mark;
 
-       spin_lock(&mnt->mnt_root->d_lock);
-       mark = fsnotify_find_mark(m->mnt_fsnotify_marks, group);
-       spin_unlock(&mnt->mnt_root->d_lock);
-
-       return mark;
+       return fsnotify_find_mark(m->mnt_fsnotify_marks, group);
 }