Lines Matching refs:up
112 static void uid_hash_insert(struct user_struct *up, struct hlist_head *hashent) in uid_hash_insert() argument
114 hlist_add_head(&up->uidhash_node, hashent); in uid_hash_insert()
117 static void uid_hash_remove(struct user_struct *up) in uid_hash_remove() argument
119 hlist_del_init(&up->uidhash_node); in uid_hash_remove()
140 static void free_user(struct user_struct *up, unsigned long flags) in free_user() argument
143 uid_hash_remove(up); 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()
205 up = new; in alloc_uid()
211 return up; in alloc_uid()