Home
last modified time | relevance | path

Searched refs:ucounts (Results 1 – 25 of 39) sorted by path

12

/linux/fs/hugetlbfs/
H A Dinode.c1615 struct ucounts *ucounts = current_ucounts(); in hugetlb_file_setup() local
1617 if (user_shm_lock(size, ucounts)) { in hugetlb_file_setup()
1620 user_shm_unlock(size, ucounts); in hugetlb_file_setup()
/linux/fs/
H A Dmount.h13 struct ucounts *ucounts; member
H A Dnamespace.c3697 static struct ucounts *inc_mnt_namespaces(struct user_namespace *ns) in inc_mnt_namespaces()
3702 static void dec_mnt_namespaces(struct ucounts *ucounts) in dec_mnt_namespaces() argument
3704 dec_ucount(ucounts, UCOUNT_MNT_NAMESPACES); in dec_mnt_namespaces()
3711 dec_mnt_namespaces(ns->ucounts); in free_mnt_ns()
3728 struct ucounts *ucounts; in alloc_mnt_ns() local
3731 ucounts = inc_mnt_namespaces(user_ns); in alloc_mnt_ns()
3732 if (!ucounts) in alloc_mnt_ns()
3737 dec_mnt_namespaces(ucounts); in alloc_mnt_ns()
3744 dec_mnt_namespaces(ucounts); in alloc_mnt_ns()
3755 new_ns->ucounts = ucounts; in alloc_mnt_ns()
/linux/fs/notify/fanotify/
H A Dfanotify.c973 if (group->fanotify_data.ucounts) in fanotify_free_group_priv()
974 dec_ucount(group->fanotify_data.ucounts, in fanotify_free_group_priv()
1050 dec_ucount(group->fanotify_data.ucounts, UCOUNT_FANOTIFY_MARKS); in fanotify_freeing_mark()
H A Dfanotify_user.c1257 struct ucounts *ucounts = group->fanotify_data.ucounts; in fanotify_add_new_mark() local
1268 !inc_ucount(ucounts->ns, ucounts->uid, UCOUNT_FANOTIFY_MARKS)) in fanotify_add_new_mark()
1301 dec_ucount(ucounts, UCOUNT_FANOTIFY_MARKS); in fanotify_add_new_mark()
1549 group->fanotify_data.ucounts = inc_ucount(current_user_ns(), in SYSCALL_DEFINE2()
1552 if (!group->fanotify_data.ucounts) { in SYSCALL_DEFINE2()
/linux/fs/notify/inotify/
H 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()
H 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()
H 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()
/linux/fs/xfs/scrub/
H A Dquotacheck.c235 if (!xqc->ucounts) in xqcheck_mod_live_ino_dqtrx()
330 counts = xqc->ucounts; in xqcheck_apply_live_dqtrx()
437 if (xqc->ucounts) { in xqcheck_collect_inode()
439 error = xqcheck_update_incore_counts(xqc, xqc->ucounts, id, 1, in xqcheck_collect_inode()
724 if (xqc->ucounts) { in xqcheck_teardown_scan()
725 xfarray_destroy(xqc->ucounts); in xqcheck_teardown_scan()
726 xqc->ucounts = NULL; in xqcheck_teardown_scan()
761 sizeof(struct xqcheck_dquot), &xqc->ucounts); in xqcheck_setup_scan()
846 if (xqc->ucounts) { in xchk_quotacheck()
H A Dquotacheck.h41 struct xfarray *ucounts; member
65 return xqc->ucounts; in xqcheck_counters_for()
H A Dquotacheck_repair.c238 if (xqc->ucounts) { in xrep_quotacheck()
/linux/include/linux/
H A Dcgroup.h772 struct ucounts *ucounts; member
H A Dcred.h140 struct ucounts *ucounts; member
365 #define task_ucounts(task) (task_cred_xxx((task), ucounts))
382 #define current_ucounts() (current_cred_xxx(ucounts))
H A Dfsnotify_backend.h241 struct ucounts *ucounts; member
253 struct ucounts *ucounts; member
H A Dipc_namespace.h76 struct ucounts *ucounts; member
H A Dmm.h2365 extern int user_shm_lock(size_t, struct ucounts *);
2366 extern void user_shm_unlock(size_t, struct ucounts *);
H A Dpid_namespace.h38 struct ucounts *ucounts; member
H A Dshmem_fs.h98 extern int shmem_lock(struct file *file, int lock, struct ucounts *ucounts);
H A Dsignal_types.h16 struct ucounts;
26 struct ucounts *ucounts; member
H A Dtime_namespace.h24 struct ucounts *ucounts; member
H A Duser_namespace.h38 struct ucounts;
106 struct ucounts *ucounts; member
115 struct ucounts { struct
130 void dec_ucount(struct ucounts *ucounts, enum ucount_type type);
132 struct ucounts * __must_check get_ucounts(struct ucounts *ucounts);
133 void put_ucounts(struct ucounts *ucounts);
135 static inline long get_rlimit_value(struct ucounts *ucounts, enum rlimit_type type) in get_rlimit_value() argument
140 long inc_rlimit_ucounts(struct ucounts *ucounts, enum rlimit_type type, long v);
141 bool dec_rlimit_ucounts(struct ucounts *ucounts, enum rlimit_type type, long v);
142 long inc_rlimit_get_ucounts(struct ucounts *ucounts, enum rlimit_type type);
[all …]
H A Dutsname.h27 struct ucounts *ucounts; member
/linux/include/net/
H A Dnet_namespace.h89 struct ucounts *ucounts; member
/linux/ipc/
H A Dmqueue.c148 struct ucounts *ucounts; /* user who created, for accounting */ member
322 info->ucounts = NULL; /* set when all is ok */ in mqueue_get_inode()
372 info->ucounts = get_ucounts(current_ucounts()); in mqueue_get_inode()
373 if (info->ucounts) { in mqueue_get_inode()
379 dec_rlimit_ucounts(info->ucounts, UCOUNT_RLIMIT_MSGQUEUE, mq_bytes); in mqueue_get_inode()
381 put_ucounts(info->ucounts); in mqueue_get_inode()
382 info->ucounts = NULL; in mqueue_get_inode()
537 if (info->ucounts) { in mqueue_evict_inode()
549 dec_rlimit_ucounts(info->ucounts, UCOUNT_RLIMIT_MSGQUEUE, mq_bytes); in mqueue_evict_inode()
559 put_ucounts(info->ucounts); in mqueue_evict_inode()
[all …]
H A Dnamespace.c28 static struct ucounts *inc_ipc_namespaces(struct user_namespace *ns) in inc_ipc_namespaces()
33 static void dec_ipc_namespaces(struct ucounts *ucounts) in dec_ipc_namespaces() argument
35 dec_ucount(ucounts, UCOUNT_IPC_NAMESPACES); in dec_ipc_namespaces()
42 struct ucounts *ucounts; in create_ipc_ns() local
47 ucounts = inc_ipc_namespaces(user_ns); in create_ipc_ns()
48 if (!ucounts) { in create_ipc_ns()
71 ns->ucounts = ucounts; in create_ipc_ns()
102 dec_ipc_namespaces(ucounts); in create_ipc_ns()
160 dec_ipc_namespaces(ns->ucounts); in free_ipc_ns()

12