diff options
-rw-r--r-- | fs/ceph/osdmap.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/ceph/osdmap.c b/fs/ceph/osdmap.c index a9416308de6f..0dbd606e21c4 100644 --- a/fs/ceph/osdmap.c +++ b/fs/ceph/osdmap.c | |||
@@ -538,7 +538,6 @@ struct ceph_osdmap *osdmap_apply_incremental(void **p, void *end, | |||
538 | struct ceph_osdmap *map, | 538 | struct ceph_osdmap *map, |
539 | struct ceph_messenger *msgr) | 539 | struct ceph_messenger *msgr) |
540 | { | 540 | { |
541 | struct ceph_osdmap *newmap = map; | ||
542 | struct crush_map *newcrush = NULL; | 541 | struct crush_map *newcrush = NULL; |
543 | struct ceph_fsid fsid; | 542 | struct ceph_fsid fsid; |
544 | u32 epoch = 0; | 543 | u32 epoch = 0; |
@@ -701,7 +700,7 @@ struct ceph_osdmap *osdmap_apply_incremental(void **p, void *end, | |||
701 | } | 700 | } |
702 | pg->pgid = pgid; | 701 | pg->pgid = pgid; |
703 | pg->len = pglen; | 702 | pg->len = pglen; |
704 | for (j = 0; j < len; j++) | 703 | for (j = 0; j < pglen; j++) |
705 | pg->osds[j] = ceph_decode_32(p); | 704 | pg->osds[j] = ceph_decode_32(p); |
706 | err = __insert_pg_mapping(pg, &map->pg_temp); | 705 | err = __insert_pg_mapping(pg, &map->pg_temp); |
707 | if (err) | 706 | if (err) |