]> git.baikalelectronics.ru Git - kernel.git/commit
md: remove bio_alloc_mddev
authorChristoph Hellwig <hch@lst.de>
Tue, 26 Jan 2021 14:52:41 +0000 (15:52 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 27 Jan 2021 16:51:48 +0000 (09:51 -0700)
commit8cc7401264d5098cb4e8a73bd534f4675c4ecd4e
treeaa888feb73d672e24f3331ce1aebb72fc6a58b64
parent281562158c130c37914d3fd5132adaa9d8a80016
md: remove bio_alloc_mddev

bio_alloc_mddev is never called with a NULL mddev, and ->bio_set is
initialized in md_run, so it always must be initialized as well.  Just
open code the remaining call to bio_alloc_bioset.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Song Liu <song@kernel.org>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Acked-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/md.c
drivers/md/md.h
drivers/md/raid1.c
drivers/md/raid10.c