From ed71c3ed00988d1710c671fd6d0a65136d0bb48f Mon Sep 17 00:00:00 2001 From: xie xingguo Date: Thu, 23 Jun 2016 14:26:42 +0800 Subject: [PATCH] os/bluestore: kill dead code Signed-off-by: xie xingguo --- src/os/bluestore/BlueFS.cc | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/os/bluestore/BlueFS.cc b/src/os/bluestore/BlueFS.cc index 07d5e408a18..1e35c965e56 100644 --- a/src/os/bluestore/BlueFS.cc +++ b/src/os/bluestore/BlueFS.cc @@ -106,19 +106,12 @@ void BlueFS::_update_logger_stats() } } -/*static void aio_cb(void *priv, void *priv2) -{ - BlueFS *fs = static_cast(priv); - if (priv2) - fs->_aio_finish(priv2); - }*/ - int BlueFS::add_block_device(unsigned id, string path) { dout(10) << __func__ << " bdev " << id << " path " << path << dendl; assert(id < bdev.size()); assert(bdev[id] == NULL); - BlockDevice *b = BlockDevice::create(path, NULL, NULL); //aio_cb, this); + BlockDevice *b = BlockDevice::create(path, NULL, NULL); int r = b->open(path); if (r < 0) { delete b; -- 2.39.5