From 372bc458104d69f5e27be2818d9dd1b806519777 Mon Sep 17 00:00:00 2001 From: Yingxin Cheng Date: Thu, 2 Sep 2021 12:42:27 +0800 Subject: [PATCH] crimson/onode-staged-tree: add logs for hint Signed-off-by: Yingxin Cheng --- .../onode_manager/staged-fltree/node_extent_manager/dummy.h | 2 +- .../onode_manager/staged-fltree/node_extent_manager/seastore.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/crimson/os/seastore/onode_manager/staged-fltree/node_extent_manager/dummy.h b/src/crimson/os/seastore/onode_manager/staged-fltree/node_extent_manager/dummy.h index 53115ba171eae..272e0dbb36929 100644 --- a/src/crimson/os/seastore/onode_manager/staged-fltree/node_extent_manager/dummy.h +++ b/src/crimson/os/seastore/onode_manager/staged-fltree/node_extent_manager/dummy.h @@ -90,7 +90,7 @@ class DummyNodeExtentManager final: public NodeExtentManager { alloc_iertr::future alloc_extent( Transaction& t, laddr_t hint, extent_len_t len) override { - TRACET("allocating {}B ...", t, len); + TRACET("allocating {}B with hint {:#x} ...", t, len, hint); if constexpr (SYNC) { return alloc_extent_sync(t, len); } else { diff --git a/src/crimson/os/seastore/onode_manager/staged-fltree/node_extent_manager/seastore.h b/src/crimson/os/seastore/onode_manager/staged-fltree/node_extent_manager/seastore.h index 3ff51d0542e3b..432890922f89f 100644 --- a/src/crimson/os/seastore/onode_manager/staged-fltree/node_extent_manager/seastore.h +++ b/src/crimson/os/seastore/onode_manager/staged-fltree/node_extent_manager/seastore.h @@ -122,7 +122,7 @@ class SeastoreNodeExtentManager final: public TransactionManagerHandle { alloc_iertr::future alloc_extent( Transaction& t, laddr_t hint, extent_len_t len) override { - TRACET("allocating {}B ...", t, len); + TRACET("allocating {}B with hint {:#x} ...", t, len, hint); if constexpr (INJECT_EAGAIN) { if (trigger_eagain()) { DEBUGT("allocating {}B: trigger eagain", t, len); -- 2.39.5