os/bluestore: pack SharedBlob

224 -> 216 bytes

Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Sage Weil 2016-10-04 18:04:49 -04:00
parent 2094168a53
commit 7c5b77a6f8

View 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);