From: Sage Weil Date: Tue, 4 Oct 2016 22:04:49 +0000 (-0400) Subject: os/bluestore: pack SharedBlob X-Git-Tag: v11.0.1~4^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7c5b77a6f8d58b3ef1560c2b744834c8dd56a948;p=ceph.git os/bluestore: pack SharedBlob 224 -> 216 bytes Signed-off-by: Sage Weil --- diff --git a/src/os/bluestore/BlueStore.h b/src/os/bluestore/BlueStore.h index 7f41b6a1e59..20e8e929fd3 100644 --- a/src/os/bluestore/BlueStore.h +++ b/src/os/bluestore/BlueStore.h @@ -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);