]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0408f37273c570046888dcf1cabdd00c7ff157c5
tree171310a7fb259fa950263f164144a695bffaed2e
parentd5c6774c7c5a7e5a4802966ee37c2d6e51f3e18d
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