Searched refs:ucounts (Results 1 – 12 of 12) sorted by relevance
48 static inline void dec_inotify_instances(struct ucounts *ucounts) in dec_inotify_instances() argument50 dec_ucount(ucounts, UCOUNT_INOTIFY_INSTANCES); in dec_inotify_instances()53 static inline struct ucounts *inc_inotify_watches(struct ucounts *ucounts) in inc_inotify_watches() argument55 return inc_ucount(ucounts->ns, ucounts->uid, UCOUNT_INOTIFY_WATCHES); in inc_inotify_watches()58 static inline void dec_inotify_watches(struct ucounts *ucounts) in dec_inotify_watches() argument60 dec_ucount(ucounts, UCOUNT_INOTIFY_WATCHES); in dec_inotify_watches()
185 if (group->inotify_data.ucounts) in inotify_free_group_priv()186 dec_inotify_instances(group->inotify_data.ucounts); in inotify_free_group_priv()
502 dec_inotify_watches(group->inotify_data.ucounts); in inotify_ignored_and_remove_idr()585 if (!inc_inotify_watches(group->inotify_data.ucounts)) { in inotify_new_watch()650 group->inotify_data.ucounts = inc_ucount(current_user_ns(), in inotify_new_group()654 if (!group->inotify_data.ucounts) { in inotify_new_group()
38 struct ucounts;77 struct ucounts *ucounts; member81 struct ucounts { struct93 struct ucounts *inc_ucount(struct user_namespace *ns, kuid_t uid, enum ucount_type type); argument94 void dec_ucount(struct ucounts *ucounts, enum ucount_type type);
28 struct ucounts *ucounts; member
42 struct ucounts *ucounts; member
68 struct ucounts *ucounts; member
189 struct ucounts *ucounts; member
849 struct ucounts *ucounts; member
14 struct ucounts *ucounts; member
2832 static struct ucounts *inc_mnt_namespaces(struct user_namespace *ns) in inc_mnt_namespaces()2837 static void dec_mnt_namespaces(struct ucounts *ucounts) in dec_mnt_namespaces() argument2839 dec_ucount(ucounts, UCOUNT_MNT_NAMESPACES); in dec_mnt_namespaces()2845 dec_mnt_namespaces(ns->ucounts); in free_mnt_ns()2862 struct ucounts *ucounts; in alloc_mnt_ns() local2865 ucounts = inc_mnt_namespaces(user_ns); in alloc_mnt_ns()2866 if (!ucounts) in alloc_mnt_ns()2871 dec_mnt_namespaces(ucounts); in alloc_mnt_ns()2877 dec_mnt_namespaces(ucounts); in alloc_mnt_ns()2888 new_ns->ucounts = ucounts; in alloc_mnt_ns()
73 struct ucounts *ucounts; member