/* If the user_struct could not be found, return NULL.  */
struct user_struct* find_user(uid_t uid)
/* If the user_struct could not be found, return NULL.  */
struct user_struct* find_user(uid_t uid)
{
	struct user_struct *ret;
	unsigned long flags;
	struct user_namespace *ns = current_user_ns();
	spin_lock_irqsave(&uidhash_lock, flags);
	ret = uid_hash_find(uid, uidhashentry(ns, uid));
	spin_unlock_irqrestore(&uidhash_lock, flags);
	return ret;
}