diff options
author | Christoph Hellwig <hch@lst.de> | 2020-11-23 15:41:40 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-12-01 14:53:40 -0700 |
commit | e6cb53827ed60019bbbc5cf189dd204b3b0e8121 (patch) | |
tree | e07a1eba916356022d4e426dc3e3051dba7eb4be /block/partitions | |
parent | c64dc3bd87097e7f08b9437819440f8bfddef995 (diff) |
block: initialize struct block_device in bdev_alloc
Don't play tricks with slab constructors as bdev structures tends to not
get reused very much, and this makes the code a lot less error prone.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/partitions')
0 files changed, 0 insertions, 0 deletions