mirror of
https://github.com/ceph/ceph
synced 2025-03-19 08:57:29 +00:00
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:
commit
4c1966645f
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user