]> 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)
commit0b8c3f07cd3eda5f3d53d265caad1196240792d2
tree326fa7a24b2155b4d4f59fcc4656b185ae3355f5
parent47d92465b14c5f632c63825bc020e28e24e085bf
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