Lines Matching full:up
121 static void uid_hash_insert(struct user_struct *up, struct hlist_head *hashent) in uid_hash_insert() argument
123 hlist_add_head(&up->uidhash_node, hashent); in uid_hash_insert()
126 static void uid_hash_remove(struct user_struct *up) in uid_hash_remove() argument
128 hlist_del_init(&up->uidhash_node); in uid_hash_remove()
145 static int user_epoll_alloc(struct user_struct *up) in user_epoll_alloc() argument
148 return percpu_counter_init(&up->epoll_watches, 0, GFP_KERNEL); in user_epoll_alloc()
154 static void user_epoll_free(struct user_struct *up) in user_epoll_free() argument
157 percpu_counter_destroy(&up->epoll_watches); in user_epoll_free()
165 static void free_user(struct user_struct *up, unsigned long flags) in free_user() argument
168 uid_hash_remove(up); in free_user()
170 user_epoll_free(up); in free_user()
171 kmem_cache_free(uid_cachep, up); in free_user()
191 void free_uid(struct user_struct *up) in free_uid() argument
195 if (!up) in free_uid()
198 if (refcount_dec_and_lock_irqsave(&up->__count, &uidhash_lock, &flags)) in free_uid()
199 free_user(up, flags); in free_uid()
206 struct user_struct *up, *new; in alloc_uid() local
209 up = uid_hash_find(uid, hashent); in alloc_uid()
212 if (!up) { in alloc_uid()
231 up = uid_hash_find(uid, hashent); in alloc_uid()
232 if (up) { in alloc_uid()
237 up = new; in alloc_uid()
242 return up; in alloc_uid()