Searched refs:flseg (Results 1 – 1 of 1) 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()