]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: Reorganize class members in InoTable header 29883/head
authorVarsha Rao <varao@redhat.com>
Mon, 26 Aug 2019 07:27:15 +0000 (03:27 -0400)
committerVarsha Rao <varao@redhat.com>
Mon, 26 Aug 2019 13:15:45 +0000 (09:15 -0400)
Fixes: https://tracker.ceph.com/issues/41428
Signed-off-by: Varsha Rao <varao@redhat.com>
src/mds/InoTable.h

index f16531c53aef0e87a0e66acec589b2b920c5a448..a7f0b090bd30a663cdb783d5cb6d8fc37b551f55 100644 (file)
 class MDSRank;
 
 class InoTable : public MDSTable {
-  interval_set<inodeno_t> free;   // unused ids
-  interval_set<inodeno_t> 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<inodeno_t> free;   // unused ids
+  interval_set<inodeno_t> projected_free;
 };
 WRITE_CLASS_ENCODER(InoTable)