diff options
Diffstat (limited to 'fs/bio.c')
-rw-r--r-- | fs/bio.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -822,7 +822,7 @@ struct bio *bio_copy_user_iov(struct request_queue *q, | |||
822 | return ERR_PTR(-ENOMEM); | 822 | return ERR_PTR(-ENOMEM); |
823 | 823 | ||
824 | ret = -ENOMEM; | 824 | ret = -ENOMEM; |
825 | bio = bio_alloc(gfp_mask, nr_pages); | 825 | bio = bio_kmalloc(gfp_mask, nr_pages); |
826 | if (!bio) | 826 | if (!bio) |
827 | goto out_bmd; | 827 | goto out_bmd; |
828 | 828 | ||
@@ -946,7 +946,7 @@ static struct bio *__bio_map_user_iov(struct request_queue *q, | |||
946 | if (!nr_pages) | 946 | if (!nr_pages) |
947 | return ERR_PTR(-EINVAL); | 947 | return ERR_PTR(-EINVAL); |
948 | 948 | ||
949 | bio = bio_alloc(gfp_mask, nr_pages); | 949 | bio = bio_kmalloc(gfp_mask, nr_pages); |
950 | if (!bio) | 950 | if (!bio) |
951 | return ERR_PTR(-ENOMEM); | 951 | return ERR_PTR(-ENOMEM); |
952 | 952 | ||
@@ -1130,7 +1130,7 @@ static struct bio *__bio_map_kern(struct request_queue *q, void *data, | |||
1130 | int offset, i; | 1130 | int offset, i; |
1131 | struct bio *bio; | 1131 | struct bio *bio; |
1132 | 1132 | ||
1133 | bio = bio_alloc(gfp_mask, nr_pages); | 1133 | bio = bio_kmalloc(gfp_mask, nr_pages); |
1134 | if (!bio) | 1134 | if (!bio) |
1135 | return ERR_PTR(-ENOMEM); | 1135 | return ERR_PTR(-ENOMEM); |
1136 | 1136 | ||