Home
last modified time | relevance | path

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

/openbmc/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()
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()
247 len = min_t(u64, objlen, l->stripe_unit - blockoff); in ceph_extent_to_file()
[all …]
/openbmc/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 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()
420 XATTR_LAYOUT_FIELD(dir, layout, stripe_unit),
477 XATTR_LAYOUT_FIELD(file, layout, stripe_unit),
H A Dfile.c671 in.max_size = cpu_to_le64(lo->stripe_unit); in ceph_finish_async_create()
2510 s32 stripe_unit = ci->i_layout.stripe_unit; in ceph_zero_objects() local
2536 pos += stripe_unit; in ceph_zero_objects()
2890 if ((src_ci->i_layout.stripe_unit != dst_ci->i_layout.stripe_unit) || in __ceph_copy_file_range()
H A Daddr.c217 new_end = min(round_up(end, lo->stripe_unit), rreq->i_size); in ceph_netfs_expand_readahead()
222 div_u64_rem(rreq->start, lo->stripe_unit, &blockoff); in ceph_netfs_expand_readahead()
/openbmc/linux/fs/nfs/filelayout/
H A Dfilelayout.c64 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()
830 WARN_ON_ONCE(stripe_offset > stripe_unit); in filelayout_pg_test()
[all …]
H A Dfilelayout.h61 u32 stripe_unit; member
H A Dfilelayoutdev.c228 do_div(tmp, flseg->stripe_unit); in nfs4_fl_calc_j_index()
/openbmc/linux/fs/nfs/flexfilelayout/
H A Dflexfilelayout.h99 u64 stripe_unit; member
H A 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()
/openbmc/linux/include/linux/ceph/
H A Dceph_fs.h63 u32 stripe_unit; /* stripe unit, in bytes */ member
438 __le32 stripe_unit; /* layout for newly created file */ member
/openbmc/linux/drivers/block/
H A Drbd.c150 u64 stripe_unit; member
983 if (rbd_dev->header.stripe_unit == 0 || in rbd_init_layout()
985 rbd_dev->header.stripe_unit = rbd_obj_bytes(&rbd_dev->header); in rbd_init_layout()
989 rbd_dev->layout.stripe_unit = rbd_dev->header.stripe_unit; in rbd_init_layout()
2493 return l->stripe_unit != l->object_size; in rbd_layout_is_fancy()
5819 u64 *stripe_unit, u64 *stripe_count) in rbd_dev_v2_striping_info() argument
5822 __le64 stripe_unit; in rbd_dev_v2_striping_info() member
5837 *stripe_unit = le64_to_cpu(striping_info_buf.stripe_unit); in rbd_dev_v2_striping_info()
5839 dout(" stripe_unit = %llu stripe_count = %llu\n", *stripe_unit, in rbd_dev_v2_striping_info()
6719 ret = rbd_dev_v2_striping_info(rbd_dev, &header->stripe_unit, in rbd_dev_v2_header_onetime()