diff options
author | Ilya Dryomov <idryomov@gmail.com> | 2018-02-17 03:29:58 -0500 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2018-04-02 04:12:38 -0400 |
commit | dccbf08005df800f5c8e948ab6132ed5536134bc (patch) | |
tree | 9df1438b466899a694f724fdbdca2c0f9aca514e /include/linux/ceph | |
parent | db2196a58939c0b75b9b7ea5ab1fec4081d48661 (diff) |
libceph, ceph: change ceph_calc_file_object_mapping() signature
- make it void
- xlen (object extent length) out parameter should be u32 because only
a single stripe unit is mapped at a time
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Alex Elder <elder@linaro.org>
Diffstat (limited to 'include/linux/ceph')
-rw-r--r-- | include/linux/ceph/osdmap.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/include/linux/ceph/osdmap.h b/include/linux/ceph/osdmap.h index d41fad99c0fa..92314035dac1 100644 --- a/include/linux/ceph/osdmap.h +++ b/include/linux/ceph/osdmap.h | |||
@@ -280,10 +280,9 @@ bool ceph_osds_changed(const struct ceph_osds *old_acting, | |||
280 | const struct ceph_osds *new_acting, | 280 | const struct ceph_osds *new_acting, |
281 | bool any_change); | 281 | bool any_change); |
282 | 282 | ||
283 | /* calculate mapping of a file extent to an object */ | 283 | void ceph_calc_file_object_mapping(struct ceph_file_layout *l, |
284 | extern int ceph_calc_file_object_mapping(struct ceph_file_layout *layout, | 284 | u64 off, u64 len, |
285 | u64 off, u64 len, | 285 | u64 *objno, u64 *objoff, u32 *xlen); |
286 | u64 *bno, u64 *oxoff, u64 *oxlen); | ||
287 | 286 | ||
288 | int __ceph_object_locator_to_pg(struct ceph_pg_pool_info *pi, | 287 | int __ceph_object_locator_to_pg(struct ceph_pg_pool_info *pi, |
289 | const struct ceph_object_id *oid, | 288 | const struct ceph_object_id *oid, |