diff options
author | Ilya Dryomov <ilya.dryomov@inktank.com> | 2014-03-13 15:36:13 +0100 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2014-04-05 06:07:37 +0200 |
commit | a2505d63ee0541d9b4685250b033192e68222e97 (patch) | |
tree | 887b25757a76a7738290c17fb8ecd095bc0e68dd /net/ceph/osd_client.c | |
parent | libceph: dump osdmap and enhance output on decode errors (diff) | |
download | linux-a2505d63ee0541d9b4685250b033192e68222e97.tar.xz linux-a2505d63ee0541d9b4685250b033192e68222e97.zip |
libceph: split osdmap allocation and decode steps
Split osdmap allocation and initialization into a separate function,
ceph_osdmap_decode().
Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
Reviewed-by: Alex Elder <elder@linaro.org>
Diffstat (limited to 'net/ceph/osd_client.c')
-rw-r--r-- | net/ceph/osd_client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ceph/osd_client.c b/net/ceph/osd_client.c index 71830d79b0f4..6f64eec18851 100644 --- a/net/ceph/osd_client.c +++ b/net/ceph/osd_client.c @@ -2062,7 +2062,7 @@ void ceph_osdc_handle_map(struct ceph_osd_client *osdc, struct ceph_msg *msg) int skipped_map = 0; dout("taking full map %u len %d\n", epoch, maplen); - newmap = osdmap_decode(&p, p+maplen); + newmap = ceph_osdmap_decode(&p, p+maplen); if (IS_ERR(newmap)) { err = PTR_ERR(newmap); goto bad; |