]> git.baikalelectronics.ru Git - kernel.git/commit
md: compare bd_disk instead of bd_contains
authorChristoph Hellwig <hch@lst.de>
Thu, 3 Sep 2020 05:40:58 +0000 (07:40 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 25 Sep 2020 14:18:57 +0000 (08:18 -0600)
commitd5c6774c7c5a7e5a4802966ee37c2d6e51f3e18d
tree326fa7a24b2155b4d4f59fcc4656b185ae3355f5
parenta83669847916b76ce831b49ba3585b4a54d03339
md: compare bd_disk instead of bd_contains

To check for partitions of the same disk bd_contains works as well, but
bd_disk is way more obvious.

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