summaryrefslogtreecommitdiff
path: root/drivers/block/nbd.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-11-23 17:41:40 +0300
committerJens Axboe <axboe@kernel.dk>2020-12-02 00:53:40 +0300
commite6cb53827ed60019bbbc5cf189dd204b3b0e8121 (patch)
treee07a1eba916356022d4e426dc3e3051dba7eb4be /drivers/block/nbd.c
parentc64dc3bd87097e7f08b9437819440f8bfddef995 (diff)
downloadlinux-e6cb53827ed60019bbbc5cf189dd204b3b0e8121.tar.xz
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 'drivers/block/nbd.c')
0 files changed, 0 insertions, 0 deletions