add_slab_journal_entries(9)
π add_slab_journal_entries β Kernel API Manual β¨
okay so bestie, welcome to the Kernel API Manual, and today's main character is add_slab_journal_entries(9). she's a function in the kernel, she's doing recovery work, and she's lowkey iconic π«Ά
πΈ NAME πΈ
add_slab_journal_entries β replay recovery journal entries into the slab journals of the allocator currently being recovered. that's it, that's the whole vibe β¨
π¦ SYNOPSIS π¦
void add_slab_journal_entries (struct vdo_completion *completion );
literally one argument, returns void, no cap π
π ARGUMENTS π
completionβ the allocator completion. that's the thing being handed in, and yes she's the star of the show π
β DESCRIPTION β
so here's the tea β β this function waits for slab journal tailblock space when necessary. like, if there's no room, she just waits it out, patient queen energy π§
and the iconic part? this method is its own callback. she calls herself back. main character energy fr fr, no middleman, she handles her own business π₯
π SEE ALSO π
bestie there are SO many siblings, buckle up, i'm listing every single one because we don't do gatekeeping here π
as_repair_completion(9)abort_repair(9)abort_on_error(9)drain_slab_depot(9)flush_block_map_updates(9)handle_page_load_error(9)unmap_entry(9)remove_out_of_bounds_entries(9)process_slot(9)rebuild_reference_counts_from_page(9)page_loaded(9)fetch_page(9)rebuild_from_leaves(9)process_entry(9)advance_points(9)before_recovery_point(9)get_entry(9)validate_recovery_journal_entry(9)vdo_replay_into_slab_journals(9)find_entry_starting_next_page(9)get_recovery_journal_block_header(9)is_valid_recovery_journal_block(9)is_exact_recovery_journal_block(9)find_recovery_journal_head_and_tail(9)unpack_entry(9)append_sector_entries(9)extract_new_mappings(9)compute_usages(9)vdo_repair(9)
and if you wanna read the actual source, it lives in the kernel file ./drivers/md/dm-vdo/repair.c β go peek, she's right there π
π the cute little sign-off π
so yeah, this whole page is brought to you by the fine folks over in ./drivers/md/dm-vdo, dated October 2026 π that's the source, that's the version, that's the date, we stan a documented function. mwah πβ¨
π¦ 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