• Home
  • Raw
  • Download

Lines Matching refs:group

111 		if (mark->group)  in fsnotify_put_mark()
112 fsnotify_put_group(mark->group); in fsnotify_put_mark()
137 struct fsnotify_group *group = mark->group; in fsnotify_detach_mark() local
139 BUG_ON(!mutex_is_locked(&group->mark_mutex)); in fsnotify_detach_mark()
172 atomic_dec(&group->num_marks); in fsnotify_detach_mark()
186 struct fsnotify_group *group = mark->group; in __fsnotify_free_mark() local
202 if (group->ops->freeing_mark) in __fsnotify_free_mark()
203 group->ops->freeing_mark(mark, group); in __fsnotify_free_mark()
226 struct fsnotify_group *group) in fsnotify_destroy_mark() argument
228 mutex_lock_nested(&group->mark_mutex, SINGLE_DEPTH_NESTING); in fsnotify_destroy_mark()
230 mutex_unlock(&group->mark_mutex); in fsnotify_destroy_mark()
260 fsnotify_destroy_mark(mark, mark->group); in fsnotify_destroy_marks()
335 if ((lmark->group == mark->group) && !allow_dups) in fsnotify_add_mark_list()
338 cmp = fsnotify_compare_groups(lmark->group, mark->group); in fsnotify_add_mark_list()
357 struct fsnotify_group *group, struct inode *inode, in fsnotify_add_mark_locked() argument
364 BUG_ON(!mutex_is_locked(&group->mark_mutex)); in fsnotify_add_mark_locked()
375 fsnotify_get_group(group); in fsnotify_add_mark_locked()
376 mark->group = group; in fsnotify_add_mark_locked()
377 list_add(&mark->g_list, &group->marks_list); in fsnotify_add_mark_locked()
378 atomic_inc(&group->num_marks); in fsnotify_add_mark_locked()
382 ret = fsnotify_add_inode_mark(mark, group, inode, allow_dups); in fsnotify_add_mark_locked()
386 ret = fsnotify_add_vfsmount_mark(mark, group, mnt, allow_dups); in fsnotify_add_mark_locked()
404 fsnotify_put_group(group); in fsnotify_add_mark_locked()
405 mark->group = NULL; in fsnotify_add_mark_locked()
406 atomic_dec(&group->num_marks); in fsnotify_add_mark_locked()
419 int fsnotify_add_mark(struct fsnotify_mark *mark, struct fsnotify_group *group, in fsnotify_add_mark() argument
423 mutex_lock(&group->mark_mutex); in fsnotify_add_mark()
424 ret = fsnotify_add_mark_locked(mark, group, inode, mnt, allow_dups); in fsnotify_add_mark()
425 mutex_unlock(&group->mark_mutex); in fsnotify_add_mark()
434 struct fsnotify_group *group) in fsnotify_find_mark() argument
439 if (mark->group == group) { in fsnotify_find_mark()
450 void fsnotify_clear_marks_by_group_flags(struct fsnotify_group *group, in fsnotify_clear_marks_by_group_flags() argument
465 mutex_lock_nested(&group->mark_mutex, SINGLE_DEPTH_NESTING); in fsnotify_clear_marks_by_group_flags()
466 list_for_each_entry_safe(mark, lmark, &group->marks_list, g_list) { in fsnotify_clear_marks_by_group_flags()
470 mutex_unlock(&group->mark_mutex); in fsnotify_clear_marks_by_group_flags()
473 mutex_lock_nested(&group->mark_mutex, SINGLE_DEPTH_NESTING); in fsnotify_clear_marks_by_group_flags()
475 mutex_unlock(&group->mark_mutex); in fsnotify_clear_marks_by_group_flags()
481 mutex_unlock(&group->mark_mutex); in fsnotify_clear_marks_by_group_flags()
493 void fsnotify_detach_group_marks(struct fsnotify_group *group) in fsnotify_detach_group_marks() argument
498 mutex_lock_nested(&group->mark_mutex, SINGLE_DEPTH_NESTING); in fsnotify_detach_group_marks()
499 if (list_empty(&group->marks_list)) { in fsnotify_detach_group_marks()
500 mutex_unlock(&group->mark_mutex); in fsnotify_detach_group_marks()
503 mark = list_first_entry(&group->marks_list, in fsnotify_detach_group_marks()
507 mutex_unlock(&group->mark_mutex); in fsnotify_detach_group_marks()
518 if (old->group) in fsnotify_duplicate_mark()
519 fsnotify_get_group(old->group); in fsnotify_duplicate_mark()
520 new->group = old->group; in fsnotify_duplicate_mark()