ucounts 14 fs/mount.h struct ucounts *ucounts; ucounts 3149 fs/namespace.c static struct ucounts *inc_mnt_namespaces(struct user_namespace *ns) ucounts 3154 fs/namespace.c static void dec_mnt_namespaces(struct ucounts *ucounts) ucounts 3156 fs/namespace.c dec_ucount(ucounts, UCOUNT_MNT_NAMESPACES); ucounts 3163 fs/namespace.c dec_mnt_namespaces(ns->ucounts); ucounts 3180 fs/namespace.c struct ucounts *ucounts; ucounts 3183 fs/namespace.c ucounts = inc_mnt_namespaces(user_ns); ucounts 3184 fs/namespace.c if (!ucounts) ucounts 3189 fs/namespace.c dec_mnt_namespaces(ucounts); ucounts 3196 fs/namespace.c dec_mnt_namespaces(ucounts); ucounts 3207 fs/namespace.c new_ns->ucounts = ucounts; ucounts 37 fs/notify/inotify/inotify.h static inline void dec_inotify_instances(struct ucounts *ucounts) ucounts 39 fs/notify/inotify/inotify.h dec_ucount(ucounts, UCOUNT_INOTIFY_INSTANCES); ucounts 42 fs/notify/inotify/inotify.h static inline struct ucounts *inc_inotify_watches(struct ucounts *ucounts) ucounts 44 fs/notify/inotify/inotify.h return inc_ucount(ucounts->ns, ucounts->uid, UCOUNT_INOTIFY_WATCHES); ucounts 47 fs/notify/inotify/inotify.h static inline void dec_inotify_watches(struct ucounts *ucounts) ucounts 49 fs/notify/inotify/inotify.h dec_ucount(ucounts, UCOUNT_INOTIFY_WATCHES); ucounts 186 fs/notify/inotify/inotify_fsnotify.c if (group->inotify_data.ucounts) ucounts 187 fs/notify/inotify/inotify_fsnotify.c dec_inotify_instances(group->inotify_data.ucounts); ucounts 500 fs/notify/inotify/inotify_user.c dec_inotify_watches(group->inotify_data.ucounts); ucounts 583 fs/notify/inotify/inotify_user.c if (!inc_inotify_watches(group->inotify_data.ucounts)) { ucounts 649 fs/notify/inotify/inotify_user.c group->inotify_data.ucounts = inc_ucount(current_user_ns(), ucounts 653 fs/notify/inotify/inotify_user.c if (!group->inotify_data.ucounts) { ucounts 858 include/linux/cgroup.h struct ucounts *ucounts; ucounts 198 include/linux/fsnotify_backend.h struct ucounts *ucounts; ucounts 69 include/linux/ipc_namespace.h struct ucounts *ucounts; ucounts 42 include/linux/pid_namespace.h struct ucounts *ucounts; ucounts 38 include/linux/user_namespace.h struct ucounts; ucounts 87 include/linux/user_namespace.h struct ucounts *ucounts; ucounts 103 include/linux/user_namespace.h struct ucounts *inc_ucount(struct user_namespace *ns, kuid_t uid, enum ucount_type type); ucounts 104 include/linux/user_namespace.h void dec_ucount(struct ucounts *ucounts, enum ucount_type type); ucounts 28 include/linux/utsname.h struct ucounts *ucounts; ucounts 87 include/net/net_namespace.h struct ucounts *ucounts; ucounts 22 ipc/namespace.c static struct ucounts *inc_ipc_namespaces(struct user_namespace *ns) ucounts 27 ipc/namespace.c static void dec_ipc_namespaces(struct ucounts *ucounts) ucounts 29 ipc/namespace.c dec_ucount(ucounts, UCOUNT_IPC_NAMESPACES); ucounts 36 ipc/namespace.c struct ucounts *ucounts; ucounts 40 ipc/namespace.c ucounts = inc_ipc_namespaces(user_ns); ucounts 41 ipc/namespace.c if (!ucounts) ucounts 56 ipc/namespace.c ns->ucounts = ucounts; ucounts 74 ipc/namespace.c dec_ipc_namespaces(ucounts); ucounts 124 ipc/namespace.c dec_ipc_namespaces(ns->ucounts); ucounts 12 kernel/cgroup/namespace.c static struct ucounts *inc_cgroup_namespaces(struct user_namespace *ns) ucounts 17 kernel/cgroup/namespace.c static void dec_cgroup_namespaces(struct ucounts *ucounts) ucounts 19 kernel/cgroup/namespace.c dec_ucount(ucounts, UCOUNT_CGROUP_NAMESPACES); ucounts 43 kernel/cgroup/namespace.c dec_cgroup_namespaces(ns->ucounts); ucounts 55 kernel/cgroup/namespace.c struct ucounts *ucounts; ucounts 69 kernel/cgroup/namespace.c ucounts = inc_cgroup_namespaces(user_ns); ucounts 70 kernel/cgroup/namespace.c if (!ucounts) ucounts 82 kernel/cgroup/namespace.c dec_cgroup_namespaces(ucounts); ucounts 87 kernel/cgroup/namespace.c new_ns->ucounts = ucounts; ucounts 68 kernel/pid_namespace.c static struct ucounts *inc_pid_namespaces(struct user_namespace *ns) ucounts 73 kernel/pid_namespace.c static void dec_pid_namespaces(struct ucounts *ucounts) ucounts 75 kernel/pid_namespace.c dec_ucount(ucounts, UCOUNT_PID_NAMESPACES); ucounts 83 kernel/pid_namespace.c struct ucounts *ucounts; ucounts 93 kernel/pid_namespace.c ucounts = inc_pid_namespaces(user_ns); ucounts 94 kernel/pid_namespace.c if (!ucounts) ucounts 117 kernel/pid_namespace.c ns->ucounts = ucounts; ucounts 127 kernel/pid_namespace.c dec_pid_namespaces(ucounts); ucounts 136 kernel/pid_namespace.c dec_pid_namespaces(ns->ucounts); ucounts 114 kernel/ucount.c static struct ucounts *find_ucounts(struct user_namespace *ns, kuid_t uid, struct hlist_head *hashent) ucounts 116 kernel/ucount.c struct ucounts *ucounts; ucounts 118 kernel/ucount.c hlist_for_each_entry(ucounts, hashent, node) { ucounts 119 kernel/ucount.c if (uid_eq(ucounts->uid, uid) && (ucounts->ns == ns)) ucounts 120 kernel/ucount.c return ucounts; ucounts 125 kernel/ucount.c static struct ucounts *get_ucounts(struct user_namespace *ns, kuid_t uid) ucounts 128 kernel/ucount.c struct ucounts *ucounts, *new; ucounts 131 kernel/ucount.c ucounts = find_ucounts(ns, uid, hashent); ucounts 132 kernel/ucount.c if (!ucounts) { ucounts 144 kernel/ucount.c ucounts = find_ucounts(ns, uid, hashent); ucounts 145 kernel/ucount.c if (ucounts) { ucounts 149 kernel/ucount.c ucounts = new; ucounts 152 kernel/ucount.c if (ucounts->count == INT_MAX) ucounts 153 kernel/ucount.c ucounts = NULL; ucounts 155 kernel/ucount.c ucounts->count += 1; ucounts 157 kernel/ucount.c return ucounts; ucounts 160 kernel/ucount.c static void put_ucounts(struct ucounts *ucounts) ucounts 165 kernel/ucount.c ucounts->count -= 1; ucounts 166 kernel/ucount.c if (!ucounts->count) ucounts 167 kernel/ucount.c hlist_del_init(&ucounts->node); ucounts 169 kernel/ucount.c ucounts = NULL; ucounts 172 kernel/ucount.c kfree(ucounts); ucounts 189 kernel/ucount.c struct ucounts *inc_ucount(struct user_namespace *ns, kuid_t uid, ucounts 192 kernel/ucount.c struct ucounts *ucounts, *iter, *bad; ucounts 194 kernel/ucount.c ucounts = get_ucounts(ns, uid); ucounts 195 kernel/ucount.c for (iter = ucounts; iter; iter = tns->ucounts) { ucounts 202 kernel/ucount.c return ucounts; ucounts 205 kernel/ucount.c for (iter = ucounts; iter != bad; iter = iter->ns->ucounts) ucounts 208 kernel/ucount.c put_ucounts(ucounts); ucounts 212 kernel/ucount.c void dec_ucount(struct ucounts *ucounts, enum ucount_type type) ucounts 214 kernel/ucount.c struct ucounts *iter; ucounts 215 kernel/ucount.c for (iter = ucounts; iter; iter = iter->ns->ucounts) { ucounts 219 kernel/ucount.c put_ucounts(ucounts); ucounts 32 kernel/user_namespace.c static struct ucounts *inc_user_namespaces(struct user_namespace *ns, kuid_t uid) ucounts 37 kernel/user_namespace.c static void dec_user_namespaces(struct ucounts *ucounts) ucounts 39 kernel/user_namespace.c return dec_ucount(ucounts, UCOUNT_USER_NAMESPACES); ucounts 74 kernel/user_namespace.c struct ucounts *ucounts; ucounts 81 kernel/user_namespace.c ucounts = inc_user_namespaces(parent_ns, owner); ucounts 82 kernel/user_namespace.c if (!ucounts) ucounts 124 kernel/user_namespace.c ns->ucounts = ucounts; ucounts 149 kernel/user_namespace.c dec_user_namespaces(ucounts); ucounts 180 kernel/user_namespace.c struct ucounts *ucounts = ns->ucounts; ucounts 198 kernel/user_namespace.c dec_user_namespaces(ucounts); ucounts 20 kernel/utsname.c static struct ucounts *inc_uts_namespaces(struct user_namespace *ns) ucounts 25 kernel/utsname.c static void dec_uts_namespaces(struct ucounts *ucounts) ucounts 27 kernel/utsname.c dec_ucount(ucounts, UCOUNT_UTS_NAMESPACES); ucounts 49 kernel/utsname.c struct ucounts *ucounts; ucounts 53 kernel/utsname.c ucounts = inc_uts_namespaces(user_ns); ucounts 54 kernel/utsname.c if (!ucounts) ucounts 66 kernel/utsname.c ns->ucounts = ucounts; ucounts 78 kernel/utsname.c dec_uts_namespaces(ucounts); ucounts 111 kernel/utsname.c dec_uts_namespaces(ns->ucounts); ucounts 389 net/core/net_namespace.c static struct ucounts *inc_net_namespaces(struct user_namespace *ns) ucounts 394 net/core/net_namespace.c static void dec_net_namespaces(struct ucounts *ucounts) ucounts 396 net/core/net_namespace.c dec_ucount(ucounts, UCOUNT_NET_NAMESPACES); ucounts 452 net/core/net_namespace.c struct ucounts *ucounts; ucounts 459 net/core/net_namespace.c ucounts = inc_net_namespaces(user_ns); ucounts 460 net/core/net_namespace.c if (!ucounts) ucounts 469 net/core/net_namespace.c net->ucounts = ucounts; ucounts 486 net/core/net_namespace.c dec_net_namespaces(ucounts); ucounts 613 net/core/net_namespace.c dec_net_namespaces(net->ucounts);