1
0

fsnotify: cleanup should_send_event

The change to use srcu and walk the object list rather than the global
fsnotify_group list means that should_send_event is no longer needed for a
number of groups and can be simplified for others.  Do that.

Signed-off-by: Eric Paris <eparis@redhat.com>
Este cometimento está contido em:
Eric Paris
2010-07-28 10:18:39 -04:00
ascendente 0215054f37
cometimento 2612abb51b
6 ficheiros modificados com 16 adições e 45 eliminações

Ver ficheiro

@@ -514,12 +514,7 @@ static bool audit_watch_should_send_event(struct fsnotify_group *group, struct i
struct vfsmount *mnt, struct fsnotify_mark *mark,
__u32 mask, void *data, int data_type)
{
bool send;
mask = (mask & ~FS_EVENT_ON_CHILD);
send = (mark->mask & mask);
return send;
return true;
}
/* Update watch data in audit rules based on fsnotify events. */