gfs2_extent_length(9)
π gfs2_extent_length(9) β it's in the Kernel API Manual, bestie β¨
Okay so picture this: you're deep in the GFS2 source, you open ./fs/gfs2/bmap.c, and you meet gfs2_extent_length β the little function that could π«Ά. Her whole job? She hands you back the length of an extent of blocks. That's it, that's the vibe. Iconic, lowkey essential, no cap.
β¨ NAME β¨
gfs2_extent_length β returns length of an extent of blocks πΈ
π SYNOPSIS π
unsigned int gfs2_extent_length (struct buffer_head *bh , __be64 *ptr ,
int *eob );
π¦ ARGUMENTS π¦
bhβ the metadata block π§ literally the block we're poking around inptrβ the current position inbhπ like, where are we right noweobβ gets set to1if we hit "end of block" π yeah, that kind of end-of-block
π RETURN π
The length of the extent β and the minimum is one block β so you're never getting zero back, periodt.
π SEE ALSO π
Kernel file ./fs/gfs2/bmap.c, plus 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_hole_size(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)
Go read the whole squad, bestie β they all live together in ./fs/gfs2/bmap.c and honestly the group chat is popping π
π That's the page! Shoutout to the ./fs/gfs2 directory for hosting, the October 2026 date for keeping it fresh, and gfs2_extent_length(9) herself for being the main character of this manual πΈβ¨ mwah, bye! π
π¦ 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