diff options
author | Christoph Hellwig | 2021-02-01 14:17:21 +0100 |
---|---|---|
committer | Jens Axboe | 2021-02-01 09:35:20 -0700 |
commit | a42e0d70c517c88c52154bf74ec39092d897aaca (patch) | |
tree | 553b10fdbbea66532cd361d18674d38468d93514 /drivers/md | |
parent | d7a4783883d350e33308bf7c9ef0fe4e38f9c8e2 (diff) |
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>
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/md.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c index 7c0f61078653..21da0c48f6c2 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c @@ -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(); |