From 1c279aa51325f658b02e0c121490d0b1b101594b Mon Sep 17 00:00:00 2001 From: Varsha Rao Date: Mon, 26 Aug 2019 03:27:15 -0400 Subject: [PATCH] mds: Reorganize class members in InoTable header Fixes: https://tracker.ceph.com/issues/41428 Signed-off-by: Varsha Rao --- src/mds/InoTable.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/mds/InoTable.h b/src/mds/InoTable.h index f16531c53aef..a7f0b090bd30 100644 --- a/src/mds/InoTable.h +++ b/src/mds/InoTable.h @@ -22,11 +22,9 @@ class MDSRank; class InoTable : public MDSTable { - interval_set free; // unused ids - interval_set projected_free; - public: - explicit InoTable(MDSRank *m) : MDSTable(m, "inotable", true) { } + explicit InoTable(MDSRank *m) : MDSTable(m, "inotable", true) {} + InoTable() : MDSTable(NULL, "inotable", true) {} inodeno_t project_alloc_id(inodeno_t id=0); void apply_alloc_id(inodeno_t id); @@ -61,7 +59,6 @@ class InoTable : public MDSTable { } // To permit enc/decoding in isolation in dencoder - InoTable() : MDSTable(NULL, "inotable", true) {} void encode(bufferlist& bl) const { encode_state(bl); } @@ -97,6 +94,10 @@ class InoTable : public MDSTable { * @return true if the table was modified */ bool force_consume_to(inodeno_t ino); + + private: + interval_set free; // unused ids + interval_set projected_free; }; WRITE_CLASS_ENCODER(InoTable) -- 2.47.3