aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/ceph/osdmap.c37
1 files changed, 37 insertions, 0 deletions
diff --git a/net/ceph/osdmap.c b/net/ceph/osdmap.c
index bf2fcc837e36..710ee3dc01b9 100644
--- a/net/ceph/osdmap.c
+++ b/net/ceph/osdmap.c
@@ -682,11 +682,48 @@ static int decode_pool(void **p, void *end, struct ceph_pg_pool_info *pi)
682 *p += len; 682 *p += len;
683 } 683 }
684 684
685 /*
686 * last_force_op_resend_preluminous, will be overridden if the
687 * map was encoded with RESEND_ON_SPLIT
688 */
685 if (ev >= 15) 689 if (ev >= 15)
686 pi->last_force_request_resend = ceph_decode_32(p); 690 pi->last_force_request_resend = ceph_decode_32(p);
687 else 691 else
688 pi->last_force_request_resend = 0; 692 pi->last_force_request_resend = 0;
689 693
694 if (ev >= 16)
695 *p += 4; /* skip min_read_recency_for_promote */
696
697 if (ev >= 17)
698 *p += 8; /* skip expected_num_objects */
699
700 if (ev >= 19)
701 *p += 4; /* skip cache_target_dirty_high_ratio_micro */
702
703 if (ev >= 20)
704 *p += 4; /* skip min_write_recency_for_promote */
705
706 if (ev >= 21)
707 *p += 1; /* skip use_gmt_hitset */
708
709 if (ev >= 22)
710 *p += 1; /* skip fast_read */
711
712 if (ev >= 23) {
713 *p += 4; /* skip hit_set_grade_decay_rate */
714 *p += 4; /* skip hit_set_search_last_n */
715 }
716
717 if (ev >= 24) {
718 /* skip opts */
719 *p += 1 + 1; /* versions */
720 len = ceph_decode_32(p);
721 *p += len;
722 }
723
724 if (ev >= 25)
725 pi->last_force_request_resend = ceph_decode_32(p);
726
690 /* ignore the rest */ 727 /* ignore the rest */
691 728
692 *p = pool_end; 729 *p = pool_end;