Lines Matching refs:fsn_mark
52 struct fsnotify_mark fsn_mark;
64 static void dnotify_recalc_inode_mask(struct fsnotify_mark *fsn_mark)
68 struct dnotify_mark *dn_mark = container_of(fsn_mark,
70 fsn_mark);
72 assert_spin_locked(&fsn_mark->lock);
76 if (fsn_mark->mask == new_mask)
78 fsn_mark->mask = new_mask;
80 fsnotify_recalc_mask(fsn_mark->connector);
105 dn_mark = container_of(inode_mark, struct dnotify_mark, fsn_mark);
130 static void dnotify_free_mark(struct fsnotify_mark *fsn_mark)
132 struct dnotify_mark *dn_mark = container_of(fsn_mark,
134 fsn_mark);
155 struct fsnotify_mark *fsn_mark;
166 fsn_mark = fsnotify_find_mark(&inode->i_fsnotify_marks, dnotify_group);
167 if (!fsn_mark)
169 dn_mark = container_of(fsn_mark, struct dnotify_mark, fsn_mark);
173 spin_lock(&fsn_mark->lock);
179 dnotify_recalc_inode_mask(fsn_mark);
185 spin_unlock(&fsn_mark->lock);
190 fsnotify_detach_mark(fsn_mark);
197 fsnotify_free_mark(fsn_mark);
198 fsnotify_put_mark(fsn_mark);
264 struct fsnotify_mark *new_fsn_mark, *fsn_mark;
321 new_fsn_mark = &new_dn_mark->fsn_mark;
330 fsn_mark = fsnotify_find_mark(&inode->i_fsnotify_marks, dnotify_group);
331 if (fsn_mark) {
332 dn_mark = container_of(fsn_mark, struct dnotify_mark, fsn_mark);
333 spin_lock(&fsn_mark->lock);
341 fsn_mark = new_fsn_mark;
353 * the dnotify_groups mark_mutex and fsn_mark->lock. Since closing the
358 * the flush actually did shoot this fsn_mark. That's fine too
380 dnotify_recalc_inode_mask(fsn_mark);
382 spin_unlock(&fsn_mark->lock);
385 fsnotify_detach_mark(fsn_mark);
388 fsnotify_free_mark(fsn_mark);
389 fsnotify_put_mark(fsn_mark);