]> git.baikalelectronics.ru Git - kernel.git/commit
libceph: calculate placement based on the internal data types
authorSage Weil <sage@inktank.com>
Tue, 26 Feb 2013 00:13:08 +0000 (16:13 -0800)
committerSage Weil <sage@inktank.com>
Tue, 26 Feb 2013 23:02:37 +0000 (15:02 -0800)
commit8c6fbe5556ef26bc18fc05886169323aa088b5e7
tree8a287c8239a5e1fc47afae4fbec530a467825706
parent6c265b473b8f773686f0c4cc5ceccf09e54e632f
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>
fs/ceph/ioctl.c
include/linux/ceph/osd_client.h
include/linux/ceph/osdmap.h
net/ceph/osd_client.c
net/ceph/osdmap.c