/* Map the user space address into a bio suitable for io to a block device. Returns an error pointer in case of error.  */
struct bio* bio_map_user(struct request_queue *q, struct block_device *bdev, unsigned long uaddr, unsigned int len, int write_to_vm, gfp_t gfp_mask)
/* Map the user space address into a bio suitable for io to a block device. Returns an error pointer in case of error.  */
struct bio* bio_map_user(struct request_queue *q, struct block_device *bdev, unsigned long uaddr, unsigned int len, int write_to_vm, gfp_t gfp_mask)
{
	struct sg_iovec iov;
	iov.iov_base = (void __user *)uaddr;
	iov.iov_len = len;
	return bio_map_user_iov(q, bdev, &iov, 1, write_to_vm, gfp_mask);
}