Lines Matching refs:fsn_mark
384 fsnotify_get_mark(&i_mark->fsn_mark); in inotify_add_to_idr()
403 struct fsnotify_mark *fsn_mark = &i_mark->fsn_mark; in inotify_idr_find_locked() local
405 fsnotify_get_mark(fsn_mark); in inotify_idr_find_locked()
407 BUG_ON(refcount_read(&fsn_mark->refcnt) < 2); in inotify_idr_find_locked()
447 __func__, i_mark, i_mark->wd, i_mark->fsn_mark.group); in inotify_remove_from_idr()
455 __func__, i_mark, i_mark->wd, i_mark->fsn_mark.group); in inotify_remove_from_idr()
468 i_mark->wd, i_mark->fsn_mark.group, found_i_mark, in inotify_remove_from_idr()
469 found_i_mark->wd, found_i_mark->fsn_mark.group); in inotify_remove_from_idr()
477 if (unlikely(refcount_read(&i_mark->fsn_mark.refcnt) < 2)) { in inotify_remove_from_idr()
479 __func__, i_mark, i_mark->wd, i_mark->fsn_mark.group); in inotify_remove_from_idr()
486 fsnotify_put_mark(&i_mark->fsn_mark); in inotify_remove_from_idr()
492 fsnotify_put_mark(&found_i_mark->fsn_mark); in inotify_remove_from_idr()
498 void inotify_ignored_and_remove_idr(struct fsnotify_mark *fsn_mark, in inotify_ignored_and_remove_idr() argument
504 inotify_handle_inode_event(fsn_mark, FS_IN_IGNORED, NULL, NULL, NULL, in inotify_ignored_and_remove_idr()
507 i_mark = container_of(fsn_mark, struct inotify_inode_mark, fsn_mark); in inotify_ignored_and_remove_idr()
518 struct fsnotify_mark *fsn_mark; in inotify_update_existing_watch() local
528 fsn_mark = fsnotify_find_mark(&inode->i_fsnotify_marks, group); in inotify_update_existing_watch()
529 if (!fsn_mark) in inotify_update_existing_watch()
536 i_mark = container_of(fsn_mark, struct inotify_inode_mark, fsn_mark); in inotify_update_existing_watch()
538 spin_lock(&fsn_mark->lock); in inotify_update_existing_watch()
539 old_mask = fsn_mark->mask; in inotify_update_existing_watch()
541 fsn_mark->mask |= mask; in inotify_update_existing_watch()
543 fsn_mark->mask = mask; in inotify_update_existing_watch()
544 new_mask = fsn_mark->mask; in inotify_update_existing_watch()
545 spin_unlock(&fsn_mark->lock); in inotify_update_existing_watch()
564 fsnotify_put_mark(fsn_mark); in inotify_update_existing_watch()
585 fsnotify_init_mark(&tmp_i_mark->fsn_mark, group); in inotify_new_watch()
586 tmp_i_mark->fsn_mark.mask = mask; in inotify_new_watch()
601 ret = fsnotify_add_inode_mark_locked(&tmp_i_mark->fsn_mark, inode, 0); in inotify_new_watch()
614 fsnotify_put_mark(&tmp_i_mark->fsn_mark); in inotify_new_watch()
796 fsnotify_destroy_mark(&i_mark->fsn_mark, group); in SYSCALL_DEFINE2()
799 fsnotify_put_mark(&i_mark->fsn_mark); in SYSCALL_DEFINE2()