Lines Matching refs:sh2

729 static void lock_two_stripes(struct stripe_head *sh1, struct stripe_head *sh2)  in lock_two_stripes()  argument
732 if (sh1 > sh2) { in lock_two_stripes()
733 spin_lock(&sh2->stripe_lock); in lock_two_stripes()
737 spin_lock_nested(&sh2->stripe_lock, 1); in lock_two_stripes()
741 static void unlock_two_stripes(struct stripe_head *sh1, struct stripe_head *sh2) in unlock_two_stripes() argument
744 spin_unlock(&sh2->stripe_lock); in unlock_two_stripes()
2753 struct stripe_head sh2; in compute_blocknr() local
2848 previous, &dummy1, &sh2); in compute_blocknr()
2849 if (check != sh->sector || dummy1 != dd_idx || sh2.pd_idx != sh->pd_idx in compute_blocknr()
2850 || sh2.qd_idx != sh->qd_idx) { in compute_blocknr()
3946 struct stripe_head *sh2; in handle_stripe_expansion() local
3952 sh2 = get_active_stripe(conf, s, 0, 1, 1); in handle_stripe_expansion()
3953 if (sh2 == NULL) in handle_stripe_expansion()
3959 if (!test_bit(STRIPE_EXPANDING, &sh2->state) || in handle_stripe_expansion()
3960 test_bit(R5_Expanded, &sh2->dev[dd_idx].flags)) { in handle_stripe_expansion()
3962 release_stripe(sh2); in handle_stripe_expansion()
3968 tx = async_memcpy(sh2->dev[dd_idx].page, in handle_stripe_expansion()
3972 set_bit(R5_Expanded, &sh2->dev[dd_idx].flags); in handle_stripe_expansion()
3973 set_bit(R5_UPTODATE, &sh2->dev[dd_idx].flags); in handle_stripe_expansion()
3975 if (j != sh2->pd_idx && in handle_stripe_expansion()
3976 j != sh2->qd_idx && in handle_stripe_expansion()
3977 !test_bit(R5_Expanded, &sh2->dev[j].flags)) in handle_stripe_expansion()
3980 set_bit(STRIPE_EXPAND_READY, &sh2->state); in handle_stripe_expansion()
3981 set_bit(STRIPE_HANDLE, &sh2->state); in handle_stripe_expansion()
3983 release_stripe(sh2); in handle_stripe_expansion()