From 20bf3bd543b93ee4b03e05d8c0793158cd2c9bd2 Mon Sep 17 00:00:00 2001 From: Patrick Donnelly Date: Tue, 19 Mar 2024 17:08:54 -0400 Subject: [PATCH] mds: remove is_root indication on quiesce_inode op This is no longer necessary with the change to a LocalLock quiescelock. Signed-off-by: Patrick Donnelly (cherry picked from commit 667c9a9c5af8d342ce6da5e942efb219b67d980b) --- src/mds/MDCache.cc | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/mds/MDCache.cc b/src/mds/MDCache.cc index d62d93e16fd88..127721f085bbc 100644 --- a/src/mds/MDCache.cc +++ b/src/mds/MDCache.cc @@ -13571,8 +13571,6 @@ void MDCache::dispatch_quiesce_inode(const MDRequestRef& mdr) return; } - [[maybe_unused]] const bool is_root = (ino == mdr->get_filepath2().get_ino()); - dout(20) << __func__ << " " << *mdr << " quiescing " << *in << dendl; if (quiesce_counter.get() > quiesce_threshold) { @@ -13813,7 +13811,6 @@ void MDCache::dispatch_quiesce_path(const MDRequestRef& mdr) } else if (auto& qops = mdr->more()->quiesce_ops; qops.count(dirino) == 0) { MDRequestRef qimdr = request_start_internal(CEPH_MDS_OP_QUIESCE_INODE); qimdr->set_filepath(filepath(dirino)); - qimdr->set_filepath2(filepath(dirino)); /* is_root! */ qimdr->internal_op_finish = new C_MDS_RetryRequest(this, mdr); qimdr->internal_op_private = new QuiesceInodeStateRef(qis); qops[dirino] = qimdr->reqid; -- 2.39.5