/* Find the private data that the group previously attached to this event when the group added the event to the notification queue (fsnotify_add_notify_event)  */
struct fsnotify_event_private_data* fsnotify_remove_priv_from_event(struct fsnotify_group *group, struct fsnotify_event *event)
/* Find the private data that the group previously attached to this event when the group added the event to the notification queue (fsnotify_add_notify_event)  */
struct fsnotify_event_private_data* fsnotify_remove_priv_from_event(struct fsnotify_group *group, struct fsnotify_event *event)
{
	struct fsnotify_event_private_data *lpriv;
	struct fsnotify_event_private_data *priv = NULL;
	assert_spin_locked(&event->lock);
	list_for_each_entry(lpriv, &event->private_data_list, event_list) {
		if (lpriv->group == group) {
			priv = lpriv;
			list_del(&priv->event_list);
			break;
		}
	}
	return priv;
}