From ef9b4b3a502c73b54ab0254f53b36c18ad1044a4 Mon Sep 17 00:00:00 2001 From: Zygo Blaxell Date: Sat, 8 Mar 2025 18:30:39 -0500 Subject: [PATCH] extent scan: shorten task name for extent map Linux kernel thread names are hardcoded at 16 characters. Every character counts, and "0x" wastes two. Signed-off-by: Zygo Blaxell --- src/bees-roots.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bees-roots.cc b/src/bees-roots.cc index 4607670..52536ec 100644 --- a/src/bees-roots.cc +++ b/src/bees-roots.cc @@ -1148,7 +1148,7 @@ BeesScanModeExtent::SizeTier::find_next_extent() const auto hold_state = m_crawl->hold_state(this_state); const auto sft = shared_from_this(); ostringstream oss; - oss << "map_" << to_hex(this_bytenr) << "_" << pretty(this_length); + oss << "map_" << hex << this_bytenr << dec << "_" << pretty(this_length); Task create_map_task(oss.str(), [sft, this_bytenr, hold_state, this_length, find_next_task]() { sft->create_extent_map(this_bytenr, hold_state, this_length, find_next_task); BEESCOUNT(crawl_extent);