ubifs_update_one_lp(9)
π ubifs_update_one_lp β like, the LEB properties glow-up edition
ok so this is ubifs_update_one_lp(9) from the Kernel API Manual, and honestly? it's giving "small function, big responsibilities." let's get into it π«Ά
β¨ NAME β¨
ubifs_update_one_lp β update LEB properties. that's it, that's the whole vibe. one LEB, one little properties refresh, no cap π
πΈ SYNOPSIS πΈ
int ubifs_update_one_lp (struct ubifs_info *c , int lnum , int free ,
int dirty , int flags_set , int flags_clean );
like, six args, one int coming back at you. she's return-typed and ready π
π ARGUMENTS π
cβ the UBIFS file-system description object. your main character struct, fr fr πlnumβ the LEB whose properties we're changing. that's the LEB. the one. π¦freeβ amount of free space.dirtyβ amount of dirty space to add. note the word add, bestie, this is important, it comes back later πflags_setβ flags to set.flags_cleanβ flags to clean.
β DESCRIPTION β
okay so here's the tea: this function is literally the same as ubifs_change_one_lp, with exactly one (1) iconic difference β dirty is added to the current dirty space, not substitutes it. she accumulates. she builds. she does not overwrite πβ¨
no additional lore, that's genuinely the whole thing, and honestly? slay for her. short and specific π
π SEE ALSO π
the whole friend group, in the order they appear, because i would never do my girls dirty:
get_heap_comp_val(9)move_up_lpt_heap(9)adjust_lpt_heap(9)add_to_lpt_heap(9)remove_from_lpt_heap(9)lpt_heap_replace(9)ubifs_add_to_cat(9)ubifs_remove_from_cat(9)ubifs_replace_cat(9)ubifs_ensure_cat(9)ubifs_categorize_lprops(9)change_category(9)ubifs_calc_dark(9)is_lprops_dirty(9)ubifs_change_lp(9)ubifs_get_lp_stats(9)ubifs_change_one_lp(9)ubifs_read_one_lp(9)ubifs_fast_find_free(9)ubifs_fast_find_empty(9)ubifs_fast_find_freeable(9)ubifs_fast_find_frdi_idx(9)dbg_check_cats(9)scan_check_cb(9)dbg_check_lprops(9)
and they all live in the kernel file ./fs/ubifs/lprops.c β go say hi π§
π real talk reminder: dirty here gets added to the current dirty space. if you were expecting it to replace the value, that is literally the other function. keep your dirty space math correct, i'm begging π
ok bestie that's the page!! this one shipped out of ./fs/ubifs, dated October 2026, and the page signature is ubifs_update_one_lp(9) β go update some LEB properties, you absolute icon πππ¦πΈπ
π¦ 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