/kernel/linux/linux-5.10/fs/notify/dnotify/ |
H A D | dnotify.c | 34 struct fsnotify_mark fsn_mark; member 46 static void dnotify_recalc_inode_mask(struct fsnotify_mark *fsn_mark) in dnotify_recalc_inode_mask() argument 50 struct dnotify_mark *dn_mark = container_of(fsn_mark, in dnotify_recalc_inode_mask() 52 fsn_mark); in dnotify_recalc_inode_mask() 54 assert_spin_locked(&fsn_mark->lock); in dnotify_recalc_inode_mask() 58 if (fsn_mark->mask == new_mask) in dnotify_recalc_inode_mask() 60 fsn_mark->mask = new_mask; in dnotify_recalc_inode_mask() 62 fsnotify_recalc_mask(fsn_mark->connector); in dnotify_recalc_inode_mask() 87 dn_mark = container_of(inode_mark, struct dnotify_mark, fsn_mark); in dnotify_handle_event() 112 static void dnotify_free_mark(struct fsnotify_mark *fsn_mark) in dnotify_free_mark() argument 137 struct fsnotify_mark *fsn_mark; dnotify_flush() local 246 struct fsnotify_mark *new_fsn_mark, *fsn_mark; fcntl_dirnotify() local [all...] |
/kernel/linux/linux-6.6/fs/notify/dnotify/ |
H A D | dnotify.c | 52 struct fsnotify_mark fsn_mark; member 64 static void dnotify_recalc_inode_mask(struct fsnotify_mark *fsn_mark) in dnotify_recalc_inode_mask() argument 68 struct dnotify_mark *dn_mark = container_of(fsn_mark, in dnotify_recalc_inode_mask() 70 fsn_mark); in dnotify_recalc_inode_mask() 72 assert_spin_locked(&fsn_mark->lock); in dnotify_recalc_inode_mask() 76 if (fsn_mark->mask == new_mask) in dnotify_recalc_inode_mask() 78 fsn_mark->mask = new_mask; in dnotify_recalc_inode_mask() 80 fsnotify_recalc_mask(fsn_mark->connector); in dnotify_recalc_inode_mask() 105 dn_mark = container_of(inode_mark, struct dnotify_mark, fsn_mark); in dnotify_handle_event() 130 static void dnotify_free_mark(struct fsnotify_mark *fsn_mark) in dnotify_free_mark() argument 155 struct fsnotify_mark *fsn_mark; dnotify_flush() local 264 struct fsnotify_mark *new_fsn_mark, *fsn_mark; fcntl_dirnotify() local [all...] |
/kernel/linux/linux-6.6/fs/notify/inotify/ |
H A D | inotify_user.c | 407 fsnotify_get_mark(&i_mark->fsn_mark); in inotify_add_to_idr() 426 struct fsnotify_mark *fsn_mark = &i_mark->fsn_mark; in inotify_idr_find_locked() local 428 fsnotify_get_mark(fsn_mark); in inotify_idr_find_locked() 430 BUG_ON(refcount_read(&fsn_mark->refcnt) < 2); in inotify_idr_find_locked() 470 __func__, i_mark, i_mark->wd, i_mark->fsn_mark.group); in inotify_remove_from_idr() 478 __func__, i_mark, i_mark->wd, i_mark->fsn_mark.group); in inotify_remove_from_idr() 491 i_mark->wd, i_mark->fsn_mark.group, found_i_mark, in inotify_remove_from_idr() 492 found_i_mark->wd, found_i_mark->fsn_mark.group); in inotify_remove_from_idr() 500 if (unlikely(refcount_read(&i_mark->fsn_mark in inotify_remove_from_idr() 521 inotify_ignored_and_remove_idr(struct fsnotify_mark *fsn_mark, struct fsnotify_group *group) inotify_ignored_and_remove_idr() argument 541 struct fsnotify_mark *fsn_mark; inotify_update_existing_watch() local [all...] |
H A D | inotify_fsnotify.c | 81 fsn_mark); in inotify_handle_inode_event() 138 static void inotify_freeing_mark(struct fsnotify_mark *fsn_mark, struct fsnotify_group *group) in inotify_freeing_mark() argument 140 inotify_ignored_and_remove_idr(fsn_mark, group); in inotify_freeing_mark() 152 struct fsnotify_mark *fsn_mark; in idr_callback() local 160 fsn_mark = p; in idr_callback() 161 i_mark = container_of(fsn_mark, struct inotify_inode_mark, fsn_mark); in idr_callback() 163 WARN(1, "inotify closing but id=%d for fsn_mark=%p in group=%p still in " in idr_callback() 172 if (fsn_mark) in idr_callback() 173 printk(KERN_WARNING "fsn_mark in idr_callback() 194 inotify_free_mark(struct fsnotify_mark *fsn_mark) inotify_free_mark() argument [all...] |
H A D | inotify.h | 16 struct fsnotify_mark fsn_mark; member 32 static inline __u32 inotify_mark_user_mask(struct fsnotify_mark *fsn_mark) in inotify_mark_user_mask() argument 34 __u32 mask = fsn_mark->mask & INOTIFY_USER_MASK; in inotify_mark_user_mask() 36 if (fsn_mark->flags & FSNOTIFY_MARK_FLAG_EXCL_UNLINK) in inotify_mark_user_mask() 38 if (fsn_mark->flags & FSNOTIFY_MARK_FLAG_IN_ONESHOT) in inotify_mark_user_mask() 44 extern void inotify_ignored_and_remove_idr(struct fsnotify_mark *fsn_mark,
|
/kernel/linux/linux-5.10/fs/notify/inotify/ |
H A D | inotify_user.c | 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 in inotify_remove_from_idr() 485 inotify_ignored_and_remove_idr(struct fsnotify_mark *fsn_mark, struct fsnotify_group *group) inotify_ignored_and_remove_idr() argument 505 struct fsnotify_mark *fsn_mark; inotify_update_existing_watch() local [all...] |
H A D | inotify_fsnotify.c | 80 fsn_mark); in inotify_handle_inode_event() 137 static void inotify_freeing_mark(struct fsnotify_mark *fsn_mark, struct fsnotify_group *group) in inotify_freeing_mark() argument 139 inotify_ignored_and_remove_idr(fsn_mark, group); in inotify_freeing_mark() 151 struct fsnotify_mark *fsn_mark; in idr_callback() local 159 fsn_mark = p; in idr_callback() 160 i_mark = container_of(fsn_mark, struct inotify_inode_mark, fsn_mark); in idr_callback() 162 WARN(1, "inotify closing but id=%d for fsn_mark=%p in group=%p still in " in idr_callback() 171 if (fsn_mark) in idr_callback() 172 printk(KERN_WARNING "fsn_mark in idr_callback() 192 inotify_free_mark(struct fsnotify_mark *fsn_mark) inotify_free_mark() argument [all...] |
H A D | inotify.h | 16 struct fsnotify_mark fsn_mark; member 32 static inline __u32 inotify_mark_user_mask(struct fsnotify_mark *fsn_mark) in inotify_mark_user_mask() argument 34 return fsn_mark->mask & INOTIFY_USER_MASK; in inotify_mark_user_mask() 37 extern void inotify_ignored_and_remove_idr(struct fsnotify_mark *fsn_mark,
|
/kernel/linux/linux-5.10/fs/notify/fanotify/ |
H A D | fanotify_user.c | 719 static __u32 fanotify_mark_remove_from_mask(struct fsnotify_mark *fsn_mark, in fanotify_mark_remove_from_mask() argument 727 spin_lock(&fsn_mark->lock); in fanotify_mark_remove_from_mask() 729 oldmask = fsn_mark->mask; in fanotify_mark_remove_from_mask() 730 fsn_mark->mask &= ~mask; in fanotify_mark_remove_from_mask() 732 fsn_mark->ignored_mask &= ~mask; in fanotify_mark_remove_from_mask() 740 *destroy = !((fsn_mark->mask | fsn_mark->ignored_mask) & ~umask); in fanotify_mark_remove_from_mask() 741 spin_unlock(&fsn_mark->lock); in fanotify_mark_remove_from_mask() 750 struct fsnotify_mark *fsn_mark = NULL; in fanotify_remove_mark() local 755 fsn_mark in fanotify_remove_mark() 800 fanotify_mark_add_to_mask(struct fsnotify_mark *fsn_mark, __u32 mask, unsigned int flags) fanotify_mark_add_to_mask() argument 851 struct fsnotify_mark *fsn_mark; fanotify_add_mark() local [all...] |
H A D | fanotify.c | 805 static void fanotify_free_mark(struct fsnotify_mark *fsn_mark) in fanotify_free_mark() argument 807 kmem_cache_free(fanotify_mark_cache, fsn_mark); in fanotify_free_mark()
|
/kernel/linux/linux-6.6/fs/notify/fanotify/ |
H A D | fanotify_user.c | 1051 static __u32 fanotify_mark_remove_from_mask(struct fsnotify_mark *fsn_mark, in fanotify_mark_remove_from_mask() argument 1059 spin_lock(&fsn_mark->lock); in fanotify_mark_remove_from_mask() 1060 oldmask = fsnotify_calc_mask(fsn_mark); in fanotify_mark_remove_from_mask() 1062 fsn_mark->mask &= ~mask; in fanotify_mark_remove_from_mask() 1064 fsn_mark->ignore_mask &= ~mask; in fanotify_mark_remove_from_mask() 1066 newmask = fsnotify_calc_mask(fsn_mark); in fanotify_mark_remove_from_mask() 1073 *destroy = !((fsn_mark->mask | fsn_mark->ignore_mask) & ~umask); in fanotify_mark_remove_from_mask() 1074 spin_unlock(&fsn_mark->lock); in fanotify_mark_remove_from_mask() 1083 struct fsnotify_mark *fsn_mark in fanotify_remove_mark() local 1133 fanotify_mark_update_flags(struct fsnotify_mark *fsn_mark, unsigned int fan_flags) fanotify_mark_update_flags() argument 1175 fanotify_mark_add_to_mask(struct fsnotify_mark *fsn_mark, __u32 mask, unsigned int fan_flags) fanotify_mark_add_to_mask() argument 1248 fanotify_may_update_existing_mark(struct fsnotify_mark *fsn_mark, unsigned int fan_flags) fanotify_may_update_existing_mark() argument 1284 struct fsnotify_mark *fsn_mark; fanotify_add_mark() local [all...] |
H A D | fanotify.c | 1069 static void fanotify_free_mark(struct fsnotify_mark *fsn_mark) in fanotify_free_mark() argument 1071 kmem_cache_free(fanotify_mark_cache, fsn_mark); in fanotify_free_mark()
|
/kernel/linux/linux-5.10/fs/notify/ |
H A D | fdinfo.c | 83 inode_mark = container_of(mark, struct inotify_inode_mark, fsn_mark); in inotify_fdinfo()
|
/kernel/linux/linux-6.6/fs/notify/ |
H A D | fdinfo.c | 84 inode_mark = container_of(mark, struct inotify_inode_mark, fsn_mark); in inotify_fdinfo()
|