]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: break _do_zero out of _zero
authorSage Weil <sage@redhat.com>
Mon, 28 Mar 2016 17:10:09 +0000 (13:10 -0400)
committerSage Weil <sage@redhat.com>
Wed, 30 Mar 2016 15:23:15 +0000 (11:23 -0400)
Seems useless now, but it maintains symmetry and we'll
need it later.

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

index 46965fded754fd2284b3c36a79d1664a943dfb2e..45a1b2f45acbb5a396348bfc3b90a56a3e7702bc 100644 (file)
@@ -5746,6 +5746,22 @@ int BlueStore::_zero(TransContext *txc,
                     CollectionRef& c,
                     OnodeRef& o,
                     uint64_t offset, size_t length)
+{
+  dout(15) << __func__ << " " << c->cid << " " << o->oid
+          << " " << offset << "~" << length
+          << dendl;
+  int r = _do_zero(txc, c, o, offset, length);
+  dout(10) << __func__ << " " << c->cid << " " << o->oid
+          << " " << offset << "~" << length
+          << " = " << r << dendl;
+  return r;
+}
+
+
+int BlueStore::_do_zero(TransContext *txc,
+                       CollectionRef& c,
+                       OnodeRef& o,
+                       uint64_t offset, size_t length)
 {
   dout(15) << __func__ << " " << c->cid << " " << o->oid
           << " " << offset << "~" << length
index 4cd7375e5965fdebdade9d93c3b7feb4a7de09f1..124c06c938072b3d6b93e8d7091f1d8a8cb3b5a9 100644 (file)
@@ -898,6 +898,10 @@ private:
                     CollectionRef &c,
                     OnodeRef o,
                     uint64_t offset, uint64_t length);
+  int _do_zero(TransContext *txc,
+              CollectionRef& c,
+              OnodeRef& o,
+              uint64_t offset, size_t len);
   int _zero(TransContext *txc,
            CollectionRef& c,
            OnodeRef& o,