netfs_dirty_folio(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, this is the Kernel API Manual page for netfs_dirty_folio(9), and it's giving tiny-but-important writeback energy. πŸ’…


✨ NAME ✨

netfs_dirty_folio β€” Mark folio dirty and pin a cache object for writeback. That's the whole assignment, no cap. 🫢


🌸 SYNOPSIS 🌸

bool netfs_dirty_folio (struct address_space *mapping , struct folio *folio );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • mapping β€” the mapping the folio belongs to. Like, the folio's home base. 🏑
  • folio β€” the folio being dirtied. Yes, we're making it dirty in the kernel sense, bestie 😭

πŸ’– DESCRIPTION πŸ’–

So the move here is: Set the dirty flag on a folio and pin an in-use cache object in memory so that writeback can later write to it. It's literally a little β€œhey, this one has changes” moment, plus keeping the cache object pinned so writeback can do its thing later. πŸ”₯

This is intended to be called from the filesystem's ->dirty_folio method. That's the plug-in point, iykyk. ⭐


πŸ‘‘ RETURN πŸ‘‘

true if the dirty flag was set on the folio, false otherwise. No mystery, no vibe check needed. πŸ’€


🌈 SEE ALSO 🌈

Kernel file ./fs/netfs/misc.c plus these very iconic friends:


okay bye bestie πŸ’… β€” this one's signed off from ./fs/netfs, dated October 2026, and it belongs to the netfs_dirty_folio(9) manual era. πŸ«ΆπŸ’–

πŸ“¦ where this page comes from