Home
last modified time | relevance | path

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

/linux-6.1.9/net/ceph/
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-6.1.9/fs/ceph/
Dioctl.c25 l.stripe_unit = ci->i_layout.stripe_unit; in ceph_ioctl_get_layout()
44 (l->stripe_unit & ~PAGE_MASK) || in __validate_layout()
45 ((unsigned)l->stripe_unit != 0 && in __validate_layout()
46 ((unsigned)l->object_size % (unsigned)l->stripe_unit))) in __validate_layout()
87 if (l.stripe_unit) in ceph_ioctl_set_layout()
88 nl.stripe_unit = l.stripe_unit; in ceph_ioctl_set_layout()
90 nl.stripe_unit = ci->i_layout.stripe_unit; in ceph_ioctl_set_layout()
118 cpu_to_le32(l.stripe_unit); in ceph_ioctl_set_layout()
162 cpu_to_le32(l.stripe_unit); in ceph_ioctl_set_layout_policy()
202 dl.block_size = ci->i_layout.stripe_unit; in ceph_ioctl_get_dataloc()
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()
Dioctl.h36 __u64 stripe_unit, stripe_count, object_size; member
Dxattr.c52 return (fl->stripe_unit > 0 || fl->stripe_count > 0 || in ceph_vxattrcb_layout_exists()
78 ci->i_layout.stripe_unit, ci->i_layout.stripe_count, in ceph_vxattrcb_layout()
84 ci->i_layout.stripe_unit, ci->i_layout.stripe_count, in ceph_vxattrcb_layout()
145 return ceph_fmt_xattr(val, size, "%u", ci->i_layout.stripe_unit); in ceph_vxattrcb_layout_stripe_unit()
402 XATTR_LAYOUT_FIELD(dir, layout, stripe_unit),
459 XATTR_LAYOUT_FIELD(file, layout, stripe_unit),
Dfile.c665 in.max_size = cpu_to_le64(lo->stripe_unit); in ceph_finish_async_create()
2040 s32 stripe_unit = ci->i_layout.stripe_unit; in ceph_zero_objects() local
2066 pos += stripe_unit; in ceph_zero_objects()
2409 if ((src_ci->i_layout.stripe_unit != dst_ci->i_layout.stripe_unit) || in __ceph_copy_file_range()
Daddr.c194 blockno = div_u64_rem(rreq->start, lo->stripe_unit, &blockoff); in ceph_netfs_expand_readahead()
195 rreq->start = blockno * lo->stripe_unit; in ceph_netfs_expand_readahead()
199 rreq->len = roundup(rreq->len, lo->stripe_unit); in ceph_netfs_expand_readahead()
/linux-6.1.9/fs/nfs/filelayout/
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()
622 if (!fl->stripe_unit) { in filelayout_check_layout()
624 __func__, fl->stripe_unit); in filelayout_check_layout()
688 fl->stripe_unit = nfl_util & ~NFL4_UFLG_MASK; in filelayout_decode_layout()
806 u32 stripe_unit = FILELAYOUT_LSEG(pgio->pg_lseg)->stripe_unit; in filelayout_pg_test() local
819 do_div(p_stripe, stripe_unit); in filelayout_pg_test()
820 do_div(r_stripe, stripe_unit); in filelayout_pg_test()
828 stripe_unit, in filelayout_pg_test()
[all …]
Dfilelayout.h61 u32 stripe_unit; member
Dfilelayoutdev.c228 do_div(tmp, flseg->stripe_unit); in nfs4_fl_calc_j_index()
/linux-6.1.9/fs/nfs/flexfilelayout/
Dflexfilelayout.h99 u64 stripe_unit; member
Dflexfilelayout.c375 u64 stripe_unit; in ff_layout_alloc_lseg() local
395 p = xdr_decode_hyper(p, &stripe_unit); in ff_layout_alloc_lseg()
398 stripe_unit, mirror_array_cnt); in ff_layout_alloc_lseg()
411 fls->stripe_unit = stripe_unit; in ff_layout_alloc_lseg()
/linux-6.1.9/include/linux/ceph/
Dceph_fs.h63 u32 stripe_unit; /* stripe unit, in bytes */ member
433 __le32 stripe_unit; /* layout for newly created file */ member
/linux-6.1.9/drivers/block/
Drbd.c150 u64 stripe_unit; member
984 if (rbd_dev->header.stripe_unit == 0 || in rbd_init_layout()
986 rbd_dev->header.stripe_unit = rbd_obj_bytes(&rbd_dev->header); in rbd_init_layout()
990 rbd_dev->layout.stripe_unit = rbd_dev->header.stripe_unit; in rbd_init_layout()
2475 return l->stripe_unit != l->object_size; in rbd_layout_is_fancy()
5804 __le64 stripe_unit; in rbd_dev_v2_striping_info() member
5821 rbd_dev->header.stripe_unit = ceph_decode_64(&p); in rbd_dev_v2_striping_info()