提交 a42e0d70 编写于 作者: C Christoph Hellwig 提交者: Jens Axboe

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: NChristoph Hellwig <hch@lst.de>
Signed-off-by: NJens Axboe <axboe@kernel.dk>
上级 d7a47838
......@@ -6143,7 +6143,7 @@ static int restart_array(struct mddev *mddev)
if (test_bit(Journal, &rdev->flags) &&
!test_bit(Faulty, &rdev->flags))
has_journal = true;
if (bdev_read_only(rdev->bdev))
if (rdev_read_only(rdev))
has_readonly = true;
}
rcu_read_unlock();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册