]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: pack SharedBlob
authorSage Weil <sage@redhat.com>
Tue, 4 Oct 2016 22:04:49 +0000 (18:04 -0400)
committerSage Weil <sage@redhat.com>
Tue, 4 Oct 2016 22:04:49 +0000 (18:04 -0400)
224 -> 216 bytes

Signed-off-by: Sage Weil <sage@redhat.com>
src/os/bluestore/BlueStore.h

index 7f41b6a1e596d2402ac3a520b382dc7590c0f5f3..20e8e929fd31c8a93d7f87b476cb3c94c0767725 100644 (file)
@@ -318,15 +318,15 @@ public:
   struct SharedBlob : public boost::intrusive::unordered_set_base_hook<> {
     std::atomic_int nref = {0}; ///< reference count
 
+    // these are defined/set if the shared_blob is 'loaded'
+    bool loaded = false;        ///< whether shared_blob_t is loaded
+    bluestore_shared_blob_t shared_blob; ///< the actual shared state
+
     // these are defined/set if the blob is marked 'shared'
     uint64_t sbid = 0;          ///< shared blob id
     string key;                 ///< key in kv store
     SharedBlobSet *parent_set = 0;  ///< containing SharedBlobSet
 
-    // these are defined/set if the shared_blob is 'loaded'
-    bluestore_shared_blob_t shared_blob; ///< the actual shared state
-    bool loaded = false;        ///< whether shared_blob_t is loaded
-
     BufferSpace bc;             ///< buffer cache
 
     SharedBlob(uint64_t i, const string& k, Cache *c);