make_tree_dirty(9)
π make_tree_dirty β Kernel API Manual, bestie edition
okay so real talk, this is a page from the Kernel API Manual (make_tree_dirty(9)) and it's honestly kinda iconic in a "quietly doing the most" way. Let me put you on. π«Ά
β¨ NAME β¨
make_tree_dirty β mark the entire LEB properties tree dirty.
likeβ¦ the whole tree. every last bit of it. no cap. π
π¦ SYNOPSIS π¦
int make_tree_dirty (struct ubifs_info *c );
π ARGUMENTS π
cβ the UBIFS file-system description object. that's it, that's the whole vibe check. one (1) argument, and it's the file-system description object. slay.
π DESCRIPTION π
so here's the tea: this function is used by the "small" LPT model, and what it does is cause the entire LEB properties tree to be written. like, the entire thing, all at once, out the door. π₯
now, the "small" LPT model does not use LPT garbage collection β and honestly? that's a flex. it's more efficient to just write the entire tree, because the tree is small. the way that little tree just gets fully written every time. iconic behavior, no notes. β¨
this function returns 0 on success and a negative error code on failure. so like, zero means we ate π
, negative means something went sideways π β but it's still useful because now you know.
πΈ SEE ALSO πΈ
okay bestie, buckle up, this list is a whole friend group. every single one of these is coming to the party:
Kernel file ./fs/ubifs/lpt_commit.c β the source file itself, the main character π
first_dirty_cnode(9)next_dirty_cnode(9)get_cnodes_to_commit(9)upd_ltab(9)alloc_lpt_leb(9)layout_cnodes(9)realloc_lpt_leb(9)write_cnodes(9)next_pnode_to_dirty(9)add_pnode_dirt(9)do_make_pnode_dirty(9)need_write_all(9)lpt_tgc_start(9)lpt_tgc_end(9)populate_lsave(9)nnode_lookup(9)make_nnode_dirty(9)make_pnode_dirty(9)make_ltab_dirty(9)make_lsave_dirty(9)make_node_dirty(9)get_lpt_node_len(9)get_pad_len(9)get_lpt_node_type(9)is_a_node(9)lpt_gc_lnum(9)lpt_gc(9)ubifs_lpt_start_commit(9)free_obsolete_cnodes(9)ubifs_lpt_end_commit(9)ubifs_lpt_post_commit(9)first_nnode(9)next_nnode(9)ubifs_lpt_free(9)dbg_is_all_ff(9)dbg_is_nnode_dirty(9)dbg_is_pnode_dirty(9)dbg_is_ltab_dirty(9)dbg_is_lsave_dirty(9)dbg_is_node_dirty(9)dbg_check_ltab_lnum(9)dbg_check_ltab(9)dbg_chk_lpt_free_spc(9)dbg_chk_lpt_sz(9)dump_lpt_leb(9)ubifs_dump_lpt_lebs(9)dbg_populate_lsave(9)
that's the whole squad. iykyk π§
ngl the fact that there's aneed_write_all(9)and amake_tree_dirty(9)hanging out in the same SEE ALSO list is giving "we've been trying to reach you about your tree's extended warranty" energy. anyway. π
and that's the page, bestie! it lives in ./fs/ubifs and the version/date stamp on it is October 2026 β so mark your calendar, it's giving future-forward icon behavior. go forth and dirty that tree ππ«
π¦ 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