Lines Matching refs:fsn_mark
371 fsnotify_get_mark(&i_mark->fsn_mark); in inotify_add_to_idr()
390 struct fsnotify_mark *fsn_mark = &i_mark->fsn_mark; in inotify_idr_find_locked() local
392 fsnotify_get_mark(fsn_mark); in inotify_idr_find_locked()
394 BUG_ON(refcount_read(&fsn_mark->refcnt) < 2); in inotify_idr_find_locked()
434 __func__, i_mark, i_mark->wd, i_mark->fsn_mark.group); in inotify_remove_from_idr()
442 __func__, i_mark, i_mark->wd, i_mark->fsn_mark.group); in inotify_remove_from_idr()
455 i_mark->wd, i_mark->fsn_mark.group, found_i_mark, in inotify_remove_from_idr()
456 found_i_mark->wd, found_i_mark->fsn_mark.group); in inotify_remove_from_idr()
464 if (unlikely(refcount_read(&i_mark->fsn_mark.refcnt) < 2)) { in inotify_remove_from_idr()
466 __func__, i_mark, i_mark->wd, i_mark->fsn_mark.group); in inotify_remove_from_idr()
473 fsnotify_put_mark(&i_mark->fsn_mark); in inotify_remove_from_idr()
479 fsnotify_put_mark(&found_i_mark->fsn_mark); in inotify_remove_from_idr()
485 void inotify_ignored_and_remove_idr(struct fsnotify_mark *fsn_mark, in inotify_ignored_and_remove_idr() argument
492 fsn_mark); in inotify_ignored_and_remove_idr()
498 i_mark = container_of(fsn_mark, struct inotify_inode_mark, fsn_mark); in inotify_ignored_and_remove_idr()
509 struct fsnotify_mark *fsn_mark; in inotify_update_existing_watch() local
519 fsn_mark = fsnotify_find_mark(&inode->i_fsnotify_marks, group); in inotify_update_existing_watch()
520 if (!fsn_mark) in inotify_update_existing_watch()
527 i_mark = container_of(fsn_mark, struct inotify_inode_mark, fsn_mark); in inotify_update_existing_watch()
529 spin_lock(&fsn_mark->lock); in inotify_update_existing_watch()
530 old_mask = fsn_mark->mask; in inotify_update_existing_watch()
532 fsn_mark->mask |= mask; in inotify_update_existing_watch()
534 fsn_mark->mask = mask; in inotify_update_existing_watch()
535 new_mask = fsn_mark->mask; in inotify_update_existing_watch()
536 spin_unlock(&fsn_mark->lock); in inotify_update_existing_watch()
555 fsnotify_put_mark(fsn_mark); in inotify_update_existing_watch()
576 fsnotify_init_mark(&tmp_i_mark->fsn_mark, group); in inotify_new_watch()
577 tmp_i_mark->fsn_mark.mask = mask; in inotify_new_watch()
592 ret = fsnotify_add_inode_mark_locked(&tmp_i_mark->fsn_mark, inode, 0); in inotify_new_watch()
605 fsnotify_put_mark(&tmp_i_mark->fsn_mark); in inotify_new_watch()
787 fsnotify_destroy_mark(&i_mark->fsn_mark, group); in SYSCALL_DEFINE2()
790 fsnotify_put_mark(&i_mark->fsn_mark); in SYSCALL_DEFINE2()