Lines Matching refs:dl
181 struct ceph_ioctl_dataloc dl; in ceph_ioctl_get_dataloc() local
194 if (copy_from_user(&dl, arg, sizeof(dl))) in ceph_ioctl_get_dataloc()
198 ceph_calc_file_object_mapping(&ci->i_layout, dl.file_offset, 1, in ceph_ioctl_get_dataloc()
199 &dl.object_no, &dl.object_offset, &xlen); in ceph_ioctl_get_dataloc()
200 dl.file_offset -= dl.object_offset; in ceph_ioctl_get_dataloc()
201 dl.object_size = ci->i_layout.object_size; in ceph_ioctl_get_dataloc()
202 dl.block_size = ci->i_layout.stripe_unit; in ceph_ioctl_get_dataloc()
205 tmp = dl.object_offset; in ceph_ioctl_get_dataloc()
206 dl.block_offset = do_div(tmp, dl.block_size); in ceph_ioctl_get_dataloc()
208 snprintf(dl.object_name, sizeof(dl.object_name), "%llx.%08llx", in ceph_ioctl_get_dataloc()
209 ceph_ino(inode), dl.object_no); in ceph_ioctl_get_dataloc()
213 ceph_oid_printf(&oid, "%s", dl.object_name); in ceph_ioctl_get_dataloc()
223 dl.osd = ceph_pg_to_acting_primary(osdc->osdmap, &pgid); in ceph_ioctl_get_dataloc()
224 if (dl.osd >= 0) { in ceph_ioctl_get_dataloc()
226 ceph_osd_addr(osdc->osdmap, dl.osd); in ceph_ioctl_get_dataloc()
228 memcpy(&dl.osd_addr, &a->in_addr, sizeof(dl.osd_addr)); in ceph_ioctl_get_dataloc()
230 memset(&dl.osd_addr, 0, sizeof(dl.osd_addr)); in ceph_ioctl_get_dataloc()
235 if (copy_to_user(arg, &dl, sizeof(dl))) in ceph_ioctl_get_dataloc()