In_sync           867 drivers/md/dm-raid.c 			if (!test_bit(In_sync, &rs->dev[i].rdev.flags) &&
In_sync           894 drivers/md/dm-raid.c 		if (!test_bit(In_sync, &rs->dev[i].rdev.flags))
In_sync          1005 drivers/md/dm-raid.c 		if (!test_bit(In_sync, &rs->dev[i].rdev.flags) ||
In_sync          1051 drivers/md/dm-raid.c 				    !test_bit(In_sync, &rs->dev[i].rdev.flags)) &&
In_sync          1077 drivers/md/dm-raid.c 			     !test_bit(In_sync, &rs->dev[i].rdev.flags)) &&
In_sync          1174 drivers/md/dm-raid.c 		set_bit(In_sync, &rs->dev[i].rdev.flags);
In_sync          1317 drivers/md/dm-raid.c 			clear_bit(In_sync, &rd->rdev.flags);
In_sync          2199 drivers/md/dm-raid.c 	    (!test_bit(In_sync, &rdev->flags) && !rdev->recovery_offset)) {
In_sync          2349 drivers/md/dm-raid.c 		if (!test_bit(In_sync, &r->flags)) {
In_sync          2492 drivers/md/dm-raid.c 			set_bit(In_sync, &rdev->flags);
In_sync          2498 drivers/md/dm-raid.c 			clear_bit(In_sync, &rdev->flags); /* Mandatory for recovery */
In_sync          2506 drivers/md/dm-raid.c 		clear_bit(In_sync, &rdev->flags);
In_sync          2756 drivers/md/dm-raid.c 			clear_bit(In_sync, &rdev->flags);
In_sync          2897 drivers/md/dm-raid.c 			clear_bit(In_sync, &rdev->flags);
In_sync          3401 drivers/md/dm-raid.c 		  !test_bit(In_sync, &rdev->flags)))
In_sync          3486 drivers/md/dm-raid.c 				    !test_bit(In_sync, &rdev->flags)) {
In_sync          3809 drivers/md/dm-raid.c 			clear_bit(In_sync, &r->flags); /* Mandatory for hot remove. */
In_sync          3827 drivers/md/dm-raid.c 				clear_bit(In_sync, &r->flags);
In_sync           159 drivers/md/md-bitmap.c 		if (! test_bit(In_sync, &rdev->flags)
In_sync            38 drivers/md/md-multipath.c 		if (rdev && test_bit(In_sync, &rdev->flags) &&
In_sync           148 drivers/md/md-multipath.c 		seq_printf (seq, "%s", rdev && test_bit(In_sync, &rdev->flags) ? "U" : "_");
In_sync           197 drivers/md/md-multipath.c 	if (test_and_clear_bit(In_sync, &rdev->flags)) {
In_sync           259 drivers/md/md-multipath.c 			set_bit(In_sync, &rdev->flags);
In_sync           281 drivers/md/md-multipath.c 		if (test_bit(In_sync, &rdev->flags) ||
In_sync          1220 drivers/md/md.c 	clear_bit(In_sync, &rdev->flags);
In_sync          1317 drivers/md/md.c 			set_bit(In_sync, &rdev->flags);
In_sync          1334 drivers/md/md.c 		set_bit(In_sync, &rdev->flags);
In_sync          1417 drivers/md/md.c 		int is_active = test_bit(In_sync, &rdev2->flags);
In_sync          1447 drivers/md/md.c 			if (test_bit(In_sync, &rdev2->flags))
In_sync          1734 drivers/md/md.c 	clear_bit(In_sync, &rdev->flags);
In_sync          1883 drivers/md/md.c 					set_bit(In_sync, &rdev->flags);
In_sync          1895 drivers/md/md.c 		set_bit(In_sync, &rdev->flags);
In_sync          1948 drivers/md/md.c 	    !test_bit(In_sync, &rdev->flags)) {
In_sync          2055 drivers/md/md.c 		else if (test_bit(In_sync, &rdev2->flags))
In_sync          2592 drivers/md/md.c 		    !test_bit(In_sync, &rdev->flags) &&
In_sync          2812 drivers/md/md.c 	if (test_bit(In_sync, &flags))
In_sync          2824 drivers/md/md.c 	    !test_bit(In_sync, &flags))
In_sync          2917 drivers/md/md.c 		set_bit(In_sync, &rdev->flags);
In_sync          2928 drivers/md/md.c 			clear_bit(In_sync, &rdev->flags);
In_sync          3095 drivers/md/md.c 		if (test_bit(In_sync, &rdev->flags))
In_sync          3099 drivers/md/md.c 		clear_bit(In_sync, &rdev->flags);
In_sync          3119 drivers/md/md.c 		set_bit(In_sync, &rdev->flags);
In_sync          3328 drivers/md/md.c 	if (test_bit(In_sync, &rdev->flags) ||
In_sync          3350 drivers/md/md.c 		set_bit(In_sync, &rdev->flags);
In_sync          3352 drivers/md/md.c 		clear_bit(In_sync, &rdev->flags);
In_sync          3685 drivers/md/md.c 			set_bit(In_sync, &rdev->flags);
In_sync          3690 drivers/md/md.c 			clear_bit(In_sync, &rdev->flags);
In_sync          3960 drivers/md/md.c 			clear_bit(In_sync, &rdev->flags);
In_sync          6376 drivers/md/md.c 			if (test_bit(In_sync, &rdev->flags))
In_sync          6471 drivers/md/md.c 		else if (test_bit(In_sync, &rdev->flags)) {
In_sync          6566 drivers/md/md.c 				set_bit(In_sync, &rdev->flags);
In_sync          6583 drivers/md/md.c 		clear_bit(In_sync, &rdev->flags); /* just to be sure */
In_sync          6677 drivers/md/md.c 				set_bit(In_sync, &rdev->flags);
In_sync          6782 drivers/md/md.c 	clear_bit(In_sync, &rdev->flags);
In_sync          8555 drivers/md/md.c 			    !test_bit(In_sync, &rdev->flags) &&
In_sync          8774 drivers/md/md.c 					    !test_bit(In_sync, &rdev->flags) &&
In_sync          8856 drivers/md/md.c 		     (!test_bit(In_sync, &rdev->flags) &&
In_sync          8883 drivers/md/md.c 		    !test_bit(In_sync, &rdev->flags) &&
In_sync          9491 drivers/md/md.c 	    !test_bit(In_sync, &rdev->flags) &&
In_sync           369 drivers/md/raid1.c 		     test_bit(In_sync, &rdev->flags)))
In_sync           489 drivers/md/raid1.c 		if (test_bit(In_sync, &rdev->flags) &&
In_sync           629 drivers/md/raid1.c 		if (!test_bit(In_sync, &rdev->flags) &&
In_sync          1605 drivers/md/raid1.c 			   rdev && test_bit(In_sync, &rdev->flags) ? "U" : "_");
In_sync          1624 drivers/md/raid1.c 	if (test_bit(In_sync, &rdev->flags) && !mddev->fail_last_dev
In_sync          1637 drivers/md/raid1.c 	if (test_and_clear_bit(In_sync, &rdev->flags))
In_sync          1671 drivers/md/raid1.c 				 i, !test_bit(In_sync, &rdev->flags),
In_sync          1712 drivers/md/raid1.c 		    && !test_and_set_bit(In_sync, &repl->flags)) {
In_sync          1715 drivers/md/raid1.c 			    !test_and_clear_bit(In_sync, &rdev->flags))
In_sync          1730 drivers/md/raid1.c 		    && !test_and_set_bit(In_sync, &rdev->flags)) {
In_sync          1791 drivers/md/raid1.c 			clear_bit(In_sync, &rdev->flags);
In_sync          1818 drivers/md/raid1.c 		if (test_bit(In_sync, &rdev->flags) ||
In_sync          2265 drivers/md/raid1.c 			    (test_bit(In_sync, &rdev->flags) ||
In_sync          2739 drivers/md/raid1.c 		} else if (!test_bit(In_sync, &rdev->flags)) {
In_sync          3040 drivers/md/raid1.c 			} else if (!test_bit(In_sync, &disk->rdev->flags))
In_sync          3046 drivers/md/raid1.c 		    !test_bit(In_sync, &disk->rdev->flags)) {
In_sync          3128 drivers/md/raid1.c 		    !test_bit(In_sync, &conf->mirrors[i].rdev->flags) ||
In_sync           505 drivers/md/raid10.c 		if (test_bit(In_sync, &rdev->flags) &&
In_sync           759 drivers/md/raid10.c 		if (!test_bit(In_sync, &rdev->flags) &&
In_sync          1576 drivers/md/raid10.c 		seq_printf(seq, "%s", rdev && test_bit(In_sync, &rdev->flags) ? "U" : "_");
In_sync          1609 drivers/md/raid10.c 			    test_bit(In_sync, &rdev->flags))
In_sync          1647 drivers/md/raid10.c 	if (test_bit(In_sync, &rdev->flags) && !mddev->fail_last_dev
In_sync          1655 drivers/md/raid10.c 	if (test_and_clear_bit(In_sync, &rdev->flags))
In_sync          1692 drivers/md/raid10.c 				 i, !test_bit(In_sync, &rdev->flags),
In_sync          1723 drivers/md/raid10.c 		    && !test_and_set_bit(In_sync, &tmp->replacement->flags)) {
In_sync          1726 drivers/md/raid10.c 			    || !test_and_clear_bit(In_sync, &tmp->rdev->flags))
In_sync          1741 drivers/md/raid10.c 			   && !test_and_set_bit(In_sync, &tmp->rdev->flags)) {
In_sync          1790 drivers/md/raid10.c 			clear_bit(In_sync, &rdev->flags);
In_sync          1838 drivers/md/raid10.c 	if (test_bit(In_sync, &rdev->flags) ||
In_sync          2381 drivers/md/raid10.c 			    test_bit(In_sync, &rdev->flags) &&
In_sync          2437 drivers/md/raid10.c 			    !test_bit(In_sync, &rdev->flags))
In_sync          2473 drivers/md/raid10.c 			    !test_bit(In_sync, &rdev->flags))
In_sync          3060 drivers/md/raid10.c 			    !test_bit(In_sync, &mrdev->flags))
In_sync          3147 drivers/md/raid10.c 				    !test_bit(In_sync, &rdev->flags))
In_sync          3234 drivers/md/raid10.c 					if (!test_bit(In_sync,
In_sync          3277 drivers/md/raid10.c 					    test_bit(In_sync,
In_sync          3856 drivers/md/raid10.c 		    !test_bit(In_sync, &disk->rdev->flags)) {
In_sync          3865 drivers/md/raid10.c 		    !test_bit(In_sync, &disk->replacement->flags) &&
In_sync          4143 drivers/md/raid10.c 		else if (!test_bit(In_sync, &rdev->flags))
In_sync          4159 drivers/md/raid10.c 		else if (!test_bit(In_sync, &rdev->flags)) {
In_sync          4208 drivers/md/raid10.c 		if (!test_bit(In_sync, &rdev->flags)
In_sync          4306 drivers/md/raid10.c 						set_bit(In_sync, &rdev->flags);
In_sync          4316 drivers/md/raid10.c 				set_bit(In_sync, &rdev->flags);
In_sync          4802 drivers/md/raid10.c 			    !test_bit(In_sync, &rdev->flags))
In_sync          4896 drivers/md/raid10.c 				clear_bit(In_sync, &rdev->flags);
In_sync          4899 drivers/md/raid10.c 				clear_bit(In_sync, &rdev->flags);
In_sync           896 drivers/md/raid5-ppl.c 			if (!rdev || (!test_bit(In_sync, &rdev->flags) &&
In_sync           569 drivers/md/raid5.c 		else if (test_bit(In_sync, &rdev->flags))
In_sync           595 drivers/md/raid5.c 		else if (test_bit(In_sync, &rdev->flags))
In_sync          2564 drivers/md/raid5.c 		if (set_bad && test_bit(In_sync, &rdev->flags)
In_sync          2579 drivers/md/raid5.c 			      && test_bit(In_sync, &rdev->flags)
In_sync          2680 drivers/md/raid5.c 	if (test_bit(In_sync, &rdev->flags) &&
In_sync          2692 drivers/md/raid5.c 	clear_bit(In_sync, &rdev->flags);
In_sync          3362 drivers/md/raid5.c 			if (rdev && test_bit(In_sync, &rdev->flags) &&
In_sync          3490 drivers/md/raid5.c 			    && !test_bit(In_sync, &rdev->flags)
In_sync          3497 drivers/md/raid5.c 			    && !test_bit(In_sync, &rdev->flags)
In_sync          3519 drivers/md/raid5.c 	    && !test_bit(In_sync, &rdev->flags)
In_sync          4478 drivers/md/raid5.c 		} else if (test_bit(In_sync, &rdev->flags))
In_sync          5243 drivers/md/raid5.c 		    !(test_bit(In_sync, &rdev->flags) ||
In_sync          5894 drivers/md/raid5.c 				    !test_bit(In_sync, &rdev->flags) &&
In_sync          6001 drivers/md/raid5.c 				    !test_bit(In_sync, &rdev->flags) &&
In_sync          7040 drivers/md/raid5.c 		if (test_bit(In_sync, &rdev->flags)) {
In_sync          7332 drivers/md/raid5.c 		if (test_bit(In_sync, &rdev->flags)) {
In_sync          7522 drivers/md/raid5.c 		seq_printf (seq, "%s", rdev && test_bit(In_sync, &rdev->flags) ? "U" : "_");
In_sync          7565 drivers/md/raid5.c 		    && !test_and_set_bit(In_sync, &tmp->replacement->flags)) {
In_sync          7568 drivers/md/raid5.c 			    || !test_and_clear_bit(In_sync, &tmp->rdev->flags))
In_sync          7583 drivers/md/raid5.c 		    && !test_and_set_bit(In_sync, &tmp->rdev->flags)) {
In_sync          7628 drivers/md/raid5.c 		clear_bit(In_sync, &rdev->flags);
In_sync          7630 drivers/md/raid5.c 	if (test_bit(In_sync, &rdev->flags) ||
In_sync          7730 drivers/md/raid5.c 			clear_bit(In_sync, &rdev->flags);
In_sync          7745 drivers/md/raid5.c 			clear_bit(In_sync, &rdev->flags);
In_sync          7879 drivers/md/raid5.c 		if (!test_bit(In_sync, &rdev->flags)
In_sync          7944 drivers/md/raid5.c 						set_bit(In_sync, &rdev->flags);
In_sync          7954 drivers/md/raid5.c 				set_bit(In_sync, &rdev->flags);
In_sync          8018 drivers/md/raid5.c 			    !test_bit(In_sync, &rdev->flags))
In_sync          8055 drivers/md/raid5.c 					clear_bit(In_sync, &rdev->flags);
In_sync          8058 drivers/md/raid5.c 					clear_bit(In_sync, &rdev->flags);