Home
last modified time | relevance | path

Searched refs:mirror_array (Results 1 – 2 of 2) sorted by relevance

/fs/nfs/flexfilelayout/
Dflexfilelayout.h95 struct nfs4_ff_layout_mirror **mirror_array; member
124 FF_LAYOUT_LSEG(lseg)->mirror_array[idx] == NULL || in FF_LAYOUT_DEVID_NODE()
125 FF_LAYOUT_LSEG(lseg)->mirror_array[idx]->mirror_ds == NULL) in FF_LAYOUT_DEVID_NODE()
127 return &FF_LAYOUT_LSEG(lseg)->mirror_array[idx]->mirror_ds->id_node; in FF_LAYOUT_DEVID_NODE()
141 return FF_LAYOUT_LSEG(lseg)->mirror_array[idx]; in FF_LAYOUT_COMP()
Dflexfilelayout.c245 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()
[all …]