Lines Matching refs:group

206 	struct fsnotify_group *group = mark->group;  in fsnotify_final_mark_destroy()  local
208 if (WARN_ON_ONCE(!group)) in fsnotify_final_mark_destroy()
210 group->ops->free_mark(mark); in fsnotify_final_mark_destroy()
211 fsnotify_put_group(group); in fsnotify_final_mark_destroy()
283 atomic_inc(&mark->group->user_waits); in fsnotify_get_mark_safe()
301 struct fsnotify_group *group = mark->group; in fsnotify_put_mark_wake() local
308 if (atomic_dec_and_test(&group->user_waits) && group->shutdown) in fsnotify_put_mark_wake()
309 wake_up(&group->notification_waitq); in fsnotify_put_mark_wake()
359 struct fsnotify_group *group = mark->group; in fsnotify_detach_mark() local
361 WARN_ON_ONCE(!mutex_is_locked(&group->mark_mutex)); in fsnotify_detach_mark()
376 atomic_dec(&group->num_marks); in fsnotify_detach_mark()
392 struct fsnotify_group *group = mark->group; in fsnotify_free_mark() local
408 if (group->ops->freeing_mark) in fsnotify_free_mark()
409 group->ops->freeing_mark(mark, group); in fsnotify_free_mark()
413 struct fsnotify_group *group) in fsnotify_destroy_mark() argument
415 mutex_lock_nested(&group->mark_mutex, SINGLE_DEPTH_NESTING); in fsnotify_destroy_mark()
417 mutex_unlock(&group->mark_mutex); in fsnotify_destroy_mark()
551 if ((lmark->group == mark->group) && in fsnotify_add_mark_list()
558 cmp = fsnotify_compare_groups(lmark->group, mark->group); in fsnotify_add_mark_list()
585 struct fsnotify_group *group = mark->group; in fsnotify_add_mark_locked() local
588 BUG_ON(!mutex_is_locked(&group->mark_mutex)); in fsnotify_add_mark_locked()
599 list_add(&mark->g_list, &group->marks_list); in fsnotify_add_mark_locked()
600 atomic_inc(&group->num_marks); in fsnotify_add_mark_locked()
618 atomic_dec(&group->num_marks); in fsnotify_add_mark_locked()
628 struct fsnotify_group *group = mark->group; in fsnotify_add_mark() local
630 mutex_lock(&group->mark_mutex); in fsnotify_add_mark()
632 mutex_unlock(&group->mark_mutex); in fsnotify_add_mark()
641 struct fsnotify_group *group) in fsnotify_find_mark() argument
651 if (mark->group == group && in fsnotify_find_mark()
663 void fsnotify_clear_marks_by_group(struct fsnotify_group *group, in fsnotify_clear_marks_by_group() argument
672 head = &group->marks_list; in fsnotify_clear_marks_by_group()
684 mutex_lock_nested(&group->mark_mutex, SINGLE_DEPTH_NESTING); in fsnotify_clear_marks_by_group()
685 list_for_each_entry_safe(mark, lmark, &group->marks_list, g_list) { in fsnotify_clear_marks_by_group()
689 mutex_unlock(&group->mark_mutex); in fsnotify_clear_marks_by_group()
693 mutex_lock_nested(&group->mark_mutex, SINGLE_DEPTH_NESTING); in fsnotify_clear_marks_by_group()
695 mutex_unlock(&group->mark_mutex); in fsnotify_clear_marks_by_group()
701 mutex_unlock(&group->mark_mutex); in fsnotify_clear_marks_by_group()
730 fsnotify_destroy_mark(mark, mark->group); in fsnotify_destroy_marks()
749 struct fsnotify_group *group) in fsnotify_init_mark() argument
754 fsnotify_get_group(group); in fsnotify_init_mark()
755 mark->group = group; in fsnotify_init_mark()