libceph: calculate placement based on the internal data types
Instead of using the old ceph_object_layout struct, update our internal ceph_calc_object_layout method to use the ceph_pg type. This allows us to pass the full 32-bit precision of the pgid.seed to the callers. It also allows some callers to avoid reaching into the request structures for the struct ceph_object_layout fields. Signed-off-by:Sage Weil <sage@inktank.com> Reviewed-by:
Alex Elder <elder@inktank.com>
Showing
- fs/ceph/ioctl.c 1 addition, 4 deletionsfs/ceph/ioctl.c
- include/linux/ceph/osd_client.h 1 addition, 0 deletionsinclude/linux/ceph/osd_client.h
- include/linux/ceph/osdmap.h 1 addition, 1 deletioninclude/linux/ceph/osdmap.h
- net/ceph/osd_client.c 7 additions, 4 deletionsnet/ceph/osd_client.c
- net/ceph/osdmap.c 5 additions, 13 deletionsnet/ceph/osdmap.c
Loading
Please register or sign in to comment