deactivate_file_folio(9)
π deactivate_file_folio β Kernel API Manual, section 9
okay so bestie, welcome to deactivate_file_folio(9) β genuinely one of those tiny little functions that's just vibing in the kernel and doing exactly one (1) thing, and honestly? iconic behavior. β¨
πΈ NAME πΈ
deactivate_file_folio β literally just deactivates a file folio. that's the whole plot. no cap. π
β¨ SYNOPSIS β¨
void deactivate_file_folio (struct folio *folio );
like, that's it. she's short, she's sweet, she returns void because she's not about to give you extra drama. π
π¦ ARGUMENTS π¦
folioβ the folio you want to deactivate. that's the one. the main character. π«Ά
π₯ DESCRIPTION π₯
okay so here's the tea: this function hints to the VM that folio is a good reclaim candidate. highkey generous of it tbh. π
when would you even want that? the manpage gives the example: if its invalidation fails because the folio is dirty or under writeback. so like, the invalidation said "nope, can't right now" and you're basically going "cool cool cool, then the VM might as well consider her reclaimable." π
it's a hint, bestie β not a command. don't go treating it like a guarantee. π
π§ CONTEXT π§
the caller holds a reference on the folio. that's the vibe check for calling this β you gotta have that reference. no reference, no entry. periodt. β
π SEE ALSO π
- Kernel file
./mm/folio.c folio_mark_accessed(9)folio_add_lru(9)folio_add_lru_vma(9)folio_mark_lazyfree(9)lru_cache_drain_for_folio(9)folios_put_refs(9)release_pages(9)folio_batch_remove_exceptionals(9)
like, the whole folio friend group fr fr. go read the rest of them, iykyk π
and that's the page, bestie π β brought to you straight out of ./mm, dated October 2026, in the Kernel API Manual. slay, go forth and deactivate responsibly π
π¦
π¦ 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