From f8fb7609b30bf3e60a64e4282250b121151d1559 Mon Sep 17 00:00:00 2001 From: Ilya Dryomov Date: Fri, 21 May 2021 15:27:31 +0200 Subject: [PATCH] librbd/cache/pwl/ssd: flushed_sync_gen capture is unused Signed-off-by: Ilya Dryomov --- src/librbd/cache/pwl/ssd/WriteLog.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/librbd/cache/pwl/ssd/WriteLog.cc b/src/librbd/cache/pwl/ssd/WriteLog.cc index e9702191fe8..da40c32c5e4 100644 --- a/src/librbd/cache/pwl/ssd/WriteLog.cc +++ b/src/librbd/cache/pwl/ssd/WriteLog.cc @@ -669,8 +669,8 @@ bool WriteLog::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::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; -- 2.39.5