netfs_dirty_folio(9)
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:
netfs_alloc_folioq_buffer(9)netfs_free_folioq_buffer(9)netfs_unpin_writeback(9)netfs_clear_inode_writeback(9)netfs_invalidate_folio(9)netfs_release_folio(9)netfs_clear_stale_isize(9)
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
- 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