]> git.hungrycats.org Git - bees/commitdiff
extent scan: shorten task name for extent map
authorZygo Blaxell <bees@furryterror.org>
Sat, 8 Mar 2025 23:30:39 +0000 (18:30 -0500)
committerZygo Blaxell <bees@furryterror.org>
Thu, 19 Jun 2025 01:17:48 +0000 (21:17 -0400)
Linux kernel thread names are hardcoded at 16 characters.  Every character
counts, and "0x" wastes two.

Signed-off-by: Zygo Blaxell <bees@furryterror.org>
src/bees-roots.cc

index 4607670f60eec73839c9e2b3006a37fb6e0c2911..52536ec983553445e84da2bfbf20a94d395a7604 100644 (file)
@@ -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);