fsnotify: split generic and inode specific mark code
currently all marking is done by functions in inode-mark.c. Some of this is pretty generic and should be instead done in a generic function and we should only put the inode specific code in inode-mark.c Signed-off-by: Eric Paris <eparis@redhat.com>
This commit is contained in:
@@ -97,7 +97,7 @@ static int inotify_handle_event(struct fsnotify_group *group, struct fsnotify_ev
|
||||
|
||||
to_tell = event->to_tell;
|
||||
|
||||
fsn_mark = fsnotify_find_mark(group, to_tell);
|
||||
fsn_mark = fsnotify_find_inode_mark(group, to_tell);
|
||||
/* race with watch removal? We already passes should_send */
|
||||
if (unlikely(!fsn_mark))
|
||||
return 0;
|
||||
@@ -145,7 +145,7 @@ static bool inotify_should_send_event(struct fsnotify_group *group, struct inode
|
||||
struct fsnotify_mark *fsn_mark;
|
||||
bool send;
|
||||
|
||||
fsn_mark = fsnotify_find_mark(group, inode);
|
||||
fsn_mark = fsnotify_find_inode_mark(group, inode);
|
||||
if (!fsn_mark)
|
||||
return false;
|
||||
|
||||
|
Reference in New Issue
Block a user