netfs_release_folio(9)
β¨ netfs_release_folio β¨
okay so bestie, welcome to the netfs_release_folio(9) page from the Kernel API Manual π
this one's short and sweet and honestly kinda iconic for it.
πΈ NAME πΈ
netfs_release_folio β the "can we please let this folio go" check π
π¦ SYNOPSIS π¦
bool netfs_release_folio (struct folio *folio , gfp_t gfp );
π ARGUMENTS π
folioβ the folio that's being proposed for release, aka the main character of this whole function πgfpβ the flags that qualify the release, iykyk π
β DESCRIPTION β
So what it does: it requests release of a folio and cleans up that folio's private state β but only if it's not busy. no cap, if it's busy, it just doesn't.
It returns true if the folio can now be released, and false if it can't. that's the whole vibe check π«Ά
π§ SEE ALSO π§
Kernel file ./fs/netfs/misc.c plus the whole friend group:
netfs_alloc_folioq_buffer(9)netfs_free_folioq_buffer(9)netfs_dirty_folio(9)netfs_unpin_writeback(9)netfs_clear_inode_writeback(9)netfs_invalidate_folio(9)netfs_clear_stale_isize(9)
aaaaand that's the page, bestie π it lives in ./fs/netfs, and this little cutie is dated October 2026 β shoutout to the Kernel API Manual for keeping the receipts, mwah ππ
π¦ 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