* [PATCH] block: Convert kmalloc_node(...GFP_ZERO...) to kzalloc_node(...)
@ 2013-08-29 22:21 Joe Perches
2013-09-11 19:22 ` Jens Axboe
0 siblings, 1 reply; 2+ messages in thread
From: Joe Perches @ 2013-08-29 22:21 UTC (permalink / raw)
To: Jens Axboe; +Cc: linux-kernel
Use the helper function instead of __GFP_ZERO.
Signed-off-by: Joe Perches <joe@perches.com>
---
block/cfq-iosched.c | 2 +-
block/deadline-iosched.c | 2 +-
block/elevator.c | 2 +-
block/genhd.c | 3 +--
4 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/block/cfq-iosched.c b/block/cfq-iosched.c
index 42a52d5..7cee98a 100644
--- a/block/cfq-iosched.c
+++ b/block/cfq-iosched.c
@@ -4356,7 +4356,7 @@ static int cfq_init_queue(struct request_queue *q, struct elevator_type *e)
if (!eq)
return -ENOMEM;
- cfqd = kmalloc_node(sizeof(*cfqd), GFP_KERNEL | __GFP_ZERO, q->node);
+ cfqd = kzalloc_node(sizeof(*cfqd), GFP_KERNEL, q->node);
if (!cfqd) {
kobject_put(&eq->kobj);
return -ENOMEM;
diff --git a/block/deadline-iosched.c b/block/deadline-iosched.c
index 20614a3..9ef6640 100644
--- a/block/deadline-iosched.c
+++ b/block/deadline-iosched.c
@@ -346,7 +346,7 @@ static int deadline_init_queue(struct request_queue *q, struct elevator_type *e)
if (!eq)
return -ENOMEM;
- dd = kmalloc_node(sizeof(*dd), GFP_KERNEL | __GFP_ZERO, q->node);
+ dd = kzalloc_node(sizeof(*dd), GFP_KERNEL, q->node);
if (!dd) {
kobject_put(&eq->kobj);
return -ENOMEM;
diff --git a/block/elevator.c b/block/elevator.c
index 668394d..2bcbd8c 100644
--- a/block/elevator.c
+++ b/block/elevator.c
@@ -155,7 +155,7 @@ struct elevator_queue *elevator_alloc(struct request_queue *q,
{
struct elevator_queue *eq;
- eq = kmalloc_node(sizeof(*eq), GFP_KERNEL | __GFP_ZERO, q->node);
+ eq = kzalloc_node(sizeof(*eq), GFP_KERNEL, q->node);
if (unlikely(!eq))
goto err;
diff --git a/block/genhd.c b/block/genhd.c
index 43c971f..c5c47e0 100644
--- a/block/genhd.c
+++ b/block/genhd.c
@@ -1253,8 +1253,7 @@ struct gendisk *alloc_disk_node(int minors, int node_id)
{
struct gendisk *disk;
- disk = kmalloc_node(sizeof(struct gendisk),
- GFP_KERNEL | __GFP_ZERO, node_id);
+ disk = kzalloc_node(sizeof(struct gendisk), GFP_KERNEL, node_id);
if (disk) {
if (!init_part_stats(&disk->part0)) {
kfree(disk);
--
1.8.1.2.459.gbcd45b4.dirty
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] block: Convert kmalloc_node(...GFP_ZERO...) to kzalloc_node(...)
2013-08-29 22:21 [PATCH] block: Convert kmalloc_node(...GFP_ZERO...) to kzalloc_node(...) Joe Perches
@ 2013-09-11 19:22 ` Jens Axboe
0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2013-09-11 19:22 UTC (permalink / raw)
To: Joe Perches; +Cc: linux-kernel
On Thu, Aug 29 2013, Joe Perches wrote:
> Use the helper function instead of __GFP_ZERO.
Applied.
--
Jens Axboe
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-09-11 19:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-29 22:21 [PATCH] block: Convert kmalloc_node(...GFP_ZERO...) to kzalloc_node(...) Joe Perches
2013-09-11 19:22 ` Jens Axboe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox