__gfs2_iomap_get(9)
Bestie, welcome to __gfs2_iomap_get(9) in the Kernel API Manual π This is the page about mapping blocks from an inode to disk blocks, and it is lowkey iconic. Letβs go β¨
πΈ NAME πΈ
__gfs2_iomap_get β Map blocks from an inode to disk blocks π
π SYNOPSIS π
Okay so the signature is right here, no cap:
int __gfs2_iomap_get (struct inode *inode , loff_t pos , loff_t length ,
unsigned flags , struct iomap *iomap , struct metapath *mp );
π¦ ARGUMENTS π¦
Hereβs the cast of characters, bestie:
inodeβ The inode πposβ Starting position in bytes πlengthβ Length to map, in bytes πflagsβ iomap flags π©iomapβ The iomap structure πΊοΈmpβ The metapath π§
π RETURN π
It returns errno. Thatβs the return vibe, periodt π
π₯ SEE ALSO π₯
Kernel file ./fs/gfs2/bmap.c has the whole friend group:
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_hole_size(9)__gfs2_iomap_alloc(9)gfs2_alloc_size(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)
Thatβs the whole page, bestie π«Ά Source/version ./fs/gfs2, date October 2026, title __gfs2_iomap_get(9) β slay and goodbye π
β¨
π¦ 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