mapping_evict_folio(9)
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 π¦
- Kernel file
./mm/truncate.c folio_invalidate(9)truncate_inode_pages_range(9)truncate_inode_pages(9)truncate_inode_pages_final(9)mapping_try_invalidate(9)invalidate_mapping_pages(9)invalidate_inode_pages2_range(9)invalidate_inode_pages2(9)truncate_pagecache(9)truncate_setsize(9)pagecache_isize_extended(9)truncate_pagecache_range(9)
later, bestie π source/version: ./mm; date: October 2026; page: mapping_evict_folio(9) β 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