md: don't detour through bd_contains for the gendisk
authorChristoph Hellwig <hch@lst.de>
Thu, 3 Sep 2020 05:40:59 +0000 (07:40 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 25 Sep 2020 14:18:57 +0000 (08:18 -0600)
commit4245e52d255418278fc4a5eec7425ad0bfeebd31
tree171310a7fb259fa950263f164144a695bffaed2e
parent61a27e1f521ca0dd4a38302958ccc43fd95d8879
md: don't detour through bd_contains for the gendisk

bd_disk is set on all block devices, including those for partitions.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Song Liu <song@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/md.c
drivers/md/md.h