]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: pack Blob members
authorSage Weil <sage@redhat.com>
Tue, 4 Oct 2016 22:03:06 +0000 (18:03 -0400)
committerSage Weil <sage@redhat.com>
Tue, 4 Oct 2016 22:03:06 +0000 (18:03 -0400)
272 -> 264 bytes

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

index 7266dc423fbd8876cd7c3074abebbec7874ad2a5..7f41b6a1e596d2402ac3a520b382dc7590c0f5f3 100644 (file)
@@ -407,15 +407,13 @@ public:
   /// in-memory blob metadata and associated cached buffers (if any)
   struct Blob : public boost::intrusive::set_base_hook<> {
     std::atomic_int nref = {0};     ///< reference count
-    int id = -1;                    ///< id, for spanning blobs only, >= 0
+    int16_t id = -1;                ///< id, for spanning blobs only, >= 0
+    int16_t last_encoded_id = -1;   ///< (ephemeral) used during encoding only
     SharedBlobRef shared_blob;      ///< shared blob state (if any)
 
     /// refs from this shard.  ephemeral if id<0, persisted if spanning.
     bluestore_extent_ref_map_t ref_map;
 
-
-    int last_encoded_id = -1;       ///< (ephemeral) used during encoding only
-
   private:
     mutable bluestore_blob_t blob;  ///< decoded blob metadata
     mutable bool dirty = true;      ///< true if blob is newer than blob_bl