Lines Matching refs:fsn_mark
407 fsnotify_get_mark(&i_mark->fsn_mark);
426 struct fsnotify_mark *fsn_mark = &i_mark->fsn_mark;
428 fsnotify_get_mark(fsn_mark);
430 BUG_ON(refcount_read(&fsn_mark->refcnt) < 2);
470 __func__, i_mark, i_mark->wd, i_mark->fsn_mark.group);
478 __func__, i_mark, i_mark->wd, i_mark->fsn_mark.group);
491 i_mark->wd, i_mark->fsn_mark.group, found_i_mark,
492 found_i_mark->wd, found_i_mark->fsn_mark.group);
500 if (unlikely(refcount_read(&i_mark->fsn_mark.refcnt) < 2)) {
502 __func__, i_mark, i_mark->wd, i_mark->fsn_mark.group);
509 fsnotify_put_mark(&i_mark->fsn_mark);
515 fsnotify_put_mark(&found_i_mark->fsn_mark);
521 void inotify_ignored_and_remove_idr(struct fsnotify_mark *fsn_mark,
527 inotify_handle_inode_event(fsn_mark, FS_IN_IGNORED, NULL, NULL, NULL,
530 i_mark = container_of(fsn_mark, struct inotify_inode_mark, fsn_mark);
541 struct fsnotify_mark *fsn_mark;
548 fsn_mark = fsnotify_find_mark(&inode->i_fsnotify_marks, group);
549 if (!fsn_mark)
556 i_mark = container_of(fsn_mark, struct inotify_inode_mark, fsn_mark);
558 spin_lock(&fsn_mark->lock);
559 old_mask = fsn_mark->mask;
561 fsn_mark->mask = 0;
562 fsn_mark->flags &= ~INOTIFY_MARK_FLAGS;
564 fsn_mark->mask |= inotify_arg_to_mask(inode, arg);
565 fsn_mark->flags |= inotify_arg_to_flags(arg);
566 new_mask = fsn_mark->mask;
567 spin_unlock(&fsn_mark->lock);
572 /* more bits in this fsn_mark than the inode's mask? */
575 /* update the inode with this new fsn_mark */
586 fsnotify_put_mark(fsn_mark);
604 fsnotify_init_mark(&tmp_i_mark->fsn_mark, group);
605 tmp_i_mark->fsn_mark.mask = inotify_arg_to_mask(inode, arg);
606 tmp_i_mark->fsn_mark.flags = inotify_arg_to_flags(arg);
621 ret = fsnotify_add_inode_mark_locked(&tmp_i_mark->fsn_mark, inode, 0);
634 fsnotify_put_mark(&tmp_i_mark->fsn_mark);
817 fsnotify_destroy_mark(&i_mark->fsn_mark, group);
820 fsnotify_put_mark(&i_mark->fsn_mark);