• Home
  • Raw
  • Download

Lines Matching refs:mirror_array

245 	if (fls->mirror_array) {  in ff_layout_free_mirror_array()
250 ff_layout_put_mirror(fls->mirror_array[i]); in ff_layout_free_mirror_array()
252 kfree(fls->mirror_array); in ff_layout_free_mirror_array()
253 fls->mirror_array = NULL; in ff_layout_free_mirror_array()
348 if (fls->mirror_array[i]->efficiency < in ff_layout_sort_mirrors()
349 fls->mirror_array[j]->efficiency) in ff_layout_sort_mirrors()
350 swap(fls->mirror_array[i], in ff_layout_sort_mirrors()
351 fls->mirror_array[j]); in ff_layout_sort_mirrors()
363 node = &fls->mirror_array[i]->mirror_ds->id_node; in ff_layout_mark_devices_valid()
414 fls->mirror_array = kcalloc(fls->mirror_array_cnt, in ff_layout_alloc_lseg()
415 sizeof(fls->mirror_array[0]), gfp_flags); in ff_layout_alloc_lseg()
416 if (fls->mirror_array == NULL) in ff_layout_alloc_lseg()
438 fls->mirror_array[i] = ff_layout_alloc_mirror(gfp_flags); in ff_layout_alloc_lseg()
439 if (fls->mirror_array[i] == NULL) { in ff_layout_alloc_lseg()
444 fls->mirror_array[i]->ds_count = ds_count; in ff_layout_alloc_lseg()
460 fls->mirror_array[i]->mirror_ds = in ff_layout_alloc_lseg()
470 fls->mirror_array[i]->efficiency = be32_to_cpup(p); in ff_layout_alloc_lseg()
473 rc = decode_pnfs_stateid(&stream, &fls->mirror_array[i]->stateid); in ff_layout_alloc_lseg()
484 fls->mirror_array[i]->fh_versions = in ff_layout_alloc_lseg()
487 if (fls->mirror_array[i]->fh_versions == NULL) { in ff_layout_alloc_lseg()
494 &fls->mirror_array[i]->fh_versions[j]); in ff_layout_alloc_lseg()
499 fls->mirror_array[i]->fh_versions_cnt = fh_count; in ff_layout_alloc_lseg()
523 rcu_assign_pointer(fls->mirror_array[i]->ro_cred, cred); in ff_layout_alloc_lseg()
525 rcu_assign_pointer(fls->mirror_array[i]->rw_cred, cred); in ff_layout_alloc_lseg()
527 mirror = ff_layout_add_mirror(lh, fls->mirror_array[i]); in ff_layout_alloc_lseg()
528 if (mirror != fls->mirror_array[i]) { in ff_layout_alloc_lseg()
532 rcu_assign_pointer(fls->mirror_array[i]->ro_cred, cred); in ff_layout_alloc_lseg()
535 rcu_assign_pointer(fls->mirror_array[i]->rw_cred, cred); in ff_layout_alloc_lseg()
537 ff_layout_free_mirror(fls->mirror_array[i]); in ff_layout_alloc_lseg()
538 fls->mirror_array[i] = mirror; in ff_layout_alloc_lseg()
556 fls->mirror_array[i]->report_interval = be32_to_cpup(p); in ff_layout_alloc_lseg()
1892 return &flseg->mirror_array[i]->fh_versions[0]; in select_ds_fh_from_commit()