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>
这个提交包含在:
Jan Kara
2017-03-15 09:16:27 +01:00
父节点 0810b4f9f2
当前提交 a242677bb1
修改 6 个文件,包含 39 行新增40 行删除

查看文件

@@ -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);
}
/*