diff options
author | Christoph Hellwig <hch@lst.de> | 2021-02-01 14:17:21 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-02-01 17:35:20 +0100 |
commit | a42e0d70c517c88c52154bf74ec39092d897aaca (patch) | |
tree | 553b10fdbbea66532cd361d18674d38468d93514 /drivers | |
parent | md: check for NULL ->meta_bdev before calling bdev_read_only (diff) | |
download | linux-a42e0d70c517c88c52154bf74ec39092d897aaca.tar.xz linux-a42e0d70c517c88c52154bf74ec39092d897aaca.zip |
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')
-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(); |