diff options
author | Jan Kara <jack@suse.cz> | 2017-03-15 09:33:58 +0100 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2017-04-10 17:37:35 +0200 |
commit | f06fd98759451876f51607f60abd74c89b141610 (patch) | |
tree | dbdaa1e77b6c9f9e32119afc6c693d7efd53eb86 /fs/notify/inode_mark.c | |
parent | a242677bb1e6faa9bd82bd33afb2621071258231 (diff) | |
download | op-kernel-dev-f06fd98759451876f51607f60abd74c89b141610.zip op-kernel-dev-f06fd98759451876f51607f60abd74c89b141610.tar.gz |
fsnotify: Move locking into fsnotify_find_mark()
Move locking of a mark list into fsnotify_find_mark(). This reduces code
churn in the following patch changing lock protecting the list.
Reviewed-by: Miklos Szeredi <mszeredi@redhat.com>
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/notify/inode_mark.c')
-rw-r--r-- | fs/notify/inode_mark.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/fs/notify/inode_mark.c b/fs/notify/inode_mark.c index 9b2f4e6..f05fc49 100644 --- a/fs/notify/inode_mark.c +++ b/fs/notify/inode_mark.c @@ -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); } /** |