Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Christoph Hellwig and committed by
Jens Axboe
a42e0d70 d7a47838

+1 -1
+1 -1
drivers/md/md.c
··· 6143 6143 if (test_bit(Journal, &rdev->flags) && 6144 6144 !test_bit(Faulty, &rdev->flags)) 6145 6145 has_journal = true; 6146 - if (bdev_read_only(rdev->bdev)) 6146 + if (rdev_read_only(rdev)) 6147 6147 has_readonly = true; 6148 6148 } 6149 6149 rcu_read_unlock();