/* 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_iov(struct request_queue *q, struct block_device *bdev, struct sg_iovec *iov, int iov_count, 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_iov(struct request_queue *q, struct block_device *bdev, struct sg_iovec *iov, int iov_count, int write_to_vm, gfp_t gfp_mask)
{
	struct bio *bio;
	bio = __bio_map_user_iov(q, bdev, iov, iov_count, write_to_vm,
				 gfp_mask);
	if (IS_ERR(bio))
		return bio;
	bio_get(bio);
	return bio;
}