Lines Matching refs:sb_flags

966 			set_bit(MD_SB_NEED_REWRITE, &mddev->sb_flags);  in super_written()
1020 if (test_and_clear_bit(MD_SB_NEED_REWRITE, &mddev->sb_flags)) in md_super_wait()
2617 set_bit(MD_SB_CHANGE_CLEAN, &mddev->sb_flags); in set_in_sync()
2700 set_bit(MD_SB_CHANGE_DEVS, &mddev->sb_flags); in md_update_sb()
2706 if (test_and_clear_bit(MD_SB_CHANGE_DEVS, &mddev->sb_flags)) in md_update_sb()
2708 if (test_and_clear_bit(MD_SB_CHANGE_CLEAN, &mddev->sb_flags)) in md_update_sb()
2715 bit_clear_unless(&mddev->sb_flags, BIT(MD_SB_CHANGE_PENDING), in md_update_sb()
2741 clear_bit(MD_SB_CHANGE_CLEAN, &mddev->sb_flags); in md_update_sb()
2742 clear_bit(MD_SB_CHANGE_DEVS, &mddev->sb_flags); in md_update_sb()
2744 clear_bit(MD_SB_CHANGE_PENDING, &mddev->sb_flags); in md_update_sb()
2764 if (test_and_clear_bit(MD_SB_CHANGE_DEVS, &mddev->sb_flags)) in md_update_sb()
2766 if (test_and_clear_bit(MD_SB_CHANGE_CLEAN, &mddev->sb_flags)) in md_update_sb()
2864 !bit_clear_unless(&mddev->sb_flags, BIT(MD_SB_CHANGE_PENDING), in md_update_sb()
2909 set_bit(MD_SB_CHANGE_DEVS, &mddev->sb_flags); in add_bound_rdev()
3026 set_bit(MD_SB_CHANGE_DEVS, &mddev->sb_flags); in state_store()
4121 set_bit(MD_SB_CHANGE_DEVS, &mddev->sb_flags); in level_store()
4324 set_bit(MD_SB_CHANGE_CLEAN, &mddev->sb_flags); in resync_start_store()
4404 if (test_bit(MD_SB_CHANGE_PENDING, &mddev->sb_flags)) in array_state_show()
4445 clear_bit(MD_SB_CHANGE_PENDING, &mddev->sb_flags); in array_state_store()
4519 clear_bit(MD_SB_CHANGE_PENDING, &mddev->sb_flags); in array_state_store()
6067 if (mddev->sb_flags) in md_run()
6195 mddev->sb_flags = 0; in md_clean()
6249 mddev->sb_flags)) { in __md_stop_writes()
6328 if (mddev->external && test_bit(MD_SB_CHANGE_PENDING, &mddev->sb_flags)) in md_set_readonly()
6334 !test_bit(MD_SB_CHANGE_PENDING, &mddev->sb_flags)); in md_set_readonly()
6955 set_bit(MD_SB_CHANGE_DEVS, &mddev->sb_flags); in hot_remove_disk()
7024 set_bit(MD_SB_CHANGE_DEVS, &mddev->sb_flags); in hot_add_disk()
7188 mddev->sb_flags = 0; in md_set_array_info()
7190 set_bit(MD_SB_CHANGE_DEVS, &mddev->sb_flags); in md_set_array_info()
7734 if (test_bit(MD_SB_CHANGE_DEVS, &mddev->sb_flags)) { in md_ioctl()
7737 !test_bit(MD_SB_CHANGE_DEVS, &mddev->sb_flags) && in md_ioctl()
7738 !test_bit(MD_SB_CHANGE_PENDING, &mddev->sb_flags)); in md_ioctl()
8528 set_bit(MD_SB_CHANGE_CLEAN, &mddev->sb_flags); in md_write_start()
8529 set_bit(MD_SB_CHANGE_PENDING, &mddev->sb_flags); in md_write_start()
8541 !test_bit(MD_SB_CHANGE_PENDING, &mddev->sb_flags) || in md_write_start()
8543 if (test_bit(MD_SB_CHANGE_PENDING, &mddev->sb_flags)) { in md_write_start()
8603 set_bit(MD_SB_CHANGE_CLEAN, &mddev->sb_flags); in md_allow_write()
8604 set_bit(MD_SB_CHANGE_PENDING, &mddev->sb_flags); in md_allow_write()
8613 !test_bit(MD_SB_CHANGE_PENDING, &mddev->sb_flags)); in md_allow_write()
8855 set_bit(MD_SB_CHANGE_CLEAN, &mddev->sb_flags); in md_do_sync()
9006 set_mask_bits(&mddev->sb_flags, 0, in md_do_sync()
9126 set_bit(MD_SB_CHANGE_DEVS, &mddev->sb_flags); in remove_and_add_spares()
9131 set_bit(MD_SB_CHANGE_DEVS, &mddev->sb_flags); in remove_and_add_spares()
9186 if (test_bit(MD_ALLOW_SB_UPDATE, &mddev->flags) && mddev->sb_flags) { in md_check_recovery()
9216 (mddev->sb_flags & ~ (1<<MD_SB_CHANGE_PENDING)) || in md_check_recovery()
9257 clear_bit(MD_SB_CHANGE_PENDING, &mddev->sb_flags); in md_check_recovery()
9279 if (mddev->sb_flags) in md_check_recovery()
9377 set_bit(MD_SB_CHANGE_DEVS, &mddev->sb_flags); in md_reap_sync_thread()
9468 set_mask_bits(&mddev->sb_flags, 0, in rdev_set_badblocks()