Lines Matching defs:group
172 static int fanotify_get_response(struct fsnotify_group *group,
178 pr_debug("%s: group=%p event=%p\n", __func__, group, event);
180 ret = wait_event_killable(group->fanotify_data.access_waitq,
184 spin_lock(&group->notification_lock);
189 spin_unlock(&group->notification_lock);
194 fsnotify_remove_queued_event(group, &event->fae.fse);
200 spin_unlock(&group->notification_lock);
218 pr_debug("%s: group=%p event=%p about to return ret=%d\n", __func__,
219 group, event, ret);
221 fsnotify_destroy_event(group, &event->fae.fse);
232 static u32 fanotify_group_event_mask(struct fsnotify_group *group,
241 unsigned int fid_mode = FAN_GROUP_FLAG(group, FANOTIFY_FID_BITS);
299 * fanotify_alloc_event() when group is reporting fid as indication
527 static struct fanotify_event *fanotify_alloc_event(struct fsnotify_group *group,
538 unsigned int fid_mode = FAN_GROUP_FLAG(group, FANOTIFY_FID_BITS);
556 * We record file name only in a group with FAN_REPORT_NAME
583 if (group->max_events == UINT_MAX)
589 old_memcg = set_active_memcg(group->memcg);
611 if (FAN_GROUP_FLAG(group, FAN_REPORT_TID))
654 static int fanotify_handle_event(struct fsnotify_group *group, u32 mask,
687 mask = fanotify_group_event_mask(group, iter_info, mask, data,
692 pr_debug("%s: group=%p mask=%x\n", __func__, group, mask);
703 if (FAN_GROUP_FLAG(group, FANOTIFY_FID_BITS)) {
710 event = fanotify_alloc_event(group, mask, data, data_type, dir,
719 fsnotify_queue_overflow(group);
724 ret = fsnotify_add_event(group, fsn_event, fanotify_merge);
729 fsnotify_destroy_event(group, fsn_event);
733 ret = fanotify_get_response(group, FANOTIFY_PERM(event),
743 static void fanotify_free_group_priv(struct fsnotify_group *group)
747 user = group->fanotify_data.user;