• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/notify/

Lines Matching defs:mark

37 	struct fsnotify_mark *mark;
43 hlist_for_each_entry(mark, pos, &inode->i_fsnotify_marks, i.i_list)
44 new_mask |= mark->mask;
61 void fsnotify_destroy_inode_mark(struct fsnotify_mark *mark)
63 struct inode *inode = mark->i.inode;
65 assert_spin_locked(&mark->lock);
66 assert_spin_locked(&mark->group->mark_lock);
70 hlist_del_init_rcu(&mark->i.i_list);
71 mark->i.inode = NULL;
74 * this mark is now off the inode->i_fsnotify_marks list and we
88 struct fsnotify_mark *mark, *lmark;
93 hlist_for_each_entry_safe(mark, pos, n, &inode->i_fsnotify_marks, i.i_list) {
94 list_add(&mark->i.free_i_list, &free_list);
95 hlist_del_init_rcu(&mark->i.i_list);
96 fsnotify_get_mark(mark);
100 list_for_each_entry_safe(mark, lmark, &free_list, i.free_i_list) {
101 fsnotify_destroy_mark(mark);
102 fsnotify_put_mark(mark);
115 * given a group and inode, find the mark associated with that combination.
116 * if found take a reference to that mark and return it, else return NULL
121 struct fsnotify_mark *mark;
126 hlist_for_each_entry(mark, pos, &inode->i_fsnotify_marks, i.i_list) {
127 if (mark->group == group) {
128 fsnotify_get_mark(mark);
129 return mark;
136 * given a group and inode, find the mark associated with that combination.
137 * if found take a reference to that mark and return it, else return NULL
142 struct fsnotify_mark *mark;
145 mark = fsnotify_find_inode_mark_locked(group, inode);
148 return mark;
152 * If we are setting a mark mask on an inode mark we should pin the inode
155 void fsnotify_set_inode_mark_mask_locked(struct fsnotify_mark *mark,
160 assert_spin_locked(&mark->lock);
163 mark->i.inode &&
164 !(mark->flags & FSNOTIFY_MARK_FLAG_OBJECT_PINNED)) {
165 mark->flags |= FSNOTIFY_MARK_FLAG_OBJECT_PINNED;
166 inode = igrab(mark->i.inode);
177 * Attach an initialized mark to a given inode.
182 int fsnotify_add_inode_mark(struct fsnotify_mark *mark,
190 mark->flags |= FSNOTIFY_MARK_FLAG_INODE;
192 assert_spin_locked(&mark->lock);
197 mark->i.inode = inode;
199 /* is mark the first mark? */
201 hlist_add_head_rcu(&mark->i.i_list, &inode->i_fsnotify_marks);
205 /* should mark be in the middle of the current list? */
214 if (mark->group < lmark->group)
217 hlist_add_before_rcu(&mark->i.i_list, &lmark->i.i_list);
222 /* mark should be the last entry. last is the current last entry */
223 hlist_add_after_rcu(last, &mark->i.i_list);