layout_in_gaps(9)
π layout_in_gaps β Kernel API Manual π
okay so this is the layout_in_gaps(9) page from the Kernel API Manual, and bestie, it is very much giving βniche kernel function with main character energy.β Letβs get into it fr fr π
πΈ NAME πΈ
layout_in_gaps β the in-the-gaps method of committing TNC, periodt.
β¨ SYNOPSIS β¨
int layout_in_gaps (struct ubifs_info *c , int cnt );
π ARGUMENTS π
cβ the UBIFS file-system description object, iconic as always.cntβ number of dirty znodes to commit. no cap, thatβs the count.
π¦ DESCRIPTION π¦
okay so this function lays out new index nodes for dirty znodes using the in-the-gaps method of TNC commit. literally what it says on the tin, and the tin is very kernel-core π
This function returns 0 on success and a negative error code on failure. the way that success is 0 and failure is a negative error code is very βiykykβ energy πβ¨
π SEE ALSO π
Kernel file: ./fs/ubifs/tnc_commit.c
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_empty_space(9)layout_commit(9)find_first_dirty(9)find_next_dirty(9)get_znodes_to_commit(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)
β source/version ./fs/ubifs, dated October 2026; slay and goodbye bestie πβ¨
π¦ 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