gfs2_extent_length(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 in
  • ptr β€” the current position in bh πŸ“ like, where are we right now
  • eob β€” gets set to 1 if 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 πŸ’–:


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