]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: remove useless condtion. 22335/head
authorJianpeng Ma <jianpeng.ma@intel.com>
Wed, 30 May 2018 15:44:45 +0000 (23:44 +0800)
committerJianpeng Ma <jianpeng.ma@intel.com>
Thu, 31 May 2018 11:08:32 +0000 (19:08 +0800)
onode must not be null in this func.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
src/os/bluestore/BlueStore.cc

index 3642fe54a5e87cc4b5fce265af318e302dad00ea..85fcc56c6ffea79aa347c7e15a20749c977383e1 100644 (file)
@@ -2929,7 +2929,7 @@ int BlueStore::ExtentMap::compress_extent_map(
       }
     }
   }
-  if (removed && onode) {
+  if (removed) {
     onode->c->store->logger->inc(l_bluestore_extent_compress, removed);
   }
   return removed;