]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd/cache/pwl/ssd: Remove unused parameter.
authorJianpeng Ma <jianpeng.ma@intel.com>
Tue, 7 Sep 2021 02:19:55 +0000 (10:19 +0800)
committerDeepika Upadhyay <dupadhya@redhat.com>
Fri, 5 Nov 2021 09:22:02 +0000 (14:52 +0530)
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>
(cherry picked from commit 40dad4c30c3b46ed3ac06961ebe740f6d82a6bc1)

src/librbd/cache/pwl/ssd/WriteLog.cc

index e0d9a13199abd8ffe972242445c903075c14c3a1..962accc6c4adbd261293fef956a63a3792097f24 100644 (file)
@@ -42,16 +42,6 @@ static bool is_valid_pool_root(const WriteLogPoolRoot& root) {
          root.first_free_entry % MIN_WRITE_ALLOC_SSD_SIZE == 0;
 }
 
-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 &&
-         root.first_valid_entry < root.pool_size &&
-         root.first_valid_entry % MIN_WRITE_ALLOC_SSD_SIZE == 0 &&
-         root.first_free_entry >= DATA_RING_BUFFER_OFFSET &&
-         root.first_free_entry < root.pool_size &&
-         root.first_free_entry % MIN_WRITE_ALLOC_SSD_SIZE == 0;
-}
-
 template <typename I>
 Builder<AbstractWriteLog<I>>* WriteLog<I>::create_builder() {
   m_builderobj = new Builder<This>();