Lines Matching refs:up
110 static void uid_hash_insert(struct user_struct *up, struct hlist_head *hashent) in uid_hash_insert() argument
112 hlist_add_head(&up->uidhash_node, hashent); in uid_hash_insert()
115 static void uid_hash_remove(struct user_struct *up) in uid_hash_remove() argument
117 hlist_del_init(&up->uidhash_node); in uid_hash_remove()
138 static void free_user(struct user_struct *up, unsigned long flags) in free_user() argument
141 uid_hash_remove(up); in free_user()
143 key_put(up->uid_keyring); in free_user()
144 key_put(up->session_keyring); in free_user()
145 kmem_cache_free(uid_cachep, up); in free_user()
165 void free_uid(struct user_struct *up) in free_uid() argument
169 if (!up) in free_uid()
172 if (refcount_dec_and_lock_irqsave(&up->__count, &uidhash_lock, &flags)) in free_uid()
173 free_user(up, flags); in free_uid()
179 struct user_struct *up, *new; in alloc_uid() local
182 up = uid_hash_find(uid, hashent); in alloc_uid()
185 if (!up) { in alloc_uid()
200 up = uid_hash_find(uid, hashent); in alloc_uid()
201 if (up) { in alloc_uid()
207 up = new; in alloc_uid()
212 return up; in alloc_uid()