mapping_evict_folio(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

mapping_evict_folio(9)

okay so bestie, welcome to the Kernel API Manual entry for mapping_evict_folio(9) β€” this one is lowkey iconic because it’s all about safely yeeting an unused folio out of the page-cache πŸ’…βœ¨


πŸ’– NAME πŸ’–

mapping_evict_folio β€” Remove an unused folio from the page-cache. no cap, that’s the whole vibe πŸŽ€


✨ SYNOPSIS ✨

long mapping_evict_folio (struct address_space *mapping , struct folio
       *folio );

🫢 ARGUMENTS 🫢

  • mapping β€” The mapping this folio belongs to. like, its page-cache home address 🏠
  • folio β€” The folio to remove. yes bestie, this is the one getting evicted πŸ™ˆ

🌸 DESCRIPTION 🌸

Safely remove one folio from the page cache. It only drops clean, unused folios β€” so it’s giving careful queen, not chaotic delete energy πŸ§šπŸ’–


πŸ”’ CONTEXT πŸ”’

Folio must be locked. bestie, this is not optional β€” lock it first or do not come crying to me πŸ˜­πŸ”

πŸŽ€ RETURN πŸŽ€

The number of pages successfully removed. that’s the receipt, periodt πŸ’…πŸ§Ύ


πŸ¦‹ SEE ALSO πŸ¦‹


later, bestie πŸ’– source/version: ./mm; date: October 2026; page: mapping_evict_folio(9) β€” mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from