From: Sage Weil Date: Mon, 28 Mar 2016 17:10:09 +0000 (-0400) Subject: os/bluestore: break _do_zero out of _zero X-Git-Tag: v10.1.1~28^2~11 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a81095168d6c4f5e73c0342563c357944d30aa59;p=ceph.git os/bluestore: break _do_zero out of _zero Seems useless now, but it maintains symmetry and we'll need it later. Signed-off-by: Sage Weil --- diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index 46965fded754f..45a1b2f45acbb 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -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 diff --git a/src/os/bluestore/BlueStore.h b/src/os/bluestore/BlueStore.h index 4cd7375e5965f..124c06c938072 100644 --- a/src/os/bluestore/BlueStore.h +++ b/src/os/bluestore/BlueStore.h @@ -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,