Merge pull request #61892 from k0ste/wip-70068-reef

reef: os/bluestore: fix the problem that _estimate_log_size_N calculates the log size incorrectly
This commit is contained in:
Adam Kupczyk 2025-03-11 19:33:12 +01:00 committed by GitHub
commit 4c1966645f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2386,7 +2386,7 @@ uint64_t BlueFS::_estimate_log_size_N()
int avg_file_size = 12;
uint64_t size = 4096 * 2;
size += nodes.file_map.size() * (1 + sizeof(bluefs_fnode_t));
size += nodes.dir_map.size() + (1 + avg_dir_size);
size += nodes.dir_map.size() * (1 + avg_dir_size);
size += nodes.file_map.size() * (1 + avg_dir_size + avg_file_size);
return round_up_to(size, super.block_size);
}