ubifs_add_dirt(9)
π¦ ubifs_add_dirt(9) β the Kernel API Manual bestie π
okay so real talk, this is a page from the Kernel API Manual, and it's about ubifs_add_dirt(9) β yes the manual name has a (9) in it, that's just how kernel docs roll, iykyk β¨
β¨ NAME β¨
ubifs_add_dirt β adds dirty space to LEB properties, that's literally the whole vibe π
πΈ SYNOPSIS πΈ
int ubifs_add_dirt (struct ubifs_info *c , int lnum , int dirty );
like, that's the whole signature, she's short and she knows it π
π ARGUMENTS π
cβ the UBIFS file-system description object, aka the main character of this whole operation π«Άlnumβ the LEB you're adding dirty space for, like which one, be specific bestie πdirtyβ the dirty space to add, the actual amount, the number, the whole point π
π₯ DESCRIPTION π₯
so this is a helper function, right? and what she does is she increases the amount of dirty LEB space. that's it. that's the job. no cap β¨
she returns zero in case of success β slay, zero is good here, don't panic π β and a negative error code in case of failure, which is your cue to go "hmm" and check your life choices π
ngl, "zero means success" trips people up every single time, so likeβ¦ remember it π
π SEE ALSO π
kernel file ./fs/ubifs/misc.h β go read it, it's giving source of truth π
and the whole friend group of related functions, all present and accounted for:
ubifs_zn_dirty(9)ubifs_zn_obsolete(9)ubifs_zn_cow(9)ubifs_wake_up_bgt(9)ubifs_tnc_find_child(9)ubifs_inode(9)ubifs_compr_present(9)ubifs_compr_name(9)ubifs_wbuf_sync(9)ubifs_encode_dev(9)ubifs_return_leb(9)ubifs_idx_node_sz(9)ubifs_idx_branch(9)ubifs_idx_key(9)ubifs_tnc_lookup(9)ubifs_get_lprops(9)ubifs_release_lprops(9)ubifs_next_log_lnum(9)
like, the whole squad fr fr π§ββοΈ
and that's the page, bestie!! no thoughts, just dirty LEB space π
this little gem lives over in ./fs/ubifs (that's the source, periodt), dated October 2026, and she answers to the name ubifs_add_dirt(9) β remember it, cite it, put it on a sticker πβπ
π¦ 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