summaryrefslogtreecommitdiffstats
path: root/fs/notify/dnotify
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2017-03-15 09:16:27 +0100
committerJan Kara <jack@suse.cz>2017-04-10 17:37:35 +0200
commita242677bb1e6faa9bd82bd33afb2621071258231 (patch)
tree853a675a0c61c182b834b1ced7d7e745c1eb3133 /fs/notify/dnotify
parentfsnotify: Move fsnotify_destroy_marks() (diff)
downloadlinux-a242677bb1e6faa9bd82bd33afb2621071258231.tar.xz
linux-a242677bb1e6faa9bd82bd33afb2621071258231.zip
fsnotify: Move locking into fsnotify_recalc_mask()
Move locking of locks protecting a list of marks into fsnotify_recalc_mask(). This reduces code churn in the following patch which changes the lock protecting the list of marks. 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/dnotify')
-rw-r--r--fs/notify/dnotify/dnotify.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/notify/dnotify/dnotify.c b/fs/notify/dnotify/dnotify.c
index 5024729dba23..41b2a070761c 100644
--- a/fs/notify/dnotify/dnotify.c
+++ b/fs/notify/dnotify/dnotify.c
@@ -69,8 +69,7 @@ static void dnotify_recalc_inode_mask(struct fsnotify_mark *fsn_mark)
if (old_mask == new_mask)
return;
- if (fsn_mark->connector)
- fsnotify_recalc_inode_mask(fsn_mark->connector->inode);
+ fsnotify_recalc_mask(fsn_mark->connector);
}
/*