ubifs_return_leb(9)
πΈ ubifs_return_leb β bestie, it's time to give that LEB back π
okay so picture this: this is a Kernel API Manual page for ubifs_return_leb, out of the UBIFS crowd in ./fs/ubifs, and honestly? she's a tiny little helper with one job and she does it flawlessly. π¦
β¨ NAME β¨
ubifs_return_leb β return LEB to lprops. that's it. that's the whole vibe. π
π SYNOPSIS π
int ubifs_return_leb (struct ubifs_info *c , int lnum );
like, look at her. two args, one int coming back at you. lowkey iconic. β¨
π«Ά ARGUMENTS π«Ά
cβ the UBIFS file-system description object. yes bestie, the whole file-system said "hi" π₯°lnumβ the LEB to return. this is the eraseblock that's packing its bags and heading home π§
π₯ DESCRIPTION π₯
so what does she actually do? this helper function cleans the "taken" flag of a logical eraseblock in the lprops. the flag was doing its little "reserved β" moment, and she's the one who's like "okay king, you can go now, we're done." π
returns zero in case of success and a negative error code in case of failure. so if you get 0, celebrate π, and if you get anything negative, that's your sign to go look at what went wrong. no cap. π
π SEE ALSO π
Kernel file ./fs/ubifs/misc.h β and honestly, the whole friend group is tagged in this one:
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_add_dirt(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)
iykyk. go read all of them, bestie, they're literally all right there in the same house. π π
π friendly reminder that this whole page lives under./fs/ubifs, dated October 2026, and the manual isubifs_return_leb(9)β so, like, screenshot-worthy. periodt. π β¨πΈ
π¦ 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