Lines Matching refs:dl
182 struct ceph_ioctl_dataloc dl; in ceph_ioctl_get_dataloc() local
195 if (copy_from_user(&dl, arg, sizeof(dl))) in ceph_ioctl_get_dataloc()
199 ceph_calc_file_object_mapping(&ci->i_layout, dl.file_offset, 1, in ceph_ioctl_get_dataloc()
200 &dl.object_no, &dl.object_offset, &xlen); in ceph_ioctl_get_dataloc()
201 dl.file_offset -= dl.object_offset; in ceph_ioctl_get_dataloc()
202 dl.object_size = ci->i_layout.object_size; in ceph_ioctl_get_dataloc()
203 dl.block_size = ci->i_layout.stripe_unit; in ceph_ioctl_get_dataloc()
206 tmp = dl.object_offset; in ceph_ioctl_get_dataloc()
207 dl.block_offset = do_div(tmp, dl.block_size); in ceph_ioctl_get_dataloc()
209 snprintf(dl.object_name, sizeof(dl.object_name), "%llx.%08llx", in ceph_ioctl_get_dataloc()
210 ceph_ino(inode), dl.object_no); in ceph_ioctl_get_dataloc()
214 ceph_oid_printf(&oid, "%s", dl.object_name); in ceph_ioctl_get_dataloc()
224 dl.osd = ceph_pg_to_acting_primary(osdc->osdmap, &pgid); in ceph_ioctl_get_dataloc()
225 if (dl.osd >= 0) { in ceph_ioctl_get_dataloc()
227 ceph_osd_addr(osdc->osdmap, dl.osd); in ceph_ioctl_get_dataloc()
229 memcpy(&dl.osd_addr, &a->in_addr, sizeof(dl.osd_addr)); in ceph_ioctl_get_dataloc()
231 memset(&dl.osd_addr, 0, sizeof(dl.osd_addr)); in ceph_ioctl_get_dataloc()
236 if (copy_to_user(arg, &dl, sizeof(dl))) in ceph_ioctl_get_dataloc()