nilfs_find_...itted_extent(9)
π 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 π«Ά
0otherwise π
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 π§
nilfs_forget_buffer(9)nilfs_copy_buffer(9)nilfs_folio_buffers_clean(9)nilfs_copy_folio(9)nilfs_copy_back_pages(9)nilfs_clear_dirty_pages(9)nilfs_clear_folio_dirty(9)
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
- 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