From 22a1b1a7ea4fc07f755a333e2afb3f56892557cf Mon Sep 17 00:00:00 2001 From: Varsha Rao Date: Wed, 25 Dec 2019 00:05:20 +0530 Subject: [PATCH] mds: Move data members of struct SnapRealm to private. Most of the data members are used by methods of structure SnapRealm only. They can be safely made private. Signed-off-by: Varsha Rao --- src/mds/SnapRealm.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/mds/SnapRealm.h b/src/mds/SnapRealm.h index 47bd950c482..6e62e3898bc 100644 --- a/src/mds/SnapRealm.h +++ b/src/mds/SnapRealm.h @@ -130,15 +130,11 @@ public: MDCache *mdcache; CInode *inode; - mutable bool open = false; // set to true once all past_parents are opened bool past_parents_dirty = false; - bool global; SnapRealm *parent = nullptr; set open_children; // active children that are currently open set open_past_children; // past children who has pinned me - map > > open_past_parents; // these are explicitly pinned. - unsigned num_open_past_parents = 0; elist inodes_with_caps = 0; // for efficient realm splits map* > client_caps; // to identify clients who need snap notifications @@ -146,6 +142,13 @@ public: protected: void check_cache() const; +private: + mutable bool open = false; // set to true once all past_parents are opened + bool global; + + map > > open_past_parents; // these are explicitly pinned. + unsigned num_open_past_parents = 0; + // cache mutable snapid_t cached_seq; // max seq over self and all past+present parents. mutable snapid_t cached_last_created; // max last_created over all past+present parents -- 2.39.5