diff options
author | Joe Perches <joe@perches.com> | 2013-08-29 18:21:42 -0400 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2013-09-11 15:22:03 -0400 |
commit | c1b511eb211a6c72d66f7755d2b30a9a91ef9423 (patch) | |
tree | 9f86174885153c8669c06db0475457360eb2f65b /block/cfq-iosched.c | |
parent | 7aef2e780b13973ea60aed8c556107dabde6a495 (diff) |
block: Convert kmalloc_node(...GFP_ZERO...) to kzalloc_node(...)
Use the helper function instead of __GFP_ZERO.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/cfq-iosched.c')
-rw-r--r-- | block/cfq-iosched.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/cfq-iosched.c b/block/cfq-iosched.c index d5bbdcfd0dab..f0468e252ee4 100644 --- a/block/cfq-iosched.c +++ b/block/cfq-iosched.c | |||
@@ -4358,7 +4358,7 @@ static int cfq_init_queue(struct request_queue *q, struct elevator_type *e) | |||
4358 | if (!eq) | 4358 | if (!eq) |
4359 | return -ENOMEM; | 4359 | return -ENOMEM; |
4360 | 4360 | ||
4361 | cfqd = kmalloc_node(sizeof(*cfqd), GFP_KERNEL | __GFP_ZERO, q->node); | 4361 | cfqd = kzalloc_node(sizeof(*cfqd), GFP_KERNEL, q->node); |
4362 | if (!cfqd) { | 4362 | if (!cfqd) { |
4363 | kobject_put(&eq->kobj); | 4363 | kobject_put(&eq->kobj); |
4364 | return -ENOMEM; | 4364 | return -ENOMEM; |