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/genhd.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/genhd.c')
-rw-r--r-- | block/genhd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/block/genhd.c b/block/genhd.c index dadf42b454a3..791f41943132 100644 --- a/block/genhd.c +++ b/block/genhd.c | |||
@@ -1252,8 +1252,7 @@ struct gendisk *alloc_disk_node(int minors, int node_id) | |||
1252 | { | 1252 | { |
1253 | struct gendisk *disk; | 1253 | struct gendisk *disk; |
1254 | 1254 | ||
1255 | disk = kmalloc_node(sizeof(struct gendisk), | 1255 | disk = kzalloc_node(sizeof(struct gendisk), GFP_KERNEL, node_id); |
1256 | GFP_KERNEL | __GFP_ZERO, node_id); | ||
1257 | if (disk) { | 1256 | if (disk) { |
1258 | if (!init_part_stats(&disk->part0)) { | 1257 | if (!init_part_stats(&disk->part0)) { |
1259 | kfree(disk); | 1258 | kfree(disk); |