/* convert get_user_pages() return value to posix mlock() error  */
static int __mlock_posix_error_return(long retval)
/* convert get_user_pages() return value to posix mlock() error  */
static int __mlock_posix_error_return(long retval)
{
	if (retval == -EFAULT)
		retval = -ENOMEM;
	else if (retval == -ENOMEM)
		retval = -EAGAIN;
	return retval;
}