make_tree_dirty(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 πŸ‘‘

that's the whole squad. iykyk 🧚


ngl the fact that there's a need_write_all(9) and a make_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