Lines Matching full:rcw

3333 			 int rcw, int expand)  in schedule_reconstruction()  argument
3339 if (rcw) { in schedule_reconstruction()
3342 * run rmw and allocates extra page for prexor. However, rcw is in schedule_reconstruction()
4107 int rmw = 0, rcw = 0, i; in handle_stripe_dirtying() local
4120 /* Calculate the real rcw later - for now make it in handle_stripe_dirtying()
4121 * look like rcw is cheaper in handle_stripe_dirtying()
4123 rcw = 1; rmw = 2; in handle_stripe_dirtying()
4124 pr_debug("force RCW rmw_level=%u, recovery_cp=%llu sh->sector=%llu\n", in handle_stripe_dirtying()
4148 rcw++; in handle_stripe_dirtying()
4150 rcw += 2*disks; in handle_stripe_dirtying()
4154 pr_debug("for sector %llu state 0x%lx, rmw=%d rcw=%d\n", in handle_stripe_dirtying()
4155 (unsigned long long)sh->sector, sh->state, rmw, rcw); in handle_stripe_dirtying()
4157 if ((rmw < rcw || (rmw == rcw && conf->rmw_level == PARITY_PREFER_RMW)) && rmw > 0) { in handle_stripe_dirtying()
4213 if ((rcw < rmw || (rcw == rmw && conf->rmw_level != PARITY_PREFER_RMW)) && rcw > 0) { in handle_stripe_dirtying()
4216 rcw = 0; in handle_stripe_dirtying()
4224 rcw++; in handle_stripe_dirtying()
4238 if (rcw && !mddev_is_dm(conf->mddev)) in handle_stripe_dirtying()
4240 "raid5 rcw %llu %d %d %d", in handle_stripe_dirtying()
4241 (unsigned long long)sh->sector, rcw, qread, in handle_stripe_dirtying()
4245 if (rcw > disks && rmw > disks && in handle_stripe_dirtying()
4260 (s->locked == 0 && (rcw == 0 || rmw == 0) && in handle_stripe_dirtying()
4262 schedule_reconstruction(sh, s, rcw == 0, 0); in handle_stripe_dirtying()