vdo_compute_...forest_pages(9)
π vdo_compute_new_forest_pages β Kernel API Manual β¨
Okay so bestie, we're in the kernel docs, specifically the vdo_compute_...forest_pages(9) page from the Kernel API Manual, and this one is lowkey a math girlie. Let's get into it π
β¨ NAME β¨
vdo_compute_new_forest_pages β computes the number of pages that have to be allocated at each level so the forest can grow to a new number of entries π²π
π¦ SYNOPSIS π¦
block_count_t vdo_compute_new_forest_pages (root_count_t root_count ,
struct boundary *old_sizes , block_count_t entries , struct boundary
*new_sizes );
That's the whole vibe, no cap. Now let's meet the cast π
πΈ ARGUMENTS πΈ
root_countβ the number of block map roots. Like, how many roots we're working with, periodt π±old_sizesβ the sizes of the old tree segments. The before pics πΈentriesβ the new number of entries the block map must address. This is the glow-up target π―new_sizesβ the sizes of the new tree segments. The after pics β¨
π«Ά RETURN π«Ά
It hands you back the total number of non-leaf pages required. That's it, that's the answer, slay π
π SEE ALSO π
Bestie there are so many friends on this list, and they're all in the kernel file ./drivers/md/dm-vdo/encodings.c β every single one, here we go:
validate_version(9)vdo_validate_header(9)decode_volume_geometry(9)vdo_encode_volume_geometry(9)vdo_parse_geometry_block(9)encode_recovery_journal_state_7_0(9)decode_recovery_journal_state_7_0(9)vdo_get_journal_operation_name(9)encode_slab_depot_state_2_0(9)decode_slab_depot_state_2_0(9)vdo_configure_slab_depot(9)vdo_configure_slab(9)vdo_decode_slab_journal_entry(9)allocate_partition(9)make_partition(9)vdo_initialize_layout(9)vdo_uninitialize_layout(9)vdo_get_partition(9)vdo_get_known_partition(9)pack_vdo_config(9)pack_vdo_component(9)unpack_vdo_config(9)unpack_vdo_component_41_0(9)decode_vdo_component(9)vdo_validate_config(9)vdo_destroy_component_states(9)decode_components(9)vdo_decode_component_states(9)vdo_validate_component_states(9)vdo_encode_component_states(9)vdo_encode_super_block(9)vdo_decode_super_block(9)vdo_initialize_component_states(9)vdo_compute_index_blocks(9)vdo_initialize_volume_geometry(9)
Mwah π that's the page! Sending you off with love from ./drivers/md/dm-vdo, dated October 2026, from your fave vdo_compute_...forest_pages(9) girlie. Go grow that forest, bestie ππ²π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms