summaryrefslogtreecommitdiff
path: root/drivers/md/raid1.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/raid1.c')
-rw-r--r--drivers/md/raid1.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/md/raid1.c b/drivers/md/raid1.c
index d5fd7841dd9f..cef705c5ffd4 100644
--- a/drivers/md/raid1.c
+++ b/drivers/md/raid1.c
@@ -3069,7 +3069,7 @@ static struct r1conf *setup_conf(struct mddev *mddev)
size_t r1bio_size;
int err = -ENOMEM;
- conf = kzalloc_obj(struct r1conf, GFP_KERNEL);
+ conf = kzalloc_obj(struct r1conf);
if (!conf)
goto abort;
@@ -3083,11 +3083,11 @@ static struct r1conf *setup_conf(struct mddev *mddev)
if (!conf->nr_waiting)
goto abort;
- conf->nr_queued = kzalloc_objs(atomic_t, BARRIER_BUCKETS_NR, GFP_KERNEL);
+ conf->nr_queued = kzalloc_objs(atomic_t, BARRIER_BUCKETS_NR);
if (!conf->nr_queued)
goto abort;
- conf->barrier = kzalloc_objs(atomic_t, BARRIER_BUCKETS_NR, GFP_KERNEL);
+ conf->barrier = kzalloc_objs(atomic_t, BARRIER_BUCKETS_NR);
if (!conf->barrier)
goto abort;