leaf_dealloc(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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_head for the starting leaf.
  • last_dealloc β€” literally 1 if this is the final dealloc for the leaf, else 0. 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