diff options
author | Ilya Dryomov <idryomov@gmail.com> | 2016-04-28 14:07:25 (GMT) |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2016-05-25 22:36:29 (GMT) |
commit | e5253a7bde13788d9dc75f42eb47ea119af5609f (patch) | |
tree | e5b05eeccbaf93c644cd1bbbb26bb0a9033958e8 /include | |
parent | fbca963532eba779bffa14c70d1dc619e6bfa16d (diff) | |
download | linux-e5253a7bde13788d9dc75f42eb47ea119af5609f.tar.xz |
libceph: allocate dummy osdmap in ceph_osdc_init()
This leads to a simpler osdmap handling code, particularly when dealing
with pi->was_full, which is introduced in a later commit.
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/ceph/osdmap.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/ceph/osdmap.h b/include/linux/ceph/osdmap.h index 420bb79..8468c73 100644 --- a/include/linux/ceph/osdmap.h +++ b/include/linux/ceph/osdmap.h @@ -225,6 +225,7 @@ static inline int ceph_decode_pgid(void **p, void *end, struct ceph_pg *pgid) return 0; } +struct ceph_osdmap *ceph_osdmap_alloc(void); extern struct ceph_osdmap *ceph_osdmap_decode(void **p, void *end); struct ceph_osdmap *osdmap_apply_incremental(void **p, void *end, struct ceph_osdmap *map); |