flseg 54 fs/nfs/filelayout/filelayout.c filelayout_get_dense_offset(struct nfs4_filelayout_segment *flseg, flseg 57 fs/nfs/filelayout/filelayout.c u32 stripe_width = flseg->stripe_unit * flseg->dsaddr->stripe_count; flseg 61 fs/nfs/filelayout/filelayout.c offset -= flseg->pattern_offset; flseg 63 fs/nfs/filelayout/filelayout.c div_u64_rem(offset, flseg->stripe_unit, &rem); flseg 65 fs/nfs/filelayout/filelayout.c return stripe_no * flseg->stripe_unit + rem; flseg 75 fs/nfs/filelayout/filelayout.c struct nfs4_filelayout_segment *flseg = FILELAYOUT_LSEG(lseg); flseg 77 fs/nfs/filelayout/filelayout.c switch (flseg->stripe_type) { flseg 82 fs/nfs/filelayout/filelayout.c return filelayout_get_dense_offset(flseg, offset); flseg 1024 fs/nfs/filelayout/filelayout.c struct nfs4_filelayout_segment *flseg = FILELAYOUT_LSEG(lseg); flseg 1026 fs/nfs/filelayout/filelayout.c if (flseg->stripe_type == STRIPE_SPARSE) flseg 1035 fs/nfs/filelayout/filelayout.c struct nfs4_filelayout_segment *flseg = FILELAYOUT_LSEG(lseg); flseg 1037 fs/nfs/filelayout/filelayout.c if (flseg->stripe_type == STRIPE_SPARSE) { flseg 1038 fs/nfs/filelayout/filelayout.c if (flseg->num_fh == 1) flseg 1040 fs/nfs/filelayout/filelayout.c else if (flseg->num_fh == 0) flseg 1044 fs/nfs/filelayout/filelayout.c return flseg->fh_array[i]; flseg 226 fs/nfs/filelayout/filelayoutdev.c struct nfs4_filelayout_segment *flseg = FILELAYOUT_LSEG(lseg); flseg 229 fs/nfs/filelayout/filelayoutdev.c tmp = offset - flseg->pattern_offset; flseg 230 fs/nfs/filelayout/filelayoutdev.c do_div(tmp, flseg->stripe_unit); flseg 231 fs/nfs/filelayout/filelayoutdev.c tmp += flseg->first_stripe_index; flseg 232 fs/nfs/filelayout/filelayoutdev.c return do_div(tmp, flseg->dsaddr->stripe_count); flseg 244 fs/nfs/filelayout/filelayoutdev.c struct nfs4_filelayout_segment *flseg = FILELAYOUT_LSEG(lseg); flseg 247 fs/nfs/filelayout/filelayoutdev.c if (flseg->stripe_type == STRIPE_SPARSE) { flseg 248 fs/nfs/filelayout/filelayoutdev.c if (flseg->num_fh == 1) flseg 250 fs/nfs/filelayout/filelayoutdev.c else if (flseg->num_fh == 0) flseg 257 fs/nfs/filelayout/filelayoutdev.c return flseg->fh_array[i]; flseg 1922 fs/nfs/flexfilelayout/flexfilelayout.c struct nfs4_ff_layout_segment *flseg = FF_LAYOUT_LSEG(lseg); flseg 1927 fs/nfs/flexfilelayout/flexfilelayout.c return &flseg->mirror_array[i]->fh_versions[0];