Lines Matching refs:fsn_mark
34 struct fsnotify_mark fsn_mark;
46 static void dnotify_recalc_inode_mask(struct fsnotify_mark *fsn_mark)
50 struct dnotify_mark *dn_mark = container_of(fsn_mark,
52 fsn_mark);
54 assert_spin_locked(&fsn_mark->lock);
58 if (fsn_mark->mask == new_mask)
60 fsn_mark->mask = new_mask;
62 fsnotify_recalc_mask(fsn_mark->connector);
87 dn_mark = container_of(inode_mark, struct dnotify_mark, fsn_mark);
112 static void dnotify_free_mark(struct fsnotify_mark *fsn_mark)
114 struct dnotify_mark *dn_mark = container_of(fsn_mark,
116 fsn_mark);
137 struct fsnotify_mark *fsn_mark;
148 fsn_mark = fsnotify_find_mark(&inode->i_fsnotify_marks, dnotify_group);
149 if (!fsn_mark)
151 dn_mark = container_of(fsn_mark, struct dnotify_mark, fsn_mark);
155 spin_lock(&fsn_mark->lock);
161 dnotify_recalc_inode_mask(fsn_mark);
167 spin_unlock(&fsn_mark->lock);
172 fsnotify_detach_mark(fsn_mark);
179 fsnotify_free_mark(fsn_mark);
180 fsnotify_put_mark(fsn_mark);
246 struct fsnotify_mark *new_fsn_mark, *fsn_mark;
303 new_fsn_mark = &new_dn_mark->fsn_mark;
312 fsn_mark = fsnotify_find_mark(&inode->i_fsnotify_marks, dnotify_group);
313 if (fsn_mark) {
314 dn_mark = container_of(fsn_mark, struct dnotify_mark, fsn_mark);
315 spin_lock(&fsn_mark->lock);
323 fsn_mark = new_fsn_mark;
335 * the dnotify_groups mark_mutex and fsn_mark->lock. Since closing the
340 * the flush actually did shoot this fsn_mark. That's fine too
362 dnotify_recalc_inode_mask(fsn_mark);
364 spin_unlock(&fsn_mark->lock);
367 fsnotify_detach_mark(fsn_mark);
370 fsnotify_free_mark(fsn_mark);
371 fsnotify_put_mark(fsn_mark);