Lines Matching refs:copies
66 int size = offsetof(struct r10bio_s, devs[conf->copies]); in r10bio_pool_alloc()
106 nalloc = conf->copies; /* resync */ in r10buf_pool_alloc()
157 for (j=0; j < conf->copies; j++) { in r10buf_pool_free()
174 for (i = 0; i < conf->copies; i++) { in put_all_bios()
296 for (slot = 0; slot < conf->copies; slot++) in raid10_end_write_request()
411 BUG_ON(slot != conf->copies); in raid10_find_phys()
514 if (slot == conf->copies) { in read_balance()
532 if (slot == conf->copies) { in read_balance()
546 for (nslot = slot; nslot < conf->copies; nslot++) { in read_balance()
874 for (i = 0; i < conf->copies; i++) { in make_request()
911 for (i = 0; i < conf->copies; i++) { in make_request()
1056 int n = conf->copies; in enough()
1202 for (i=0; i<conf->copies; i++) in end_sync_read()
1205 BUG_ON(i == conf->copies); in end_sync_read()
1240 for (i = 0; i < conf->copies; i++) in end_sync_write()
1291 for (i=0; i<conf->copies; i++) in sync_request_write()
1295 if (i == conf->copies) in sync_request_write()
1302 for (i=0 ; i < conf->copies ; i++) { in sync_request_write()
1526 if (sl == conf->copies) in fix_read_error()
1545 sl = conf->copies; in fix_read_error()
1582 sl = conf->copies; in fix_read_error()
1911 for (j=0; j<conf->copies;j++) { in sync_request()
1929 for (k=0; k<conf->copies; k++) in sync_request()
1932 BUG_ON(k == conf->copies); in sync_request()
1949 if (j == conf->copies) { in sync_request()
2000 for (i=0; i<conf->copies; i++) { in sync_request()
2022 for (i=0; i<conf->copies; i++) { in sync_request()
2175 conf->copies = nc*fc; in setup_conf()
2191 stride = size * conf->copies; in setup_conf()