]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
librbd/cache/pwl/ssd: flushed_sync_gen capture is unused
authorIlya Dryomov <idryomov@gmail.com>
Fri, 21 May 2021 13:27:31 +0000 (15:27 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Sat, 29 May 2021 16:44:20 +0000 (18:44 +0200)
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
src/librbd/cache/pwl/ssd/WriteLog.cc

index e9702191fe8024568eca5f274838792f3f74d045..da40c32c5e45d18ae4caf4d7b4042460fb004465 100644 (file)
@@ -669,8 +669,8 @@ bool WriteLog<I>::retire_entries(const unsigned long int frees_per_tx) {
     pool_root.first_valid_entry = first_valid_entry;
 
     Context *ctx = new LambdaContext(
-      [this, flushed_sync_gen, first_valid_entry,
-       initial_first_valid_entry, retiring_entries](int r) {
+      [this, first_valid_entry, initial_first_valid_entry,
+       retiring_entries](int r) {
         uint64_t allocated_bytes = 0;
         uint64_t cached_bytes = 0;
         uint64_t former_log_pos = 0;
@@ -715,8 +715,8 @@ bool WriteLog<I>::retire_entries(const unsigned long int frees_per_tx) {
         this->process_writeback_dirty_entries();
       });
 
-      std::lock_guard locker(m_lock);
-      schedule_update_root(new_root, ctx);
+    std::lock_guard locker(m_lock);
+    schedule_update_root(new_root, ctx);
   } else {
     ldout(cct, 20) << "Nothing to retire" << dendl;
     return false;