fsn_mark 34 fs/notify/dnotify/dnotify.c struct fsnotify_mark fsn_mark; fsn_mark 46 fs/notify/dnotify/dnotify.c static void dnotify_recalc_inode_mask(struct fsnotify_mark *fsn_mark) fsn_mark 50 fs/notify/dnotify/dnotify.c struct dnotify_mark *dn_mark = container_of(fsn_mark, fsn_mark 52 fs/notify/dnotify/dnotify.c fsn_mark); fsn_mark 54 fs/notify/dnotify/dnotify.c assert_spin_locked(&fsn_mark->lock); fsn_mark 58 fs/notify/dnotify/dnotify.c if (fsn_mark->mask == new_mask) fsn_mark 60 fs/notify/dnotify/dnotify.c fsn_mark->mask = new_mask; fsn_mark 62 fs/notify/dnotify/dnotify.c fsnotify_recalc_mask(fsn_mark->connector); fsn_mark 93 fs/notify/dnotify/dnotify.c dn_mark = container_of(inode_mark, struct dnotify_mark, fsn_mark); fsn_mark 118 fs/notify/dnotify/dnotify.c static void dnotify_free_mark(struct fsnotify_mark *fsn_mark) fsn_mark 120 fs/notify/dnotify/dnotify.c struct dnotify_mark *dn_mark = container_of(fsn_mark, fsn_mark 122 fs/notify/dnotify/dnotify.c fsn_mark); fsn_mark 143 fs/notify/dnotify/dnotify.c struct fsnotify_mark *fsn_mark; fsn_mark 154 fs/notify/dnotify/dnotify.c fsn_mark = fsnotify_find_mark(&inode->i_fsnotify_marks, dnotify_group); fsn_mark 155 fs/notify/dnotify/dnotify.c if (!fsn_mark) fsn_mark 157 fs/notify/dnotify/dnotify.c dn_mark = container_of(fsn_mark, struct dnotify_mark, fsn_mark); fsn_mark 161 fs/notify/dnotify/dnotify.c spin_lock(&fsn_mark->lock); fsn_mark 167 fs/notify/dnotify/dnotify.c dnotify_recalc_inode_mask(fsn_mark); fsn_mark 173 fs/notify/dnotify/dnotify.c spin_unlock(&fsn_mark->lock); fsn_mark 178 fs/notify/dnotify/dnotify.c fsnotify_detach_mark(fsn_mark); fsn_mark 185 fs/notify/dnotify/dnotify.c fsnotify_free_mark(fsn_mark); fsn_mark 186 fs/notify/dnotify/dnotify.c fsnotify_put_mark(fsn_mark); fsn_mark 252 fs/notify/dnotify/dnotify.c struct fsnotify_mark *new_fsn_mark, *fsn_mark; fsn_mark 309 fs/notify/dnotify/dnotify.c new_fsn_mark = &new_dn_mark->fsn_mark; fsn_mark 318 fs/notify/dnotify/dnotify.c fsn_mark = fsnotify_find_mark(&inode->i_fsnotify_marks, dnotify_group); fsn_mark 319 fs/notify/dnotify/dnotify.c if (fsn_mark) { fsn_mark 320 fs/notify/dnotify/dnotify.c dn_mark = container_of(fsn_mark, struct dnotify_mark, fsn_mark); fsn_mark 321 fs/notify/dnotify/dnotify.c spin_lock(&fsn_mark->lock); fsn_mark 329 fs/notify/dnotify/dnotify.c fsn_mark = new_fsn_mark; fsn_mark 368 fs/notify/dnotify/dnotify.c dnotify_recalc_inode_mask(fsn_mark); fsn_mark 370 fs/notify/dnotify/dnotify.c spin_unlock(&fsn_mark->lock); fsn_mark 373 fs/notify/dnotify/dnotify.c fsnotify_detach_mark(fsn_mark); fsn_mark 376 fs/notify/dnotify/dnotify.c fsnotify_free_mark(fsn_mark); fsn_mark 377 fs/notify/dnotify/dnotify.c fsnotify_put_mark(fsn_mark); fsn_mark 502 fs/notify/fanotify/fanotify.c static void fanotify_free_mark(struct fsnotify_mark *fsn_mark) fsn_mark 504 fs/notify/fanotify/fanotify.c kmem_cache_free(fanotify_mark_cache, fsn_mark); fsn_mark 584 fs/notify/fanotify/fanotify_user.c static __u32 fanotify_mark_remove_from_mask(struct fsnotify_mark *fsn_mark, fsn_mark 591 fs/notify/fanotify/fanotify_user.c spin_lock(&fsn_mark->lock); fsn_mark 593 fs/notify/fanotify/fanotify_user.c oldmask = fsn_mark->mask; fsn_mark 594 fs/notify/fanotify/fanotify_user.c fsn_mark->mask &= ~mask; fsn_mark 596 fs/notify/fanotify/fanotify_user.c fsn_mark->ignored_mask &= ~mask; fsn_mark 598 fs/notify/fanotify/fanotify_user.c *destroy = !(fsn_mark->mask | fsn_mark->ignored_mask); fsn_mark 599 fs/notify/fanotify/fanotify_user.c spin_unlock(&fsn_mark->lock); fsn_mark 608 fs/notify/fanotify/fanotify_user.c struct fsnotify_mark *fsn_mark = NULL; fsn_mark 613 fs/notify/fanotify/fanotify_user.c fsn_mark = fsnotify_find_mark(connp, group); fsn_mark 614 fs/notify/fanotify/fanotify_user.c if (!fsn_mark) { fsn_mark 619 fs/notify/fanotify/fanotify_user.c removed = fanotify_mark_remove_from_mask(fsn_mark, mask, flags, fsn_mark 621 fs/notify/fanotify/fanotify_user.c if (removed & fsnotify_conn_mask(fsn_mark->connector)) fsn_mark 622 fs/notify/fanotify/fanotify_user.c fsnotify_recalc_mask(fsn_mark->connector); fsn_mark 624 fs/notify/fanotify/fanotify_user.c fsnotify_detach_mark(fsn_mark); fsn_mark 627 fs/notify/fanotify/fanotify_user.c fsnotify_free_mark(fsn_mark); fsn_mark 630 fs/notify/fanotify/fanotify_user.c fsnotify_put_mark(fsn_mark); fsn_mark 657 fs/notify/fanotify/fanotify_user.c static __u32 fanotify_mark_add_to_mask(struct fsnotify_mark *fsn_mark, fsn_mark 663 fs/notify/fanotify/fanotify_user.c spin_lock(&fsn_mark->lock); fsn_mark 665 fs/notify/fanotify/fanotify_user.c oldmask = fsn_mark->mask; fsn_mark 666 fs/notify/fanotify/fanotify_user.c fsn_mark->mask |= mask; fsn_mark 668 fs/notify/fanotify/fanotify_user.c fsn_mark->ignored_mask |= mask; fsn_mark 670 fs/notify/fanotify/fanotify_user.c fsn_mark->flags |= FSNOTIFY_MARK_FLAG_IGNORED_SURV_MODIFY; fsn_mark 672 fs/notify/fanotify/fanotify_user.c spin_unlock(&fsn_mark->lock); fsn_mark 708 fs/notify/fanotify/fanotify_user.c struct fsnotify_mark *fsn_mark; fsn_mark 712 fs/notify/fanotify/fanotify_user.c fsn_mark = fsnotify_find_mark(connp, group); fsn_mark 713 fs/notify/fanotify/fanotify_user.c if (!fsn_mark) { fsn_mark 714 fs/notify/fanotify/fanotify_user.c fsn_mark = fanotify_add_new_mark(group, connp, type, fsid); fsn_mark 715 fs/notify/fanotify/fanotify_user.c if (IS_ERR(fsn_mark)) { fsn_mark 717 fs/notify/fanotify/fanotify_user.c return PTR_ERR(fsn_mark); fsn_mark 720 fs/notify/fanotify/fanotify_user.c added = fanotify_mark_add_to_mask(fsn_mark, mask, flags); fsn_mark 721 fs/notify/fanotify/fanotify_user.c if (added & ~fsnotify_conn_mask(fsn_mark->connector)) fsn_mark 722 fs/notify/fanotify/fanotify_user.c fsnotify_recalc_mask(fsn_mark->connector); fsn_mark 725 fs/notify/fanotify/fanotify_user.c fsnotify_put_mark(fsn_mark); fsn_mark 84 fs/notify/fdinfo.c inode_mark = container_of(mark, struct inotify_inode_mark, fsn_mark); fsn_mark 16 fs/notify/inotify/inotify.h struct fsnotify_mark fsn_mark; fsn_mark 25 fs/notify/inotify/inotify.h extern void inotify_ignored_and_remove_idr(struct fsnotify_mark *fsn_mark, fsn_mark 91 fs/notify/inotify/inotify_fsnotify.c fsn_mark); fsn_mark 141 fs/notify/inotify/inotify_fsnotify.c static void inotify_freeing_mark(struct fsnotify_mark *fsn_mark, struct fsnotify_group *group) fsn_mark 143 fs/notify/inotify/inotify_fsnotify.c inotify_ignored_and_remove_idr(fsn_mark, group); fsn_mark 155 fs/notify/inotify/inotify_fsnotify.c struct fsnotify_mark *fsn_mark; fsn_mark 163 fs/notify/inotify/inotify_fsnotify.c fsn_mark = p; fsn_mark 164 fs/notify/inotify/inotify_fsnotify.c i_mark = container_of(fsn_mark, struct inotify_inode_mark, fsn_mark); fsn_mark 175 fs/notify/inotify/inotify_fsnotify.c if (fsn_mark) fsn_mark 177 fs/notify/inotify/inotify_fsnotify.c fsn_mark->group, i_mark->wd); fsn_mark 196 fs/notify/inotify/inotify_fsnotify.c static void inotify_free_mark(struct fsnotify_mark *fsn_mark) fsn_mark 200 fs/notify/inotify/inotify_fsnotify.c i_mark = container_of(fsn_mark, struct inotify_inode_mark, fsn_mark); fsn_mark 369 fs/notify/inotify/inotify_user.c fsnotify_get_mark(&i_mark->fsn_mark); fsn_mark 388 fs/notify/inotify/inotify_user.c struct fsnotify_mark *fsn_mark = &i_mark->fsn_mark; fsn_mark 390 fs/notify/inotify/inotify_user.c fsnotify_get_mark(fsn_mark); fsn_mark 392 fs/notify/inotify/inotify_user.c BUG_ON(refcount_read(&fsn_mark->refcnt) < 2); fsn_mark 432 fs/notify/inotify/inotify_user.c __func__, i_mark, i_mark->wd, i_mark->fsn_mark.group); fsn_mark 440 fs/notify/inotify/inotify_user.c __func__, i_mark, i_mark->wd, i_mark->fsn_mark.group); fsn_mark 453 fs/notify/inotify/inotify_user.c i_mark->wd, i_mark->fsn_mark.group, found_i_mark, fsn_mark 454 fs/notify/inotify/inotify_user.c found_i_mark->wd, found_i_mark->fsn_mark.group); fsn_mark 462 fs/notify/inotify/inotify_user.c if (unlikely(refcount_read(&i_mark->fsn_mark.refcnt) < 2)) { fsn_mark 464 fs/notify/inotify/inotify_user.c __func__, i_mark, i_mark->wd, i_mark->fsn_mark.group); fsn_mark 471 fs/notify/inotify/inotify_user.c fsnotify_put_mark(&i_mark->fsn_mark); fsn_mark 477 fs/notify/inotify/inotify_user.c fsnotify_put_mark(&found_i_mark->fsn_mark); fsn_mark 483 fs/notify/inotify/inotify_user.c void inotify_ignored_and_remove_idr(struct fsnotify_mark *fsn_mark, fsn_mark 490 fs/notify/inotify/inotify_user.c fsn_mark); fsn_mark 496 fs/notify/inotify/inotify_user.c i_mark = container_of(fsn_mark, struct inotify_inode_mark, fsn_mark); fsn_mark 507 fs/notify/inotify/inotify_user.c struct fsnotify_mark *fsn_mark; fsn_mark 517 fs/notify/inotify/inotify_user.c fsn_mark = fsnotify_find_mark(&inode->i_fsnotify_marks, group); fsn_mark 518 fs/notify/inotify/inotify_user.c if (!fsn_mark) fsn_mark 525 fs/notify/inotify/inotify_user.c i_mark = container_of(fsn_mark, struct inotify_inode_mark, fsn_mark); fsn_mark 527 fs/notify/inotify/inotify_user.c spin_lock(&fsn_mark->lock); fsn_mark 528 fs/notify/inotify/inotify_user.c old_mask = fsn_mark->mask; fsn_mark 530 fs/notify/inotify/inotify_user.c fsn_mark->mask |= mask; fsn_mark 532 fs/notify/inotify/inotify_user.c fsn_mark->mask = mask; fsn_mark 533 fs/notify/inotify/inotify_user.c new_mask = fsn_mark->mask; fsn_mark 534 fs/notify/inotify/inotify_user.c spin_unlock(&fsn_mark->lock); fsn_mark 553 fs/notify/inotify/inotify_user.c fsnotify_put_mark(fsn_mark); fsn_mark 574 fs/notify/inotify/inotify_user.c fsnotify_init_mark(&tmp_i_mark->fsn_mark, group); fsn_mark 575 fs/notify/inotify/inotify_user.c tmp_i_mark->fsn_mark.mask = mask; fsn_mark 590 fs/notify/inotify/inotify_user.c ret = fsnotify_add_inode_mark_locked(&tmp_i_mark->fsn_mark, inode, 0); fsn_mark 603 fs/notify/inotify/inotify_user.c fsnotify_put_mark(&tmp_i_mark->fsn_mark); fsn_mark 787 fs/notify/inotify/inotify_user.c fsnotify_destroy_mark(&i_mark->fsn_mark, group); fsn_mark 790 fs/notify/inotify/inotify_user.c fsnotify_put_mark(&i_mark->fsn_mark);