]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: remove internal structures from Bluestore.h
authorIgor Fedotov <ifedotov@mirantis.com>
Thu, 7 Jul 2016 17:12:24 +0000 (20:12 +0300)
committerIgor Fedotov <ifedotov@mirantis.com>
Thu, 11 Aug 2016 11:28:02 +0000 (14:28 +0300)
Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
src/os/bluestore/BlueStore.cc
src/os/bluestore/BlueStore.h

index 959a63cbb14a2e7d6fcb622c585562a74ac7b677..2ddc7c6583401c14aa979e44a39c224832d30d10 100644 (file)
@@ -3561,6 +3561,30 @@ int BlueStore::read(
   return r;
 }
 
+// --------------------------------------------------------
+// intermediate data structures used while reading
+struct region_t {
+  uint64_t logical_offset;
+  uint64_t blob_xoffset;   //region offset within the blob
+  uint64_t length;
+
+  region_t(uint64_t offset, uint64_t b_offs, uint64_t len)
+    : logical_offset(offset),
+    blob_xoffset(b_offs),
+    length(len) {}
+  region_t(const region_t& from)
+    : logical_offset(from.logical_offset),
+    blob_xoffset(from.blob_xoffset),
+    length(from.length) {}
+
+  friend ostream& operator<<(ostream& out, const region_t& r) {
+    return out << "0x" << std::hex << r.logical_offset << ":"
+      << r.blob_xoffset << "~" << r.length << std::dec;
+  }
+};
+typedef list<region_t> regions2read_t;
+typedef map<Blob*, regions2read_t> blobs2read_t;
+
 int BlueStore::_do_read(
   Collection *c,
   OnodeRef o,
index 7352d6c9d5c4076d39665cc065e969f6dc535235..7213c6c1db6f56b18bd88235f1b34ff912691a83 100644 (file)
@@ -82,29 +82,6 @@ public:
   class TransContext;
   class Blob;
 
-  // --------------------------------------------------------
-  // intermediate data structures used while reading
-  struct region_t {
-    uint64_t logical_offset;
-    uint64_t blob_xoffset;   //region offset within the blob
-    uint64_t length;
-
-    region_t(uint64_t offset, uint64_t b_offs, uint64_t len)
-      : logical_offset(offset),
-      blob_xoffset(b_offs),
-      length(len) {}
-    region_t(const region_t& from)
-      : logical_offset(from.logical_offset),
-      blob_xoffset(from.blob_xoffset),
-      length(from.length) {}
-
-    friend ostream& operator<<(ostream& out, const region_t& r) {
-      return out << "0x" << std::hex << r.logical_offset << ":"
-                << r.blob_xoffset << "~" << r.length << std::dec;
-    }
-  };
-  typedef list<region_t> regions2read_t;
-  typedef map<Blob*, regions2read_t> blobs2read_t;
   typedef map<uint64_t, bufferlist> ready_regions_t;
 
   struct BufferSpace;