Home
last modified time | relevance | path

Searched refs:ucounts (Results 1 – 11 of 11) sorted by relevance

/fs/notify/inotify/
A Dinotify.h55 static inline void dec_inotify_instances(struct ucounts *ucounts) in dec_inotify_instances() argument
57 dec_ucount(ucounts, UCOUNT_INOTIFY_INSTANCES); in dec_inotify_instances()
60 static inline struct ucounts *inc_inotify_watches(struct ucounts *ucounts) in inc_inotify_watches() argument
62 return inc_ucount(ucounts->ns, ucounts->uid, UCOUNT_INOTIFY_WATCHES); in inc_inotify_watches()
65 static inline void dec_inotify_watches(struct ucounts *ucounts) in dec_inotify_watches() argument
67 dec_ucount(ucounts, UCOUNT_INOTIFY_WATCHES); in dec_inotify_watches()
A Dinotify_fsnotify.c183 if (group->inotify_data.ucounts) in inotify_free_group_priv()
184 dec_inotify_instances(group->inotify_data.ucounts); in inotify_free_group_priv()
A Dinotify_user.c533 dec_inotify_watches(group->inotify_data.ucounts); in inotify_ignored_and_remove_idr()
613 if (!inc_inotify_watches(group->inotify_data.ucounts)) { in inotify_new_watch()
680 group->inotify_data.ucounts = inc_ucount(current_user_ns(), in inotify_new_group()
684 if (!group->inotify_data.ucounts) { in inotify_new_group()
/fs/xfs/scrub/
A Dquotacheck.c235 if (!xqc->ucounts) in xqcheck_mod_live_ino_dqtrx()
330 counts = xqc->ucounts; in xqcheck_apply_live_dqtrx()
440 if (xqc->ucounts) { in xqcheck_collect_inode()
442 error = xqcheck_update_incore_counts(xqc, xqc->ucounts, id, 1, in xqcheck_collect_inode()
725 if (xqc->ucounts) { in xqcheck_teardown_scan()
726 xfarray_destroy(xqc->ucounts); in xqcheck_teardown_scan()
727 xqc->ucounts = NULL; in xqcheck_teardown_scan()
762 sizeof(struct xqcheck_dquot), &xqc->ucounts); in xqcheck_setup_scan()
847 if (xqc->ucounts) { in xchk_quotacheck()
A Dquotacheck.h41 struct xfarray *ucounts; member
65 return xqc->ucounts; in xqcheck_counters_for()
A Dquotacheck_repair.c238 if (xqc->ucounts) { in xrep_quotacheck()
/fs/
A Dmount.h19 struct ucounts *ucounts; member
A Dnamespace.c4141 static struct ucounts *inc_mnt_namespaces(struct user_namespace *ns) in inc_mnt_namespaces()
4146 static void dec_mnt_namespaces(struct ucounts *ucounts) in dec_mnt_namespaces() argument
4148 dec_ucount(ucounts, UCOUNT_MNT_NAMESPACES); in dec_mnt_namespaces()
4155 dec_mnt_namespaces(ns->ucounts); in free_mnt_ns()
4171 struct ucounts *ucounts; in alloc_mnt_ns() local
4174 ucounts = inc_mnt_namespaces(user_ns); in alloc_mnt_ns()
4175 if (!ucounts) in alloc_mnt_ns()
4180 dec_mnt_namespaces(ucounts); in alloc_mnt_ns()
4187 dec_mnt_namespaces(ucounts); in alloc_mnt_ns()
4201 new_ns->ucounts = ucounts; in alloc_mnt_ns()
[all …]
/fs/notify/fanotify/
A Dfanotify_user.c1327 struct ucounts *ucounts = group->fanotify_data.ucounts; in fanotify_add_new_mark() local
1339 !inc_ucount(ucounts->ns, ucounts->uid, UCOUNT_FANOTIFY_MARKS)) in fanotify_add_new_mark()
1372 dec_ucount(ucounts, UCOUNT_FANOTIFY_MARKS); in fanotify_add_new_mark()
1600 group->fanotify_data.ucounts = inc_ucount(user_ns, current_euid(), in SYSCALL_DEFINE2()
1602 if (!group->fanotify_data.ucounts) { in SYSCALL_DEFINE2()
A Dfanotify.c1020 if (group->fanotify_data.ucounts) in fanotify_free_group_priv()
1021 dec_ucount(group->fanotify_data.ucounts, in fanotify_free_group_priv()
1105 dec_ucount(group->fanotify_data.ucounts, UCOUNT_FANOTIFY_MARKS); in fanotify_freeing_mark()
/fs/hugetlbfs/
A Dinode.c1540 struct ucounts *ucounts = current_ucounts(); in hugetlb_file_setup() local
1542 if (user_shm_lock(size, ucounts)) { in hugetlb_file_setup()
1545 user_shm_unlock(size, ucounts); in hugetlb_file_setup()

Completed in 41 milliseconds