Searched refs:flseg (Results 1 – 3 of 3) sorted by relevance
226 struct nfs4_filelayout_segment *flseg = FILELAYOUT_LSEG(lseg); in nfs4_fl_calc_j_index() local229 tmp = offset - flseg->pattern_offset; in nfs4_fl_calc_j_index()230 do_div(tmp, flseg->stripe_unit); in nfs4_fl_calc_j_index()231 tmp += flseg->first_stripe_index; in nfs4_fl_calc_j_index()232 return do_div(tmp, flseg->dsaddr->stripe_count); in nfs4_fl_calc_j_index()244 struct nfs4_filelayout_segment *flseg = FILELAYOUT_LSEG(lseg); in nfs4_fl_select_ds_fh() local247 if (flseg->stripe_type == STRIPE_SPARSE) { in nfs4_fl_select_ds_fh()248 if (flseg->num_fh == 1) in nfs4_fl_select_ds_fh()250 else if (flseg->num_fh == 0) in nfs4_fl_select_ds_fh()257 return flseg->fh_array[i]; in nfs4_fl_select_ds_fh()
55 filelayout_get_dense_offset(struct nfs4_filelayout_segment *flseg, in filelayout_get_dense_offset() argument58 u32 stripe_width = flseg->stripe_unit * flseg->dsaddr->stripe_count; in filelayout_get_dense_offset()62 offset -= flseg->pattern_offset; in filelayout_get_dense_offset()64 div_u64_rem(offset, flseg->stripe_unit, &rem); in filelayout_get_dense_offset()66 return stripe_no * flseg->stripe_unit + rem; in filelayout_get_dense_offset()76 struct nfs4_filelayout_segment *flseg = FILELAYOUT_LSEG(lseg); in filelayout_get_dserver_offset() local78 switch (flseg->stripe_type) { in filelayout_get_dserver_offset()83 return filelayout_get_dense_offset(flseg, offset); in filelayout_get_dserver_offset()779 filelayout_lseg_is_striped(const struct nfs4_filelayout_segment *flseg) in filelayout_lseg_is_striped() argument781 return flseg->num_fh > 1; in filelayout_lseg_is_striped()[all …]
1931 struct nfs4_ff_layout_segment *flseg = FF_LAYOUT_LSEG(lseg); in select_ds_fh_from_commit() local1936 return &flseg->mirror_array[i]->fh_versions[0]; in select_ds_fh_from_commit()2042 struct nfs4_ff_layout_segment *flseg = FF_LAYOUT_LSEG(lseg); in ff_layout_cancel_io() local2050 for (idx = 0; idx < flseg->mirror_array_cnt; idx++) { in ff_layout_cancel_io()2051 mirror = flseg->mirror_array[idx]; in ff_layout_cancel_io()2085 struct nfs4_ff_layout_segment *flseg = FF_LAYOUT_LSEG(lseg); in ff_layout_setup_ds_info() local2089 new = pnfs_alloc_commit_array(flseg->mirror_array_cnt, in ff_layout_setup_ds_info()