Home
last modified time | relevance | path

Searched refs:stripe_unit (Results 1 – 11 of 11) sorted by relevance

/linux/net/ceph/
H A Dstriper.c28 u32 stripes_per_object = l->object_size / l->stripe_unit; in ceph_calc_file_object_mapping()
37 blockno = div_u64_rem(off, l->stripe_unit, &blockoff); in ceph_calc_file_object_mapping()
42 *objoff = objsetpos * l->stripe_unit + blockoff; in ceph_calc_file_object_mapping()
43 *xlen = min_t(u64, len, l->stripe_unit - blockoff); in ceph_calc_file_object_mapping()
216 u32 stripes_per_object = l->object_size / l->stripe_unit; in ceph_extent_to_file()
231 *num_file_extents = DIV_ROUND_UP_ULL(objoff + objlen, l->stripe_unit) - in ceph_extent_to_file()
232 DIV_ROUND_DOWN_ULL(objoff, l->stripe_unit); in ceph_extent_to_file()
238 div_u64_rem(objoff, l->stripe_unit, &blockoff); in ceph_extent_to_file()
243 stripeno = div_u64(objoff, l->stripe_unit) + in ceph_extent_to_file()
246 off = blockno * l->stripe_unit + blockoff; in ceph_extent_to_file()
[all …]
/linux/fs/ceph/
H A Dioctl.c26 l.stripe_unit = ci->i_layout.stripe_unit; in ceph_ioctl_get_layout()
45 (l->stripe_unit & ~PAGE_MASK) || in __validate_layout()
46 ((unsigned)l->stripe_unit != 0 && in __validate_layout()
47 ((unsigned)l->object_size % (unsigned)l->stripe_unit))) in __validate_layout()
88 if (l.stripe_unit) in ceph_ioctl_set_layout()
89 nl.stripe_unit = l.stripe_unit; in ceph_ioctl_set_layout()
91 nl.stripe_unit = ci->i_layout.stripe_unit; in ceph_ioctl_set_layout()
119 cpu_to_le32(l.stripe_unit); in ceph_ioctl_set_layout()
163 cpu_to_le32(l.stripe_unit); in ceph_ioctl_set_layout_policy()
203 dl.block_size = ci->i_layout.stripe_unit; in ceph_ioctl_get_dataloc()
H A Dutil.c13 __u32 su = layout->stripe_unit; in ceph_file_layout_is_valid()
34 fl->stripe_unit = le32_to_cpu(legacy->fl_stripe_unit); in ceph_file_layout_from_legacy()
38 if (fl->pool_id == 0 && fl->stripe_unit == 0 && in ceph_file_layout_from_legacy()
46 legacy->fl_stripe_unit = cpu_to_le32(fl->stripe_unit); in ceph_file_layout_to_legacy()
H A Dioctl.h36 __u64 stripe_unit, stripe_count, object_size; member
H A Dfile.c720 in.max_size = cpu_to_le64(lo->stripe_unit); in ceph_finish_async_create()
2616 s32 stripe_unit = ci->i_layout.stripe_unit; in ceph_zero_objects() local
2642 pos += stripe_unit; in ceph_zero_objects()
3001 if ((src_ci->i_layout.stripe_unit != dst_ci->i_layout.stripe_unit) || in __ceph_copy_file_range()
H A Daddr.c196 new_end = umin(round_up(end, lo->stripe_unit), rreq->i_size); in ceph_netfs_expand_readahead()
201 div_u64_rem(rreq->start, lo->stripe_unit, &blockoff); in ceph_netfs_expand_readahead()
/linux/fs/nfs/filelayout/
H A Dfilelayout.c58 u32 stripe_width = flseg->stripe_unit * flseg->dsaddr->stripe_count; 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()
614 if (!fl->stripe_unit) { in filelayout_check_layout()
616 __func__, fl->stripe_unit); in filelayout_check_layout()
680 fl->stripe_unit = nfl_util & ~NFL4_UFLG_MASK; in filelayout_decode_layout()
798 u32 stripe_unit = FILELAYOUT_LSEG(pgio->pg_lseg)->stripe_unit; in filelayout_pg_test() local
811 do_div(p_stripe, stripe_unit); in filelayout_pg_test()
812 do_div(r_stripe, stripe_unit); in filelayout_pg_test()
820 stripe_unit, in filelayout_pg_test()
[all …]
H A Dfilelayout.h61 u32 stripe_unit; member
H A Dfilelayoutdev.c230 do_div(tmp, flseg->stripe_unit); in nfs4_fl_calc_j_index()
/linux/fs/nfs/flexfilelayout/
H A Dflexfilelayout.h100 u64 stripe_unit;
99 u64 stripe_unit; global() member
H A Dflexfilelayout.c392 u64 stripe_unit; in ff_layout_alloc_lseg()
412 p = xdr_decode_hyper(p, &stripe_unit); in ff_layout_alloc_lseg()
414 dprintk("%s: stripe_unit=%llu mirror_array_cnt=%u\n", __func__, in ff_layout_alloc_lseg()
415 stripe_unit, mirror_array_cnt); in ff_layout_alloc_lseg()
428 fls->stripe_unit = stripe_unit; in ff_layout_alloc_lseg()
391 u64 stripe_unit; ff_layout_alloc_lseg() local