diff options
author | Ilya Dryomov <idryomov@gmail.com> | 2016-04-28 16:07:25 +0200 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2016-05-26 00:36:29 +0200 |
commit | e5253a7bde13788d9dc75f42eb47ea119af5609f (patch) | |
tree | e5b05eeccbaf93c644cd1bbbb26bb0a9033958e8 /include/linux/ceph | |
parent | fbca963532eba779bffa14c70d1dc619e6bfa16d (diff) | |
download | blackbird-op-linux-e5253a7bde13788d9dc75f42eb47ea119af5609f.tar.gz blackbird-op-linux-e5253a7bde13788d9dc75f42eb47ea119af5609f.zip |
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/linux/ceph')
-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 420bb7968b25..8468c734d712 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); |