Lines Matching refs:up
102 static void uid_hash_insert(struct user_struct *up, struct hlist_head *hashent) in uid_hash_insert() argument
104 hlist_add_head(&up->uidhash_node, hashent); in uid_hash_insert()
107 static void uid_hash_remove(struct user_struct *up) in uid_hash_remove() argument
109 hlist_del_init(&up->uidhash_node); in uid_hash_remove()
130 static void free_user(struct user_struct *up, unsigned long flags) in free_user() argument
133 uid_hash_remove(up); in free_user()
135 key_put(up->uid_keyring); in free_user()
136 key_put(up->session_keyring); in free_user()
137 kmem_cache_free(uid_cachep, up); in free_user()
157 void free_uid(struct user_struct *up) in free_uid() argument
161 if (!up) in free_uid()
165 if (atomic_dec_and_lock(&up->__count, &uidhash_lock)) in free_uid()
166 free_user(up, flags); in free_uid()
174 struct user_struct *up, *new; in alloc_uid() local
177 up = uid_hash_find(uid, hashent); in alloc_uid()
180 if (!up) { in alloc_uid()
193 up = uid_hash_find(uid, hashent); in alloc_uid()
194 if (up) { in alloc_uid()
200 up = new; in alloc_uid()
205 return up; in alloc_uid()