• Home
  • Raw
  • Download

Lines Matching refs:sb_flags

857 			set_bit(MD_SB_NEED_REWRITE, &mddev->sb_flags);  in super_written()
911 if (test_and_clear_bit(MD_SB_NEED_REWRITE, &mddev->sb_flags)) in md_super_wait()
2474 set_bit(MD_SB_CHANGE_CLEAN, &mddev->sb_flags); in set_in_sync()
2557 set_bit(MD_SB_CHANGE_DEVS, &mddev->sb_flags); in md_update_sb()
2563 if (test_and_clear_bit(MD_SB_CHANGE_DEVS, &mddev->sb_flags)) in md_update_sb()
2565 if (test_and_clear_bit(MD_SB_CHANGE_CLEAN, &mddev->sb_flags)) in md_update_sb()
2572 bit_clear_unless(&mddev->sb_flags, BIT(MD_SB_CHANGE_PENDING), in md_update_sb()
2598 clear_bit(MD_SB_CHANGE_CLEAN, &mddev->sb_flags); in md_update_sb()
2599 clear_bit(MD_SB_CHANGE_DEVS, &mddev->sb_flags); in md_update_sb()
2601 clear_bit(MD_SB_CHANGE_PENDING, &mddev->sb_flags); in md_update_sb()
2621 if (test_and_clear_bit(MD_SB_CHANGE_DEVS, &mddev->sb_flags)) in md_update_sb()
2623 if (test_and_clear_bit(MD_SB_CHANGE_CLEAN, &mddev->sb_flags)) in md_update_sb()
2721 !bit_clear_unless(&mddev->sb_flags, BIT(MD_SB_CHANGE_PENDING), in md_update_sb()
2766 set_bit(MD_SB_CHANGE_DEVS, &mddev->sb_flags); in add_bound_rdev()
2883 set_bit(MD_SB_CHANGE_DEVS, &mddev->sb_flags); in state_store()
3977 set_bit(MD_SB_CHANGE_DEVS, &mddev->sb_flags); in level_store()
4172 set_bit(MD_SB_CHANGE_CLEAN, &mddev->sb_flags); in resync_start_store()
4252 if (test_bit(MD_SB_CHANGE_PENDING, &mddev->sb_flags)) in array_state_show()
4294 clear_bit(MD_SB_CHANGE_PENDING, &mddev->sb_flags); in array_state_store()
4368 clear_bit(MD_SB_CHANGE_PENDING, &mddev->sb_flags); in array_state_store()
5841 if (mddev->sb_flags) in md_run()
5969 mddev->sb_flags = 0; in md_clean()
6022 mddev->sb_flags)) { in __md_stop_writes()
6099 if (mddev->external && test_bit(MD_SB_CHANGE_PENDING, &mddev->sb_flags)) in md_set_readonly()
6105 !test_bit(MD_SB_CHANGE_PENDING, &mddev->sb_flags)); in md_set_readonly()
6727 set_bit(MD_SB_CHANGE_DEVS, &mddev->sb_flags); in hot_remove_disk()
6796 set_bit(MD_SB_CHANGE_DEVS, &mddev->sb_flags); in hot_add_disk()
6961 mddev->sb_flags = 0; in set_array_info()
6963 set_bit(MD_SB_CHANGE_DEVS, &mddev->sb_flags); in set_array_info()
7514 if (test_bit(MD_SB_CHANGE_DEVS, &mddev->sb_flags)) { in md_ioctl()
7517 !test_bit(MD_SB_CHANGE_DEVS, &mddev->sb_flags) && in md_ioctl()
7518 !test_bit(MD_SB_CHANGE_PENDING, &mddev->sb_flags)); in md_ioctl()
8307 set_bit(MD_SB_CHANGE_CLEAN, &mddev->sb_flags); in md_write_start()
8308 set_bit(MD_SB_CHANGE_PENDING, &mddev->sb_flags); in md_write_start()
8320 !test_bit(MD_SB_CHANGE_PENDING, &mddev->sb_flags) || in md_write_start()
8322 if (test_bit(MD_SB_CHANGE_PENDING, &mddev->sb_flags)) { in md_write_start()
8382 set_bit(MD_SB_CHANGE_CLEAN, &mddev->sb_flags); in md_allow_write()
8383 set_bit(MD_SB_CHANGE_PENDING, &mddev->sb_flags); in md_allow_write()
8392 !test_bit(MD_SB_CHANGE_PENDING, &mddev->sb_flags)); in md_allow_write()
8634 set_bit(MD_SB_CHANGE_CLEAN, &mddev->sb_flags); in md_do_sync()
8785 set_mask_bits(&mddev->sb_flags, 0, in md_do_sync()
8906 set_bit(MD_SB_CHANGE_DEVS, &mddev->sb_flags); in remove_and_add_spares()
8911 set_bit(MD_SB_CHANGE_DEVS, &mddev->sb_flags); in remove_and_add_spares()
8966 if (test_bit(MD_ALLOW_SB_UPDATE, &mddev->flags) && mddev->sb_flags) { in md_check_recovery()
8996 (mddev->sb_flags & ~ (1<<MD_SB_CHANGE_PENDING)) || in md_check_recovery()
9037 clear_bit(MD_SB_CHANGE_PENDING, &mddev->sb_flags); in md_check_recovery()
9059 if (mddev->sb_flags) in md_check_recovery()
9158 set_bit(MD_SB_CHANGE_DEVS, &mddev->sb_flags); in md_reap_sync_thread()
9250 set_mask_bits(&mddev->sb_flags, 0, in rdev_set_badblocks()