diff options
author | Sage Weil <sage@newdream.net> | 2010-06-17 13:22:48 -0400 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2010-06-17 13:22:48 -0400 |
commit | cebc5be6b6c82a99231e9c9af451e9e3d3399ec6 (patch) | |
tree | 5899be89ac6396cb38ca938f922ef0a8ab57d3b3 | |
parent | ae32be31341a5fecfa16c5b3eb78095207182cce (diff) |
ceph: fix crush map update decoding
If the incremental osdmap has a new crush map, advance the position after
decoding so that we can parse the rest of the osdmap properly.
Signed-off-by: Sage Weil <sage@newdream.net>
-rw-r--r-- | fs/ceph/osdmap.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ceph/osdmap.c b/fs/ceph/osdmap.c index ddc656fb5c05..50ce64ebd330 100644 --- a/fs/ceph/osdmap.c +++ b/fs/ceph/osdmap.c | |||
@@ -707,6 +707,7 @@ struct ceph_osdmap *osdmap_apply_incremental(void **p, void *end, | |||
707 | newcrush = crush_decode(*p, min(*p+len, end)); | 707 | newcrush = crush_decode(*p, min(*p+len, end)); |
708 | if (IS_ERR(newcrush)) | 708 | if (IS_ERR(newcrush)) |
709 | return ERR_CAST(newcrush); | 709 | return ERR_CAST(newcrush); |
710 | *p += len; | ||
710 | } | 711 | } |
711 | 712 | ||
712 | /* new flags? */ | 713 | /* new flags? */ |