|
@@ -822,7 +822,7 @@ struct bio *bio_copy_user_iov(struct request_queue *q,
|
|
return ERR_PTR(-ENOMEM);
|
|
return ERR_PTR(-ENOMEM);
|
|
|
|
|
|
ret = -ENOMEM;
|
|
ret = -ENOMEM;
|
|
- bio = bio_alloc(gfp_mask, nr_pages);
|
|
|
|
|
|
+ bio = bio_kmalloc(gfp_mask, nr_pages);
|
|
if (!bio)
|
|
if (!bio)
|
|
goto out_bmd;
|
|
goto out_bmd;
|
|
|
|
|
|
@@ -946,7 +946,7 @@ static struct bio *__bio_map_user_iov(struct request_queue *q,
|
|
if (!nr_pages)
|
|
if (!nr_pages)
|
|
return ERR_PTR(-EINVAL);
|
|
return ERR_PTR(-EINVAL);
|
|
|
|
|
|
- bio = bio_alloc(gfp_mask, nr_pages);
|
|
|
|
|
|
+ bio = bio_kmalloc(gfp_mask, nr_pages);
|
|
if (!bio)
|
|
if (!bio)
|
|
return ERR_PTR(-ENOMEM);
|
|
return ERR_PTR(-ENOMEM);
|
|
|
|
|
|
@@ -1130,7 +1130,7 @@ static struct bio *__bio_map_kern(struct request_queue *q, void *data,
|
|
int offset, i;
|
|
int offset, i;
|
|
struct bio *bio;
|
|
struct bio *bio;
|
|
|
|
|
|
- bio = bio_alloc(gfp_mask, nr_pages);
|
|
|
|
|
|
+ bio = bio_kmalloc(gfp_mask, nr_pages);
|
|
if (!bio)
|
|
if (!bio)
|
|
return ERR_PTR(-ENOMEM);
|
|
return ERR_PTR(-ENOMEM);
|
|
|
|
|