folio_invalidate(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so bestie, welcome to the folio_invalidate(9) page from the Kernel API Manual β€” and the name is literally folio_invalidate β€” Invalidate part or all of a folio. That's the whole vibe: part of a folio, or all of it, gets invalidated. slay. ✨


✨ SYNOPSIS ✨

Here's the signature, no cap β€” copy it exactly:

void folio_invalidate (struct folio *folio , size_t offset , size_t
       length );

πŸŽ€ ARGUMENTS πŸŽ€

Three arguments, bestie β€” let's do the vibe check:

  • folio β€” The folio which is affected.
  • offset β€” start of the range to invalidate
  • length β€” length of the range to invalidate

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's when this icon gets called: folio_invalidate is called when all or part of the folio has become invalidated by a truncate operation. 🫢

Now the important part β€” folio_invalidate does not have to release all buffers, but it must ensure that no dirty buffer is left outside offset and that no I/O is underway against any of the blocks which are outside the truncation point. That's literally non-negotiable, because the caller is about to free (and possibly reuse) those blocks on-disk. πŸ˜­πŸ’…


🌈 SEE ALSO 🌈

Go read these next, iykyk β€” same order, bestie:


xoxo πŸ’‹ this page came from ./mm and is dated October 2026 β€” you just got the whole folio_invalidate(9) moment, mwah! πŸŽ€βœ¨

πŸ“¦ where this page comes from