]> git.ipfire.org Git - people/ms/linux.git/commit
md: return the allocated devices from md_alloc
authorChristoph Hellwig <hch@lst.de>
Sat, 23 Jul 2022 06:24:29 +0000 (08:24 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 2 Aug 2022 23:22:46 +0000 (17:22 -0600)
commit34cb92c0a5a15b04e285c690b5a7dee77ddeeaf1
tree6cfb8e1ed50e69186e2a36ad37486ee071222422
parenta110876828f5de63be657c62a33c8f61ececfb33
md: return the allocated devices from md_alloc

Two callers of md_alloc want to use the newly allocated devices, so
return it instead of letting them find it cumbersomely after the
allocation.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-and-tested-by: Logan Gunthorpe <logang@deltatee.com>
Signed-off-by: Song Liu <song@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/md-autodetect.c
drivers/md/md.c
drivers/md/md.h