find_dirty_idx_leb(9)
β¨ find_dirty_idx_leb(9) β¨
okay so bestie, welcome to the Kernel API Manual π this one's a lil function page, and honestly? it's giving "small but mighty." let's get into it π«Ά
πΈ NAME πΈ
find_dirty_idx_leb β literally just: find a dirty index LEB. that's the whole assignment, no cap π
β¨ SYNOPSIS β¨
int find_dirty_idx_leb (struct ubifs_info *c );
yes the spacing is a lil quirky, that's how it's written, we don't touch it π
π¦ ARGUMENTS π¦
cβ the UBIFS file-system description object. it's the main character of this whole situation ngl π
π DESCRIPTION π
so here's the tea β this function returns the LEB number when it succeeds, and a negative error code when it fails. like, that's the whole vibe check: number = slay, negative = not slay π
specifically β and this is important β -ENOSPC comes back if a dirty index LEB is not found. so if you see -ENOSPC, it's not a bug, it's just "girl, there isn't one" π
β οΈ fair warning bestie: this function scans the entire LPT. the whole thing. every last bit of it. but don't stress β it's called very rarely, so it's more of a special-occasion kinda function, not an everyday one π
π SEE ALSO π
all the friends in the group chat, fr fr β these all live in the kernel file ./fs/ubifs/find.c:
struct scan_data(9)valuable(9)scan_for_dirty_cb(9)scan_for_dirty(9)ubifs_find_dirty_leb(9)scan_for_free_cb(9)do_find_free_space(9)ubifs_find_free_space(9)scan_for_idx_cb(9)scan_for_leb_for_idx(9)ubifs_find_free_leb_for_idx(9)ubifs_save_dirty_idx_lnums(9)scan_dirty_idx_cb(9)get_idx_gc_leb(9)find_dirtiest_idx_leb(9)ubifs_find_dirty_idx_leb(9)
like yes that's a lot of cross-references, but they're all iconic in their own way π§ββοΈ
and that's the page!! tysm for reading bestie, mwah π this lil gem comes to you from ./fs/ubifs, dated October 2026 β put it in your calendar, it's a whole era β byeee π¦
π¦ 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