netfs_singl..._inode_dirty(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ netfs_single_mark_inode_dirty(9) ✨

okay so bestie, welcome to the Kernel API Manual πŸ’… this one's a lil function from the netfs world, and honestly? she's short, she's sweet, she does exactly one thing and she does it slayfully. let's get into it πŸŽ€


🌸 NAME 🌸

netfs_single_mark_inode_dirty β€” marks a single, monolithic object inode as dirty πŸ”₯

no cap, that's the whole vibe. one inode, one monolithic object, one little dirty flag. iconic.


πŸ¦‹ SYNOPSIS πŸ¦‹

void netfs_single_mark_inode_dirty (struct inode *inode );

that's it. that's the signature. returns void, takes one pointer, zero drama πŸ™ˆ


πŸ“ ARGUMENTS πŸ“

  • inode β€” the inode you're marking, bestie. the one. the main character πŸ‘‘

πŸ’– DESCRIPTION πŸ’–

so here's the tea β˜• β€” you call this bad girl on an inode that contains a single, monolithic object, and she marks it as dirty so that its writepages op will get called. that's the whole point. that's her job. she ate and left no crumbs πŸ’…

and listen, there's this flag called SINGLE_NO_UPLOAD β€” if it's set, it means the object is only gonna be written to the cache and not uploaded anywhere. the manpage literally gives you the example: AFS directory contents πŸ“βœ¨ so like, cache-only behaviour, no shipping it off to the server, iykyk.

fr fr, don't forget: the flag has to be set for that cache-only behaviour to kick in. if it's not set, that's a whole different story and we're not telling it here 🫢

🌈 SEE ALSO 🌈

  • Kernel file ./fs/netfs/read_single.c πŸ“„
  • netfs_read_single(9) πŸ‘€ β€” go read the sibling page, she's also great

and that's the whole page, bestie!! πŸ§šπŸ’œ huge shoutout to the source tree ./fs/netfs and the date stamp October 2026 β€” that's where this lil beauty lives, mwah πŸ’‹β­

πŸ“¦ where this page comes from