gfs2_hole_size(9)
π gfs2_hole_size(9) π
okay so bestie, welcome to the Kernel API Manual entry for gfs2_hole_size(9) β yes, the title is giving βhole sizeβ and the energy is giving βletβs read the whole thing together.β No cap, every deet stays. π«Ά
β¨ NAME β¨
gfs2_hole_size β figure out the size of a hole. Literally thatβs the mission, and the name ate. π
πΈ SYNOPSIS πΈ
int gfs2_hole_size (struct inode *inode , sector_t lblock , u64 len ,
struct metapath *mp , struct iomap *iomap );
π ARGUMENTS π
inodeβ the inode. Thatβs it, thatβs the whole note, and yes itβs important. πlblockβ the logical starting block number. Logical! Starting! Block number! Obsessed with specificity. β¨lenβ how far to look, in blocks. Not bytes, bestie β blocks. π§mpβ the metapath atlblock. Keep your eyes on this one, because DESCRIPTION is about to call it out. πiomapβ theiomapto store the hole size in. Thatβs its job, no extra lore. π
π¦ DESCRIPTION π¦
This function modifies mp. Thatβs the whole vibe. Like, not a subtle little βmaybe it touches mpβ situation β it modifies mp, periodt. π So if you were expecting mp to stay exactly the same, this is your dramatic heads-up, bestie. π¨
π RETURN π
errno on error. No cap, thatβs the return story β errors come back as errno. π
π SEE ALSO π
Kernel file: ./fs/gfs2/bmap.c
The whole see-also group chat is:
gfs2_unstuffer_folio(9)gfs2_unstuff_dinode(9)find_metapath(9)metaptr1(9)metapointer(9)lookup_metapath(9)fillup_metapath(9)gfs2_extent_length(9)__gfs2_iomap_alloc(9)gfs2_alloc_size(9)__gfs2_iomap_get(9)gfs2_block_map(9)gfs2_journaled_truncate(9)sweep_bh_for_rgrps(9)find_nonnull_ptr(9)punch_hole(9)do_shrink(9)do_grow(9)gfs2_setattr_size(9)gfs2_free_journal_extents(9)gfs2_add_jextent(9)gfs2_map_journal_extents(9)gfs2_write_alloc_required(9)
mwah π this page is from ./fs/gfs2, dated October 2026, and itβs literally the gfs2_hole_size(9) entry in the Kernel API Manual π«Άβ¨
π¦ 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