• Home
  • Raw
  • Download

Lines Matching refs:l

24 void ceph_calc_file_object_mapping(struct ceph_file_layout *l,  in ceph_calc_file_object_mapping()  argument
28 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()
38 stripeno = div_u64_rem(blockno, l->stripe_count, &stripepos); in ceph_calc_file_object_mapping()
41 *objno = objsetno * l->stripe_count + stripepos; 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()
110 int ceph_file_to_extents(struct ceph_file_layout *l, u64 off, u64 len, in ceph_file_to_extents() argument
124 ceph_calc_file_object_mapping(l, off, len, &objno, &objoff, in ceph_file_to_extents()
174 int ceph_iterate_extents(struct ceph_file_layout *l, u64 off, u64 len, in ceph_iterate_extents() argument
184 ceph_calc_file_object_mapping(l, off, len, &objno, &objoff, in ceph_iterate_extents()
211 int ceph_extent_to_file(struct ceph_file_layout *l, in ceph_extent_to_file() argument
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()
242 objsetno = div_u64_rem(objno, l->stripe_count, &stripepos); in ceph_extent_to_file()
243 stripeno = div_u64(objoff, l->stripe_unit) + in ceph_extent_to_file()
245 blockno = stripeno * l->stripe_count + stripepos; 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()
263 u64 ceph_get_num_objects(struct ceph_file_layout *l, u64 size) in ceph_get_num_objects() argument
265 u64 period = (u64)l->stripe_count * l->object_size; in ceph_get_num_objects()
272 remainder_bytes < (u64)l->stripe_count * l->stripe_unit) in ceph_get_num_objects()
273 remainder_objs = l->stripe_count - in ceph_get_num_objects()
274 DIV_ROUND_UP_ULL(remainder_bytes, l->stripe_unit); in ceph_get_num_objects()
276 return num_periods * l->stripe_count - remainder_objs; in ceph_get_num_objects()