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)
commit61a27e1f521ca0dd4a38302958ccc43fd95d8879
tree326fa7a24b2155b4d4f59fcc4656b185ae3355f5
parentfa01b1e9733fd59ecb8b5b6d85dfb481d2025fbf
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