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, 2 insertions, 4 deletions
diff --git a/drivers/md/raid1.c b/drivers/md/raid1.c
index cef705c5ffd4..181400e147c0 100644
--- a/drivers/md/raid1.c
+++ b/drivers/md/raid1.c
@@ -3073,13 +3073,11 @@ static struct r1conf *setup_conf(struct mddev *mddev)
if (!conf)
goto abort;
- conf->nr_pending = kzalloc_objs(atomic_t, BARRIER_BUCKETS_NR,
- GFP_KERNEL);
+ conf->nr_pending = kzalloc_objs(atomic_t, BARRIER_BUCKETS_NR);
if (!conf->nr_pending)
goto abort;
- conf->nr_waiting = kzalloc_objs(atomic_t, BARRIER_BUCKETS_NR,
- GFP_KERNEL);
+ conf->nr_waiting = kzalloc_objs(atomic_t, BARRIER_BUCKETS_NR);
if (!conf->nr_waiting)
goto abort;