filemap_remove_folio(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

Okay so bestie, meet filemap_remove_folio from the Kernel API Manual β€” the function whose whole job is to Remove folio from page cache. periodt. πŸ‘‘


✨ SYNOPSIS ✨

void filemap_remove_folio (struct folio *folio );

πŸŽ€ ARGUMENTS πŸŽ€

  • folio β€” the folio. literally the folio, that's the whole vibe. πŸ¦‹

🌸 DESCRIPTION 🌸

So here's the tea: this must be called only on folios that are locked and have been verified to be in the page cache. No cap. πŸ”₯

And important: it will never put the folio into the free list, because the caller has a reference on the page. That's the whole reason, iykyk. πŸ’…


πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./mm/filemap.c plus these iconic functions:


And that's the whole page, bestie πŸ’– β€” source is ./mm, the date is October 2026, and the header vibes are filemap_remove_folio(9). Stay locked and loaded, mwah 🫢✨

πŸ“¦ where this page comes from