]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore/bluestore_types: reorder onode_t types 12569/head
authorSage Weil <sage@redhat.com>
Mon, 19 Dec 2016 17:00:13 +0000 (12:00 -0500)
committerSage Weil <sage@redhat.com>
Tue, 20 Dec 2016 15:22:00 +0000 (10:22 -0500)
Save 8 bytes.

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

index e9cfdf94b8536236597aee0d951deb10bde985ee..f9c7c2b89569c375923f17391780e83d0cf5a21e 100644 (file)
@@ -665,11 +665,6 @@ struct bluestore_onode_t {
   uint64_t nid = 0;                    ///< numeric id (locally unique)
   uint64_t size = 0;                   ///< object size
   map<string, bufferptr> attrs;        ///< attrs
-  uint8_t flags = 0;
-
-  enum {
-    FLAG_OMAP = 1,
-  };
 
   struct shard_info {
     uint32_t offset = 0;  ///< logical offset for start of shard
@@ -688,6 +683,12 @@ struct bluestore_onode_t {
   uint32_t expected_write_size = 0;
   uint32_t alloc_hint_flags = 0;
 
+  uint8_t flags = 0;
+
+  enum {
+    FLAG_OMAP = 1,
+  };
+
   string get_flags_string() const {
     string s;
     if (flags & FLAG_OMAP) {