leaf_dealloc(9)
π NAME π
okay so bestie, this page is leaf_dealloc(9) from the Kernel API Manual, and the name is literally Deallocate a directory leaf. That's the whole vibe. β¨
β¨ SYNOPSIS β¨
Here's the exact signature, no cap:
int leaf_dealloc (struct gfs2_inode *dip , u32 index , u32 len , u64
leaf_no , struct buffer_head *leaf_bh , int last_dealloc );
π«Ά ARGUMENTS π«Ά
dipβ the directory. Like, the actual directory we're dealing with, periodt.indexβ the hash table offset in the directory. That's the spot.lenβ the number of pointers to this leaf.leaf_noβ the leaf number.leaf_bhβbuffer_headfor the starting leaf.last_deallocβ literally1if this is the final dealloc for the leaf, else0. iykyk. π«Ά
π₯ RETURN π₯
It returns errno. That's the return value, bestie β no extra lore. π
π SEE ALSO π
Kernel file ./fs/gfs2/dir.c is the spot, and then there's this whole friend group: gfs2_dir_write_data(9), gfs2_dir_read_data(9), gfs2_dir_get_hash_table(9), gfs2_dir_hash_inval(9), dirent_next(9), dirent_del(9), get_leaf_nr(9), dir_make_exhash(9), dir_split_leaf(9), dir_double_exhash(9), compare_dents(9), do_filldir_main(9), gfs2_dir_readahead(9), dir_e_read(9), gfs2_dir_search(9), dir_new_leaf(9), gfs2_dir_add(9), gfs2_dir_del(9), gfs2_dir_mvino(9), gfs2_dir_exhash_dealloc(9), and gfs2_diradd_alloc_required(9). Obsessed with this cross-referencing moment. π¦
That's the tea from ./fs/gfs2, dated October 2026, on page leaf_dealloc(9) β mwah πβ¨
π¦ 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