Home
last modified time | relevance | path

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

/fs/notify/inotify/
Dinotify.h37 static inline void dec_inotify_instances(struct ucounts *ucounts) in dec_inotify_instances() argument
39 dec_ucount(ucounts, UCOUNT_INOTIFY_INSTANCES); in dec_inotify_instances()
42 static inline struct ucounts *inc_inotify_watches(struct ucounts *ucounts) in inc_inotify_watches() argument
44 return inc_ucount(ucounts->ns, ucounts->uid, UCOUNT_INOTIFY_WATCHES); in inc_inotify_watches()
47 static inline void dec_inotify_watches(struct ucounts *ucounts) in dec_inotify_watches() argument
49 dec_ucount(ucounts, UCOUNT_INOTIFY_WATCHES); in dec_inotify_watches()
Dinotify_fsnotify.c186 if (group->inotify_data.ucounts) in inotify_free_group_priv()
187 dec_inotify_instances(group->inotify_data.ucounts); in inotify_free_group_priv()
Dinotify_user.c500 dec_inotify_watches(group->inotify_data.ucounts); in inotify_ignored_and_remove_idr()
583 if (!inc_inotify_watches(group->inotify_data.ucounts)) { in inotify_new_watch()
649 group->inotify_data.ucounts = inc_ucount(current_user_ns(), in inotify_new_group()
653 if (!group->inotify_data.ucounts) { in inotify_new_group()
/fs/
Dmount.h14 struct ucounts *ucounts; member
Dnamespace.c3179 static struct ucounts *inc_mnt_namespaces(struct user_namespace *ns) in inc_mnt_namespaces()
3184 static void dec_mnt_namespaces(struct ucounts *ucounts) in dec_mnt_namespaces() argument
3186 dec_ucount(ucounts, UCOUNT_MNT_NAMESPACES); in dec_mnt_namespaces()
3193 dec_mnt_namespaces(ns->ucounts); in free_mnt_ns()
3210 struct ucounts *ucounts; in alloc_mnt_ns() local
3213 ucounts = inc_mnt_namespaces(user_ns); in alloc_mnt_ns()
3214 if (!ucounts) in alloc_mnt_ns()
3219 dec_mnt_namespaces(ucounts); in alloc_mnt_ns()
3226 dec_mnt_namespaces(ucounts); in alloc_mnt_ns()
3237 new_ns->ucounts = ucounts; in alloc_mnt_ns()