• Home
  • Raw
  • Download

Lines Matching refs:mark

28 	struct fsnotify_mark *mark;  member
41 struct fsnotify_mark mark; member
161 static inline struct audit_tree_mark *audit_mark(struct fsnotify_mark *mark) in audit_mark() argument
163 return container_of(mark, struct audit_tree_mark, mark); in audit_mark()
166 static struct audit_chunk *mark_chunk(struct fsnotify_mark *mark) in mark_chunk() argument
168 return audit_mark(mark)->chunk; in mark_chunk()
171 static void audit_tree_destroy_watch(struct fsnotify_mark *mark) in audit_tree_destroy_watch() argument
173 kmem_cache_free(audit_tree_mark_cachep, audit_mark(mark)); in audit_tree_destroy_watch()
183 fsnotify_init_mark(&amark->mark, audit_tree_group); in alloc_mark()
184 amark->mark.mask = FS_IN_IGNORED; in alloc_mark()
185 return &amark->mark; in alloc_mark()
279 static void replace_mark_chunk(struct fsnotify_mark *mark, in replace_mark_chunk() argument
285 old = mark_chunk(mark); in replace_mark_chunk()
286 audit_mark(mark)->chunk = chunk; in replace_mark_chunk()
288 chunk->mark = mark; in replace_mark_chunk()
290 old->mark = NULL; in replace_mark_chunk()
315 replace_mark_chunk(old->mark, new); in replace_chunk()
349 static void untag_chunk(struct audit_chunk *chunk, struct fsnotify_mark *mark) in untag_chunk() argument
359 if (!(mark->flags & FSNOTIFY_MARK_FLAG_ATTACHED) || in untag_chunk()
360 mark_chunk(mark) != chunk) in untag_chunk()
368 replace_mark_chunk(mark, NULL); in untag_chunk()
370 fsnotify_detach_mark(mark); in untag_chunk()
373 fsnotify_free_mark(mark); in untag_chunk()
399 struct fsnotify_mark *mark; in create_chunk() local
407 mark = alloc_mark(); in create_chunk()
408 if (!mark) { in create_chunk()
414 if (fsnotify_add_inode_mark_locked(mark, inode, 0)) { in create_chunk()
416 fsnotify_put_mark(mark); in create_chunk()
424 fsnotify_detach_mark(mark); in create_chunk()
426 fsnotify_free_mark(mark); in create_chunk()
427 fsnotify_put_mark(mark); in create_chunk()
431 replace_mark_chunk(mark, chunk); in create_chunk()
453 fsnotify_put_mark(mark); in create_chunk()
460 struct fsnotify_mark *mark; in tag_chunk() local
466 mark = fsnotify_find_mark(&inode->i_fsnotify_marks, audit_tree_group); in tag_chunk()
467 if (!mark) in tag_chunk()
477 old = mark_chunk(mark); in tag_chunk()
482 fsnotify_put_mark(mark); in tag_chunk()
491 fsnotify_put_mark(mark); in tag_chunk()
499 fsnotify_put_mark(mark); in tag_chunk()
519 fsnotify_put_mark(mark); /* pair to fsnotify_find_mark */ in tag_chunk()
575 struct fsnotify_mark *mark; in prune_tree_chunks() local
582 mark = chunk->mark; in prune_tree_chunks()
585 if (!mark) in prune_tree_chunks()
587 fsnotify_get_mark(mark); in prune_tree_chunks()
590 untag_chunk(chunk, mark); in prune_tree_chunks()
591 fsnotify_put_mark(mark); in prune_tree_chunks()
1035 static int audit_tree_handle_event(struct fsnotify_mark *mark, u32 mask, in audit_tree_handle_event() argument
1042 static void audit_tree_freeing_mark(struct fsnotify_mark *mark, in audit_tree_freeing_mark() argument
1047 fsnotify_group_lock(mark->group); in audit_tree_freeing_mark()
1049 chunk = mark_chunk(mark); in audit_tree_freeing_mark()
1050 replace_mark_chunk(mark, NULL); in audit_tree_freeing_mark()
1052 fsnotify_group_unlock(mark->group); in audit_tree_freeing_mark()
1062 BUG_ON(refcount_read(&mark->refcnt) < 1); in audit_tree_freeing_mark()