Lines Matching refs:up
63 static void uid_hash_insert(struct user_struct *up, struct hlist_head *hashent)
65 hlist_add_head(&up->uidhash_node, hashent);
68 static void uid_hash_remove(struct user_struct *up)
70 hlist_del_init(&up->uidhash_node);
71 put_user_ns(up->user_ns);
93 static void free_user(struct user_struct *up, unsigned long flags)
95 uid_hash_remove(up);
97 key_put(up->uid_keyring);
98 key_put(up->session_keyring);
99 kmem_cache_free(uid_cachep, up);
120 void free_uid(struct user_struct *up)
124 if (!up)
128 if (atomic_dec_and_lock(&up->__count, &uidhash_lock))
129 free_user(up, flags);
137 struct user_struct *up, *new;
140 up = uid_hash_find(uid, hashent);
143 if (!up) {
158 up = uid_hash_find(uid, hashent);
159 if (up) {
166 up = new;
171 return up;