• 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/fanotify/

Lines Matching refs:fsn_mark

438 static void fanotify_free_mark(struct fsnotify_mark *fsn_mark)
440 kmem_cache_free(fanotify_mark_cache, fsn_mark);
491 static __u32 fanotify_mark_remove_from_mask(struct fsnotify_mark *fsn_mark,
497 spin_lock(&fsn_mark->lock);
499 oldmask = fsn_mark->mask;
500 fsnotify_set_mark_mask_locked(fsn_mark, (oldmask & ~mask));
502 oldmask = fsn_mark->ignored_mask;
503 fsnotify_set_mark_ignored_mask_locked(fsn_mark, (oldmask & ~mask));
505 spin_unlock(&fsn_mark->lock);
508 fsnotify_destroy_mark(fsn_mark);
517 struct fsnotify_mark *fsn_mark = NULL;
520 fsn_mark = fsnotify_find_vfsmount_mark(group, mnt);
521 if (!fsn_mark)
524 removed = fanotify_mark_remove_from_mask(fsn_mark, mask, flags);
525 fsnotify_put_mark(fsn_mark);
536 struct fsnotify_mark *fsn_mark = NULL;
539 fsn_mark = fsnotify_find_inode_mark(group, inode);
540 if (!fsn_mark)
543 removed = fanotify_mark_remove_from_mask(fsn_mark, mask, flags);
545 fsnotify_put_mark(fsn_mark);
552 static __u32 fanotify_mark_add_to_mask(struct fsnotify_mark *fsn_mark,
558 spin_lock(&fsn_mark->lock);
560 oldmask = fsn_mark->mask;
561 fsnotify_set_mark_mask_locked(fsn_mark, (oldmask | mask));
563 oldmask = fsn_mark->ignored_mask;
564 fsnotify_set_mark_ignored_mask_locked(fsn_mark, (oldmask | mask));
566 fsn_mark->flags |= FSNOTIFY_MARK_FLAG_IGNORED_SURV_MODIFY;
568 spin_unlock(&fsn_mark->lock);
577 struct fsnotify_mark *fsn_mark;
580 fsn_mark = fsnotify_find_vfsmount_mark(group, mnt);
581 if (!fsn_mark) {
584 fsn_mark = kmem_cache_alloc(fanotify_mark_cache, GFP_KERNEL);
585 if (!fsn_mark)
588 fsnotify_init_mark(fsn_mark, fanotify_free_mark);
589 ret = fsnotify_add_mark(fsn_mark, group, NULL, mnt, 0);
591 fanotify_free_mark(fsn_mark);
595 added = fanotify_mark_add_to_mask(fsn_mark, mask, flags);
596 fsnotify_put_mark(fsn_mark);
607 struct fsnotify_mark *fsn_mark;
612 fsn_mark = fsnotify_find_inode_mark(group, inode);
613 if (!fsn_mark) {
616 fsn_mark = kmem_cache_alloc(fanotify_mark_cache, GFP_KERNEL);
617 if (!fsn_mark)
620 fsnotify_init_mark(fsn_mark, fanotify_free_mark);
621 ret = fsnotify_add_mark(fsn_mark, group, inode, NULL, 0);
623 fanotify_free_mark(fsn_mark);
627 added = fanotify_mark_add_to_mask(fsn_mark, mask, flags);
628 fsnotify_put_mark(fsn_mark);