mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
md: use rdev_read_only in restart_array
Make the read-only check in restart_array identical to the other two read-only checks. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
committed by
Jens Axboe
parent
d7a4783883
commit
a42e0d70c5
@@ -6143,7 +6143,7 @@ static int restart_array(struct mddev *mddev)
|
|||||||
if (test_bit(Journal, &rdev->flags) &&
|
if (test_bit(Journal, &rdev->flags) &&
|
||||||
!test_bit(Faulty, &rdev->flags))
|
!test_bit(Faulty, &rdev->flags))
|
||||||
has_journal = true;
|
has_journal = true;
|
||||||
if (bdev_read_only(rdev->bdev))
|
if (rdev_read_only(rdev))
|
||||||
has_readonly = true;
|
has_readonly = true;
|
||||||
}
|
}
|
||||||
rcu_read_unlock();
|
rcu_read_unlock();
|
||||||
|
Reference in New Issue
Block a user