Home
last modified time | relevance | path

Searched refs:flseg (Results 1 – 3 of 3) sorted by relevance

/fs/nfs/filelayout/
Dfilelayoutdev.c224 struct nfs4_filelayout_segment *flseg = FILELAYOUT_LSEG(lseg); in nfs4_fl_calc_j_index() local
227 tmp = offset - flseg->pattern_offset; in nfs4_fl_calc_j_index()
228 do_div(tmp, flseg->stripe_unit); in nfs4_fl_calc_j_index()
229 tmp += flseg->first_stripe_index; in nfs4_fl_calc_j_index()
230 return do_div(tmp, flseg->dsaddr->stripe_count); in nfs4_fl_calc_j_index()
242 struct nfs4_filelayout_segment *flseg = FILELAYOUT_LSEG(lseg); in nfs4_fl_select_ds_fh() local
245 if (flseg->stripe_type == STRIPE_SPARSE) { in nfs4_fl_select_ds_fh()
246 if (flseg->num_fh == 1) in nfs4_fl_select_ds_fh()
248 else if (flseg->num_fh == 0) in nfs4_fl_select_ds_fh()
255 return flseg->fh_array[i]; in nfs4_fl_select_ds_fh()
Dfilelayout.c55 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()
[all …]
/fs/nfs/flexfilelayout/
Dflexfilelayout.c1906 struct nfs4_ff_layout_segment *flseg = FF_LAYOUT_LSEG(lseg); in select_ds_fh_from_commit() local
1911 return &flseg->mirror_array[i]->fh_versions[0]; in select_ds_fh_from_commit()
2008 struct nfs4_ff_layout_segment *flseg = FF_LAYOUT_LSEG(lseg); in ff_layout_cancel_io() local
2016 for (idx = 0; idx < flseg->mirror_array_cnt; idx++) { in ff_layout_cancel_io()
2017 mirror = flseg->mirror_array[idx]; in ff_layout_cancel_io()
2051 struct nfs4_ff_layout_segment *flseg = FF_LAYOUT_LSEG(lseg); in ff_layout_setup_ds_info() local
2055 new = pnfs_alloc_commit_array(flseg->mirror_array_cnt, in ff_layout_setup_ds_info()