nilfs_dirty_inode(9)
β¨ nilfs_dirty_inode π
okay so real talk, this is a page from the Kernel API Manual β section 9, kernel developer land π§ β and it's all about nilfs_dirty_inode(9). yes bestie, the whole page is literally named after the function. iconic behavior honestly π
πΈ NAME πΈ
nilfs_dirty_inode β the girl whose entire job is reflecting changes on a given inode over into an inode block β¨
π SYNOPSIS π
void nilfs_dirty_inode (struct inode *inode , int flags );
that's it. that's the whole signature. no return value, she's a void, she doesn't need to report back π
π¦ ARGUMENTS π¦
inodeβ the inode of the file that's getting registered. this is the main character of the operation πflagsβ the flags that determine the dirty state of the inode. like, what kind of dirty are we talking about here π
π₯ DESCRIPTION π₯
so what does she actually do? okay so nilfs_dirty_inode loads up an inode block that contains the specified inode, and then copies data from a nilfs_inode into the corresponding inode entry inside that inode block. that's the whole glow-up: the in-memory vibes get written into the on-disk-looking entry, no cap π
here's the important caveat though, do not skip this: this operation is excluded from the segment construction. like, she's not part of that process, periodt. keep that straight or you will have a bad time π
the good news is she's flexible β this function can be called both as a single standalone operation and as a part of indivisible file operations. so whether she's solo or in a group chat, she shows up and does her thing π«Ά
β SEE ALSO β
go read these next, bestie, they're all in the kernel file ./fs/nilfs2/inode.c and they're all absolutely part of the same friend group:
struct nilfs_iget_args(9)nilfs_get_block(9)nilfs_read_folio(9)nilfs_attach_btree_node_cache(9)nilfs_detach_btree_node_cache(9)nilfs_iget_for_shadow(9)nilfs_write_inode_common(9)
okay that's the whole page, you ate that π this lil slice of kernel lore comes from ./fs/nilfs2 and it's dated October 2026 β so yeah, she's from the future, we love a time traveler πβ mwah, go read nilfs_get_block(9) next, iykyk π
π¦ 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