Searched refs:fsn_mark (Results 1 – 8 of 8) sorted by relevance
| /linux-6.15/fs/notify/dnotify/ |
| H A D | dnotify.c | 50 struct fsnotify_mark fsn_mark; member 68 fsn_mark); in dnotify_recalc_inode_mask() 76 fsn_mark->mask = new_mask; in dnotify_recalc_inode_mask() 132 fsn_mark); in dnotify_free_mark() 165 if (!fsn_mark) in dnotify_flush() 167 dn_mark = container_of(fsn_mark, struct dnotify_mark, fsn_mark); in dnotify_flush() 171 spin_lock(&fsn_mark->lock); in dnotify_flush() 196 fsnotify_put_mark(fsn_mark); in dnotify_flush() 333 if (fsn_mark) { in fcntl_dirnotify() 334 dn_mark = container_of(fsn_mark, struct dnotify_mark, fsn_mark); in fcntl_dirnotify() [all …]
|
| /linux-6.15/fs/notify/inotify/ |
| H A D | inotify_user.c | 425 struct fsnotify_mark *fsn_mark = &i_mark->fsn_mark; in inotify_idr_find_locked() local 427 fsnotify_get_mark(fsn_mark); in inotify_idr_find_locked() 529 i_mark = container_of(fsn_mark, struct inotify_inode_mark, fsn_mark); in inotify_ignored_and_remove_idr() 548 if (!fsn_mark) in inotify_update_existing_watch() 555 i_mark = container_of(fsn_mark, struct inotify_inode_mark, fsn_mark); in inotify_update_existing_watch() 557 spin_lock(&fsn_mark->lock); in inotify_update_existing_watch() 558 old_mask = fsn_mark->mask; in inotify_update_existing_watch() 560 fsn_mark->mask = 0; in inotify_update_existing_watch() 565 new_mask = fsn_mark->mask; in inotify_update_existing_watch() 566 spin_unlock(&fsn_mark->lock); in inotify_update_existing_watch() [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() 172 if (fsn_mark) in idr_callback() 174 fsn_mark->group, i_mark->wd); in idr_callback() 194 static void inotify_free_mark(struct fsnotify_mark *fsn_mark) in inotify_free_mark() argument 198 i_mark = container_of(fsn_mark, struct inotify_inode_mark, fsn_mark); in inotify_free_mark()
|
| 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,
|
| /linux-6.15/fs/notify/fanotify/ |
| H A D | fanotify_user.c | 1152 spin_lock(&fsn_mark->lock); in fanotify_mark_remove_from_mask() 1155 fsn_mark->mask &= ~mask; in fanotify_mark_remove_from_mask() 1166 *destroy = !((fsn_mark->mask | fsn_mark->ignore_mask) & ~umask); in fanotify_mark_remove_from_mask() 1182 if (!fsn_mark) { in fanotify_remove_mark() 1249 spin_lock(&fsn_mark->lock); in fanotify_mark_add_to_mask() 1251 fsn_mark->mask |= mask; in fanotify_mark_add_to_mask() 1347 mark = &fan_mark->fsn_mark; in fanotify_add_new_mark() 1414 mask |= fsn_mark->mask; in fanotify_may_update_existing_mark() 1432 if (!fsn_mark) { in fanotify_add_mark() 1435 if (IS_ERR(fsn_mark)) { in fanotify_add_mark() [all …]
|
| H A D | fanotify.h | 521 struct fsnotify_mark fsn_mark; member 527 return container_of(mark, struct fanotify_mark, fsn_mark); in FANOTIFY_MARK()
|
| H A D | fanotify.c | 1101 static void fanotify_free_mark(struct fsnotify_mark *fsn_mark) in fanotify_free_mark() argument 1103 kmem_cache_free(fanotify_mark_cache, FANOTIFY_MARK(fsn_mark)); in fanotify_free_mark()
|
| /linux-6.15/fs/notify/ |
| H A D | fdinfo.c | 78 inode_mark = container_of(mark, struct inotify_inode_mark, fsn_mark); in inotify_fdinfo()
|