• Home
  • Raw
  • Download

Lines Matching refs:ro

304 	if (mddev->ro == 1 && unlikely(rw == WRITE)) {  in md_make_request()
2408 if (mddev->ro) { in md_update_sb()
3849 switch(mddev->ro) { in array_state_show()
3877 static int do_md_stop(struct mddev * mddev, int ro, struct block_device *bdev);
3907 mddev->ro = 1; in array_state_store()
3914 if (mddev->ro == 0) in array_state_store()
3916 else if (mddev->ro == 1) in array_state_store()
3919 mddev->ro = 2; in array_state_store()
3923 mddev->ro = 2; in array_state_store()
3952 mddev->ro = 0; in array_state_store()
4206 (!mddev->ro && test_bit(MD_RECOVERY_NEEDED, &mddev->recovery))) { in action_show()
4262 if (mddev->ro == 2) { in action_store()
4266 mddev->ro = 0; in action_store()
4469 mddev->ro == 0 && in max_sync_store()
5080 if (start_readonly && mddev->ro == 0) in md_run()
5081 mddev->ro = 2; /* read-only, but switch on first write */ in md_run()
5118 } else if (mddev->ro == 2) /* auto-readonly not meaningful */ in md_run()
5119 mddev->ro = 0; in md_run()
5182 if (!mddev->ro) in restart_array()
5185 mddev->ro = 0; in restart_array()
5238 mddev->ro = 0; in md_clean()
5282 if (mddev->ro == 0 && in __md_stop_writes()
5337 if (mddev->ro==1) in md_set_readonly()
5339 mddev->ro = 1; in md_set_readonly()
5376 if (mddev->ro) in do_md_stop()
5396 if (mddev->ro) in do_md_stop()
5397 mddev->ro = 0; in do_md_stop()
6337 int ro; in md_ioctl() local
6512 if (get_user(ro, (int __user *)(arg))) { in md_ioctl()
6521 if (ro) in md_ioctl()
6525 if (mddev->ro != 1) in md_ioctl()
6534 mddev->ro = 2; in md_ioctl()
6548 if (_IOC_TYPE(cmd) == MD_MAJOR && mddev->ro && mddev->pers) { in md_ioctl()
6549 if (mddev->ro == 2) { in md_ioctl()
6550 mddev->ro = 0; in md_ioctl()
7027 if (mddev->ro==1) in md_seq_show()
7029 if (mddev->ro==2) in md_seq_show()
7230 BUG_ON(mddev->ro == 1); in md_write_start()
7231 if (mddev->ro == 2) { in md_write_start()
7233 mddev->ro = 0; in md_write_start()
7282 if (mddev->ro) in md_allow_write()
7332 if (mddev->ro) /* never try to sync a read-only array */ in md_do_sync()
7695 if (mddev->ro && in remove_and_add_spares()
7711 if (mddev->ro && rdev->recovery_offset != MaxSector) in remove_and_add_spares()
7768 if (mddev->ro && !test_bit(MD_RECOVERY_NEEDED, &mddev->recovery)) in md_check_recovery()
7783 if (mddev->ro) { in md_check_recovery()