aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/raid1.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/raid1.c')
-rw-r--r--drivers/md/raid1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/raid1.c b/drivers/md/raid1.c
index 3362cfc8073c..40f58d3b67ff 100644
--- a/drivers/md/raid1.c
+++ b/drivers/md/raid1.c
@@ -100,7 +100,7 @@ static void * r1buf_pool_alloc(gfp_t gfp_flags, void *data)
100 * Allocate bios : 1 for reading, n-1 for writing 100 * Allocate bios : 1 for reading, n-1 for writing
101 */ 101 */
102 for (j = pi->raid_disks ; j-- ; ) { 102 for (j = pi->raid_disks ; j-- ; ) {
103 bio = bio_alloc(gfp_flags, RESYNC_PAGES); 103 bio = bio_kmalloc(gfp_flags, RESYNC_PAGES);
104 if (!bio) 104 if (!bio)
105 goto out_free_bio; 105 goto out_free_bio;
106 r1_bio->bios[j] = bio; 106 r1_bio->bios[j] = bio;