Lines Matching defs:up
117 static void uid_hash_insert(struct user_struct *up, struct hlist_head *hashent)
119 hlist_add_head(&up->uidhash_node, hashent);
122 static void uid_hash_remove(struct user_struct *up)
124 hlist_del_init(&up->uidhash_node);
141 static int user_epoll_alloc(struct user_struct *up)
144 return percpu_counter_init(&up->epoll_watches, 0, GFP_KERNEL);
150 static void user_epoll_free(struct user_struct *up)
153 percpu_counter_destroy(&up->epoll_watches);
161 static void free_user(struct user_struct *up, unsigned long flags)
164 uid_hash_remove(up);
166 user_epoll_free(up);
167 kmem_cache_free(uid_cachep, up);
187 void free_uid(struct user_struct *up)
191 if (!up)
194 if (refcount_dec_and_lock_irqsave(&up->__count, &uidhash_lock, &flags))
195 free_user(up, flags);
202 struct user_struct *up, *new;
205 up = uid_hash_find(uid, hashent);
208 if (!up) {
227 up = uid_hash_find(uid, hashent);
228 if (up) {
233 up = new;
238 return up;