Home
last modified time | relevance | path

Searched refs:ucounts (Results 26 – 39 of 39) sorted by relevance

12

/linux/fs/notify/inotify/
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/notify/fanotify/
H A Dfanotify_user.c1233 struct ucounts *ucounts = group->fanotify_data.ucounts; in fanotify_add_new_mark() local
1244 !inc_ucount(ucounts->ns, ucounts->uid, UCOUNT_FANOTIFY_MARKS)) in fanotify_add_new_mark()
1277 dec_ucount(ucounts, UCOUNT_FANOTIFY_MARKS); in fanotify_add_new_mark()
1489 group->fanotify_data.ucounts = inc_ucount(current_user_ns(), in SYSCALL_DEFINE2()
1492 if (!group->fanotify_data.ucounts) { in SYSCALL_DEFINE2()
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()
/linux/include/net/
H A Dnet_namespace.h89 struct ucounts *ucounts; member
/linux/security/keys/
H A Dprocess_keys.c922 if (unlikely(!get_ucounts(old->ucounts))) { in key_change_session_keyring()
937 new->ucounts = old->ucounts; in key_change_session_keyring()
/linux/fs/xfs/scrub/
H A Dquotacheck_repair.c238 if (xqc->ucounts) { in xrep_quotacheck()
/linux/include/linux/
H A Dcgroup.h772 struct ucounts *ucounts; member
H A Dmm.h2408 extern int user_shm_lock(size_t, struct ucounts *);
2409 extern void user_shm_unlock(size_t, struct ucounts *);
/linux/fs/
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/ipc/
H A Dshm.c64 struct ucounts *mlock_ucounts;
1206 struct ucounts *ucounts = current_ucounts(); in shmctl_do_lock() local
1208 err = shmem_lock(shm_file, 1, ucounts); in shmctl_do_lock()
1211 shp->mlock_ucounts = ucounts; in shmctl_do_lock()
/linux/kernel/
H A Dsignal.c409 struct ucounts *ucounts; in __sigqueue_alloc() local
421 ucounts = task_ucounts(t); in __sigqueue_alloc()
422 sigpending = inc_rlimit_get_ucounts(ucounts, UCOUNT_RLIMIT_SIGPENDING); in __sigqueue_alloc()
434 dec_rlimit_put_ucounts(ucounts, UCOUNT_RLIMIT_SIGPENDING); in __sigqueue_alloc()
438 q->ucounts = ucounts; in __sigqueue_alloc()
447 if (q->ucounts) { in __sigqueue_free()
448 dec_rlimit_put_ucounts(q->ucounts, UCOUNT_RLIMIT_SIGPENDING); in __sigqueue_free()
449 q->ucounts = NULL; in __sigqueue_free()
H A Dsys.c506 if (new->ucounts == current_ucounts()) in flag_nproc_exceeded()
516 if (is_rlimit_overlimit(new->ucounts, UCOUNT_RLIMIT_NPROC, rlimit(RLIMIT_NPROC)) && in flag_nproc_exceeded()
/linux/fs/hugetlbfs/
H A Dinode.c1612 struct ucounts *ucounts = current_ucounts(); in hugetlb_file_setup() local
1614 if (user_shm_lock(size, ucounts)) { in hugetlb_file_setup()
1617 user_shm_unlock(size, ucounts); in hugetlb_file_setup()
/linux/mm/
H A Dshmem.c2398 int shmem_lock(struct file *file, int lock, struct ucounts *ucounts) in shmem_lock() argument
2410 if (!user_shm_lock(inode->i_size, ucounts)) in shmem_lock()
2415 if (!lock && (info->flags & VM_LOCKED) && ucounts) { in shmem_lock()
2416 user_shm_unlock(inode->i_size, ucounts); in shmem_lock()
4788 int shmem_lock(struct file *file, int lock, struct ucounts *ucounts) in shmem_lock() argument

12