Lines Matching refs:flseg
55 filelayout_get_dense_offset(struct nfs4_filelayout_segment *flseg, in filelayout_get_dense_offset() argument
58 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() local
78 switch (flseg->stripe_type) { in filelayout_get_dserver_offset()
83 return filelayout_get_dense_offset(flseg, offset); in filelayout_get_dserver_offset()
787 filelayout_lseg_is_striped(const struct nfs4_filelayout_segment *flseg) in filelayout_lseg_is_striped() argument
789 return flseg->num_fh > 1; in filelayout_lseg_is_striped()
972 struct nfs4_filelayout_segment *flseg = FILELAYOUT_LSEG(lseg); in calc_ds_index_from_commit() local
974 if (flseg->stripe_type == STRIPE_SPARSE) in calc_ds_index_from_commit()
983 struct nfs4_filelayout_segment *flseg = FILELAYOUT_LSEG(lseg); in select_ds_fh_from_commit() local
985 if (flseg->stripe_type == STRIPE_SPARSE) { in select_ds_fh_from_commit()
986 if (flseg->num_fh == 1) in select_ds_fh_from_commit()
988 else if (flseg->num_fh == 0) in select_ds_fh_from_commit()
992 return flseg->fh_array[i]; in select_ds_fh_from_commit()