1
0
mirror of https://github.com/Zygo/bees.git synced 2025-07-02 00:32:27 +02:00

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 <bees@furryterror.org>
This commit is contained in:
Zygo Blaxell
2025-03-08 18:30:39 -05:00
parent 7ca857dff0
commit ef9b4b3a50

View File

@ -1148,7 +1148,7 @@ BeesScanModeExtent::SizeTier::find_next_extent()
const auto hold_state = m_crawl->hold_state(this_state); const auto hold_state = m_crawl->hold_state(this_state);
const auto sft = shared_from_this(); const auto sft = shared_from_this();
ostringstream oss; 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]() { 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); sft->create_extent_map(this_bytenr, hold_state, this_length, find_next_task);
BEESCOUNT(crawl_extent); BEESCOUNT(crawl_extent);