Lines Matching refs:sb_flags
945 set_bit(MD_SB_NEED_REWRITE, &mddev->sb_flags); in super_written()
1002 if (test_and_clear_bit(MD_SB_NEED_REWRITE, &mddev->sb_flags)) in md_super_wait()
2547 set_bit(MD_SB_CHANGE_CLEAN, &mddev->sb_flags); in set_in_sync()
2632 set_bit(MD_SB_CHANGE_DEVS, &mddev->sb_flags); in md_update_sb()
2638 if (test_and_clear_bit(MD_SB_CHANGE_DEVS, &mddev->sb_flags)) in md_update_sb()
2640 if (test_and_clear_bit(MD_SB_CHANGE_CLEAN, &mddev->sb_flags)) in md_update_sb()
2647 bit_clear_unless(&mddev->sb_flags, BIT(MD_SB_CHANGE_PENDING), in md_update_sb()
2673 clear_bit(MD_SB_CHANGE_CLEAN, &mddev->sb_flags); in md_update_sb()
2674 clear_bit(MD_SB_CHANGE_DEVS, &mddev->sb_flags); in md_update_sb()
2676 clear_bit(MD_SB_CHANGE_PENDING, &mddev->sb_flags); in md_update_sb()
2696 if (test_and_clear_bit(MD_SB_CHANGE_DEVS, &mddev->sb_flags)) in md_update_sb()
2698 if (test_and_clear_bit(MD_SB_CHANGE_CLEAN, &mddev->sb_flags)) in md_update_sb()
2789 !bit_clear_unless(&mddev->sb_flags, BIT(MD_SB_CHANGE_PENDING), in md_update_sb()
2830 set_bit(MD_SB_CHANGE_DEVS, &mddev->sb_flags); in add_bound_rdev()
2950 set_bit(MD_SB_CHANGE_DEVS, &mddev->sb_flags); in state_store()
4063 set_bit(MD_SB_CHANGE_DEVS, &mddev->sb_flags); in level_store()
4293 set_bit(MD_SB_CHANGE_CLEAN, &mddev->sb_flags); in resync_start_store()
4372 if (test_bit(MD_SB_CHANGE_PENDING, &mddev->sb_flags)) in array_state_show()
4437 clear_bit(MD_SB_CHANGE_PENDING, &mddev->sb_flags); in array_state_store()
4504 clear_bit(MD_SB_CHANGE_PENDING, &mddev->sb_flags); in array_state_store()
6238 if (mddev->sb_flags) in md_run()
6374 mddev->sb_flags = 0; in md_clean()
6421 mddev->sb_flags)) { in __md_stop_writes()
6497 if (mddev->external && test_bit(MD_SB_CHANGE_PENDING, &mddev->sb_flags)) in md_set_readonly()
6507 !test_bit(MD_SB_CHANGE_PENDING, &mddev->sb_flags)); in md_set_readonly()
7096 set_bit(MD_SB_CHANGE_DEVS, &mddev->sb_flags); in hot_remove_disk()
7162 set_bit(MD_SB_CHANGE_DEVS, &mddev->sb_flags); in hot_add_disk()
7327 mddev->sb_flags = 0; in md_set_array_info()
7329 set_bit(MD_SB_CHANGE_DEVS, &mddev->sb_flags); in md_set_array_info()
7823 if (test_bit(MD_SB_CHANGE_DEVS, &mddev->sb_flags)) { in md_ioctl()
7826 !test_bit(MD_SB_CHANGE_DEVS, &mddev->sb_flags) && in md_ioctl()
7827 !test_bit(MD_SB_CHANGE_PENDING, &mddev->sb_flags)); in md_ioctl()
8680 set_bit(MD_SB_CHANGE_CLEAN, &mddev->sb_flags); in md_write_start()
8681 set_bit(MD_SB_CHANGE_PENDING, &mddev->sb_flags); in md_write_start()
8693 !test_bit(MD_SB_CHANGE_PENDING, &mddev->sb_flags)); in md_write_start()
8825 set_bit(MD_SB_CHANGE_CLEAN, &mddev->sb_flags); in md_allow_write()
8826 set_bit(MD_SB_CHANGE_PENDING, &mddev->sb_flags); in md_allow_write()
8835 !test_bit(MD_SB_CHANGE_PENDING, &mddev->sb_flags)); in md_allow_write()
9094 set_bit(MD_SB_CHANGE_CLEAN, &mddev->sb_flags); in md_do_sync()
9246 set_mask_bits(&mddev->sb_flags, 0, in md_do_sync()
9407 set_bit(MD_SB_CHANGE_DEVS, &mddev->sb_flags); in remove_and_add_spares()
9412 set_bit(MD_SB_CHANGE_DEVS, &mddev->sb_flags); in remove_and_add_spares()
9605 (mddev->sb_flags & ~ (1<<MD_SB_CHANGE_PENDING)) || in md_check_recovery()
9656 clear_bit(MD_SB_CHANGE_PENDING, &mddev->sb_flags); in md_check_recovery()
9679 if (mddev->sb_flags) in md_check_recovery()
9736 set_bit(MD_SB_CHANGE_DEVS, &mddev->sb_flags); in md_reap_sync_thread()
9828 set_mask_bits(&mddev->sb_flags, 0, in rdev_set_badblocks()