fsnotify: Move locking into fsnotify_find_mark()
[sfrench/cifs-2.6.git] / fs / notify / inode_mark.c
index 9b2f4e6eb8ebdb38aa3f1f0022684ab0621fd8b0..f05fc49b8242c108762d700b7a54bbcce08d3536 100644 (file)
@@ -71,13 +71,7 @@ void fsnotify_clear_inode_marks_by_group(struct fsnotify_group *group)
 struct fsnotify_mark *fsnotify_find_inode_mark(struct fsnotify_group *group,
                                               struct inode *inode)
 {
-       struct fsnotify_mark *mark;
-
-       spin_lock(&inode->i_lock);
-       mark = fsnotify_find_mark(inode->i_fsnotify_marks, group);
-       spin_unlock(&inode->i_lock);
-
-       return mark;
+       return fsnotify_find_mark(inode->i_fsnotify_marks, group);
 }
 
 /**