gfs2_dir_hash_inval(9)
okay so bestie, welcome to the Kernel API Manual β¨ today's main character is gfs2_dir_hash_inval(9), and she's short but she has rules. π
β¨ NAME β¨
gfs2_dir_hash_inval - Invalidate dir hash
πΈ SYNOPSIS πΈ
void gfs2_dir_hash_inval (struct gfs2_inode *ip );
π ARGUMENTS π
ipβ the directory inode. that's the one this whole little function is about, bestie. π«Ά
π¦ DESCRIPTION π¦
okay so this is a tiny function but the rule is very real: Must be called with an exclusive glock, or during glock invalidation. no cap, that's the whole vibe check. π₯
technical bestie warning: don't just call this however you want β it needs an exclusive glock, or it needs to be happening during glock invalidation. periodt. π
π SEE ALSO π
the whole friend group, iykyk:
- Kernel file
./fs/gfs2/dir.cβ the home base for this whole squad π‘ gfs2_dir_write_data(9)gfs2_dir_read_data(9)gfs2_dir_get_hash_table(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)leaf_dealloc(9)gfs2_dir_exhash_dealloc(9)gfs2_diradd_alloc_required(9)
that's the whole page, bestie β footer says sourced from ./fs/gfs2, dated October 2026, and yes she's still gfs2_dir_hash_inval(9) from the Kernel API Manual. 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