nilfs_find_...itted_extent(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… nilfs_find_uncommitted_extent(9) β€” like, the kernel API manual, bestie πŸŽ€

okay so this is a page from the Kernel API Manual and honestly? it's lowkey kind of a baddie. it's all about nilfs_find_uncommitted_extent, and we're gonna get into it. grab a strawberry πŸ“ and let's go.


✨ NAME ✨

nilfs_find_uncommitted_extent β€” find extent of uncommitted data 🌸

(it's giving "detective but make it filesystem" and i'm obsessed)


πŸ¦‹ SYNOPSIS πŸ¦‹

unsigned long nilfs_find_uncommitted_extent (struct inode *inode ,
sector_t start_blk , sector_t *blkoff );

yes bestie, that's the whole signature, copy it exactly, no cap. πŸ’…


πŸ‘‘ ARGUMENTS πŸ‘‘

  • inode β€” inode. that's it. that's the whole description. an inode. iconic minimalism honestly πŸ’€
  • start_blk β€” start block offset, and it's an in param (you're feeding it in, main character energy ⭐)
  • blkoff β€” start offset of the found extent, and this one's an out param (the function hands it back to you like a little gift 🎁)

πŸ”₯ DESCRIPTION πŸ”₯

okay so real talk: this function searches an extent of buffers that are marked "delayed" β€” and the extent it's looking for starts from a block offset that's equal to or larger than start_blk. fr fr, >= energy.

and if such an extent was found?? it will store the start offset in blkoff and return its length in blocks. the way that it just does that. 😭✨


🌈 RETURN 🌈

  • Length in blocks of found extent 🫢
  • 0 otherwise πŸ™ˆ

that's it. that's the return. short, sweet, to the point, we love a concise queen πŸ‘‘


πŸ’œ SEE ALSO πŸ’œ

Kernel file ./fs/nilfs2/page.c β€” go read the source bestie, it's right there, iykyk 🧚

like, the whole friend group is there. go say hi to all of them πŸ’–


🫢 quick vibe check reminder: when a param says (out) it means the function writes to it, so don't go passing garbage and then acting surprised. ngl that's on you bestie.

okay that's the page!! slay ✨ this little manual lives in ./fs/nilfs2 and it's dated October 2026, so like, future-core of it all πŸ¦‹πŸ’… mwah, bye!! πŸŽ€

πŸ“¦ where this page comes from