]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd/cache/pwl/ssd: Remove unused parameter. 42984/head
authorJianpeng Ma <jianpeng.ma@intel.com>
Tue, 7 Sep 2021 02:19:55 +0000 (10:19 +0800)
committerJianpeng Ma <jianpeng.ma@intel.com>
Tue, 7 Sep 2021 02:33:56 +0000 (10:33 +0800)
Met the following compiler warning message:
>[38/80] Building CXX object
src/librbd/CMakeFiles/librbd_plugin_pwl_cache.dir/cache/pwl/ssd/WriteLog.cc.o
>../src/librbd/cache/pwl/ssd/WriteLog.cc:37:25: warning: unused variable
'ops_appended_together' [-Wunused-const-variable]
>const unsigned long int ops_appended_together = MAX_WRITES_PER_SYNC_POINT;

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
src/librbd/cache/pwl/ssd/WriteLog.cc

index 83790cde718f748f8c80d1bcb9823b19eff2ccf5..0ac7b581de952495899af922ac7723e917e6600f 100644 (file)
@@ -33,9 +33,6 @@ namespace ssd {
 using namespace std;
 using namespace librbd::cache::pwl;
 
-// SSD: this number can be updated later
-const unsigned long int ops_appended_together = MAX_WRITES_PER_SYNC_POINT;
-
 static bool is_valid_pool_root(const WriteLogPoolRoot& root) {
   return root.pool_size % MIN_WRITE_ALLOC_SSD_SIZE == 0 &&
          root.first_valid_entry >= DATA_RING_BUFFER_OFFSET &&