Lines Matching refs:sb_flags
922 set_bit(MD_SB_NEED_REWRITE, &mddev->sb_flags); in super_written()
978 if (test_and_clear_bit(MD_SB_NEED_REWRITE, &mddev->sb_flags)) in md_super_wait()
2540 set_bit(MD_SB_CHANGE_CLEAN, &mddev->sb_flags); in set_in_sync()
2625 set_bit(MD_SB_CHANGE_DEVS, &mddev->sb_flags); in md_update_sb()
2631 if (test_and_clear_bit(MD_SB_CHANGE_DEVS, &mddev->sb_flags)) in md_update_sb()
2633 if (test_and_clear_bit(MD_SB_CHANGE_CLEAN, &mddev->sb_flags)) in md_update_sb()
2640 bit_clear_unless(&mddev->sb_flags, BIT(MD_SB_CHANGE_PENDING), in md_update_sb()
2666 clear_bit(MD_SB_CHANGE_CLEAN, &mddev->sb_flags); in md_update_sb()
2667 clear_bit(MD_SB_CHANGE_DEVS, &mddev->sb_flags); in md_update_sb()
2669 clear_bit(MD_SB_CHANGE_PENDING, &mddev->sb_flags); in md_update_sb()
2689 if (test_and_clear_bit(MD_SB_CHANGE_DEVS, &mddev->sb_flags)) in md_update_sb()
2691 if (test_and_clear_bit(MD_SB_CHANGE_CLEAN, &mddev->sb_flags)) in md_update_sb()
2787 !bit_clear_unless(&mddev->sb_flags, BIT(MD_SB_CHANGE_PENDING), in md_update_sb()
2832 set_bit(MD_SB_CHANGE_DEVS, &mddev->sb_flags); in add_bound_rdev()
2953 set_bit(MD_SB_CHANGE_DEVS, &mddev->sb_flags); in state_store()
4057 set_bit(MD_SB_CHANGE_DEVS, &mddev->sb_flags); in level_store()
4260 set_bit(MD_SB_CHANGE_CLEAN, &mddev->sb_flags); in resync_start_store()
4339 if (test_bit(MD_SB_CHANGE_PENDING, &mddev->sb_flags)) in array_state_show()
4381 clear_bit(MD_SB_CHANGE_PENDING, &mddev->sb_flags); in array_state_store()
4455 clear_bit(MD_SB_CHANGE_PENDING, &mddev->sb_flags); in array_state_store()
6025 if (mddev->sb_flags) in md_run()
6155 mddev->sb_flags = 0; in md_clean()
6210 mddev->sb_flags)) { in __md_stop_writes()
6293 if (mddev->external && test_bit(MD_SB_CHANGE_PENDING, &mddev->sb_flags)) in md_set_readonly()
6299 !test_bit(MD_SB_CHANGE_PENDING, &mddev->sb_flags)); in md_set_readonly()
6914 set_bit(MD_SB_CHANGE_DEVS, &mddev->sb_flags); in hot_remove_disk()
6982 set_bit(MD_SB_CHANGE_DEVS, &mddev->sb_flags); in hot_add_disk()
7155 mddev->sb_flags = 0; in md_set_array_info()
7157 set_bit(MD_SB_CHANGE_DEVS, &mddev->sb_flags); in md_set_array_info()
7682 if (test_bit(MD_SB_CHANGE_DEVS, &mddev->sb_flags)) { in md_ioctl()
7685 !test_bit(MD_SB_CHANGE_DEVS, &mddev->sb_flags) && in md_ioctl()
7686 !test_bit(MD_SB_CHANGE_PENDING, &mddev->sb_flags)); in md_ioctl()
8533 set_bit(MD_SB_CHANGE_CLEAN, &mddev->sb_flags); in md_write_start()
8534 set_bit(MD_SB_CHANGE_PENDING, &mddev->sb_flags); in md_write_start()
8546 !test_bit(MD_SB_CHANGE_PENDING, &mddev->sb_flags) || in md_write_start()
8548 if (test_bit(MD_SB_CHANGE_PENDING, &mddev->sb_flags)) { in md_write_start()
8687 set_bit(MD_SB_CHANGE_CLEAN, &mddev->sb_flags); in md_allow_write()
8688 set_bit(MD_SB_CHANGE_PENDING, &mddev->sb_flags); in md_allow_write()
8697 !test_bit(MD_SB_CHANGE_PENDING, &mddev->sb_flags)); in md_allow_write()
8939 set_bit(MD_SB_CHANGE_CLEAN, &mddev->sb_flags); in md_do_sync()
9090 set_mask_bits(&mddev->sb_flags, 0, in md_do_sync()
9209 set_bit(MD_SB_CHANGE_DEVS, &mddev->sb_flags); in remove_and_add_spares()
9214 set_bit(MD_SB_CHANGE_DEVS, &mddev->sb_flags); in remove_and_add_spares()
9269 if (test_bit(MD_ALLOW_SB_UPDATE, &mddev->flags) && mddev->sb_flags) { in md_check_recovery()
9300 (mddev->sb_flags & ~ (1<<MD_SB_CHANGE_PENDING)) || in md_check_recovery()
9342 clear_bit(MD_SB_CHANGE_PENDING, &mddev->sb_flags); in md_check_recovery()
9364 if (mddev->sb_flags) in md_check_recovery()
9462 set_bit(MD_SB_CHANGE_DEVS, &mddev->sb_flags); in md_reap_sync_thread()
9554 set_mask_bits(&mddev->sb_flags, 0, in rdev_set_badblocks()