folio_wait_stable(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay so welcome to the Kernel API Manual, bestie πŸ’– β€” the function is folio_wait_stable, and its whole job is: wait for writeback to finish, if necessary.

🌸 SYNOPSIS 🌸

void folio_wait_stable (struct folio *folio );

πŸŽ€ ARGUMENTS πŸŽ€

  • folio β€” the folio to wait on. That's it, that's the argument 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

folio_wait_stable determines if the given folio is related to a backing device that requires folio contents to be held stable during writeback. If so, then it will wait for any pending writeback to complete. it's giving "hold still, we're not done yet" energy πŸ’…

πŸ”₯ CONTEXT πŸ”₯

  • Sleeps. 😴 literally catches Zs.
  • Must be called in process context and with no spinlocks held. no cap.
  • Caller should hold a reference on the folio.
  • If the folio is not locked, writeback may start again after writeback has finished. heads up bestie πŸ‘€

πŸ’œ SEE ALSO πŸ’œ

Kernel file ./mm/page-writeback.c β€” and this function's whole friend group is:


and that's the tea πŸ“ cute sign-off: source/version ./mm, date October 2026, title folio_wait_stable(9) β€” mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from