swap_update_readahead(9)
β¨ NAME β¨
okay so welcome to the Kernel API Manual page for swap_update_readahead(9), bestie! Here's the actual lore: swap_update_readahead β update the readahead statistics of VMA or globally. That's the whole vibe. π¦
π«Ά SYNOPSIS π«Ά
The signature is literally this, character for character:
void swap_update_readahead (struct folio *folio , struct vm_area_struct *vma , unsigned long addr );
π ARGUMENTS π
folioβ the swap cache folio that just got hit. Like, this is the folio that just scored the hit, main character energy. β¨vmaβ the VMA that should be updated. It can beNULLfor a global update, so if it's null it's giving global, not broken. πaddrβ the addr that triggered the swapin. IfvmaisNULL, this one is ignored entirely. π
π SEE ALSO π
The cross-refs are living in Kernel file ./mm/swap_state.c, and here is every single one, no cap:
swap_cache_get_folio(9)swap_cache_has_folio(9)swap_cache_get_shadow(9)__swap_cache_add_check(9)__swap_cache_add_folio(9)__swap_cache_del_folio(9)swap_cache_del_folio(9)__swap_cache_replace_folio(9)swap_cache_alloc_folio(9)swapin_sync(9)swap_cluster_readahead(9)swap_vma_readahead(9)swapin_readahead(9)
that's the whole page, bestie π«Ά β source/version: ./mm, date: October 2026. 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