]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/mds/SnapRealm.h
import 15.2.9
[ceph.git] / ceph / src / mds / SnapRealm.h
index 6e62e3898bcb4b4f27c2b709710afeef036f8d8c..8e749f09f741fb62f26568fda1c44011ffdc638b 100644 (file)
@@ -102,6 +102,11 @@ public:
     return (p != s.end() && *p <= last);
   }
 
+  inodeno_t get_subvolume_ino() {
+    check_cache();
+    return cached_subvolume_ino;
+  }
+
   void adjust_parent();
 
   void split_at(SnapRealm *child);
@@ -156,6 +161,7 @@ private:
   mutable set<snapid_t> cached_snaps;
   mutable SnapContext cached_snap_context;
   mutable bufferlist cached_snap_trace;
+  mutable inodeno_t cached_subvolume_ino = 0;
 };
 
 ostream& operator<<(ostream& out, const SnapRealm &realm);