get_znodes_to_commit(9)
π get_znodes_to_commit(9) β like, the Kernel API Manual bestie edition β¨
okay so this is a page from the Kernel API Manual, and we're talking about a little function that lives its best life in the UBIFS tree π³π
πΈ NAME πΈ
get_znodes_to_commit β literally makes a list of the dirty znodes that need to commit, no cap π
β¨ SYNOPSIS β¨
int get_znodes_to_commit (struct ubifs_info *c );
π ARGUMENTS π
cβ the UBIFS file-system description object, aka the main character of this whole situation π«Ά
π¦ DESCRIPTION π¦
so the way this works is: this function returns the number of znodes to commit. that's it, that's the whole vibe check β¨π’
like, you hand it the file-system description object and it comes back at you with a count. iconic behaviour honestly π
β SEE ALSO β
bestie you are NOT ready for this friend group, it's giving whole-tnc_commit.c-reunion ππ the kernel file is ./fs/ubifs/tnc_commit.c and here's everybody who shows up to the party:
make_idx_node(9)fill_gap(9)find_old_idx(9)is_idx_node_in_use(9)layout_leb_in_gaps(9)get_leb_cnt(9)layout_in_gaps(9)layout_in_empty_space(9)layout_commit(9)find_first_dirty(9)find_next_dirty(9)alloc_idx_lebs(9)free_unused_idx_lebs(9)free_idx_lebs(9)ubifs_tnc_start_commit(9)write_index(9)free_obsolete_znodes(9)return_gap_lebs(9)ubifs_tnc_end_commit(9)
mwah π that's the whole page, go forth and commit your znodes (the dirty ones specifically) ππ§
this came straight outta ./fs/ubifs, dated October 2026 β so like, future vibes only β³π slay π«Ά
π¦ 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