folio_putback_lru(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ folio_putback_lru(9) ✨

okay bestie, welcome to the Kernel API Manual πŸŽ€ β€” this is the folio_putback_lru page and it's literally the "oops put it back" of the memory-management world. no cap.


πŸ’– NAME πŸ’–

folio_putback_lru β€” put a previously isolated folio back onto the appropriate LRU list. it's giving "return to sender, but make it kernel" πŸ¦‹


🌸 SYNOPSIS 🌸

void folio_putback_lru (struct folio *folio );

that's it. that's the whole signature. no return value, no drama, no hidden parameters. slay πŸ’…


⭐ ARGUMENTS ⭐

  • folio β€” the folio that's getting returned to an LRU list. that's your main character right there πŸ‘‘

🌈 DESCRIPTION 🌈

so here's the vibe: you take a folio that was previously isolated and you add it to the appropriate LRU list. that's the whole job. iconic, low-effort, high-impact 🫢

and like β€” big caveat incoming β€” the folio may still be unevictable for other reasons. so don't go thinking this magically makes it reclaimable, bestie, because it does not πŸ’€ it just goes back on the list. folio_putback_lru does not read the room on your behalf.


🧚 CONTEXT 🧚

listen closely, this part is non-negotiable:

  • lru_lock must not be held πŸ”’πŸš«
  • interrupts must be enabled βš‘βœ…

get either of those wrong and, like, don't. just don't πŸ™ˆ


πŸ¦‹ SEE ALSO πŸ¦‹

go read folio_isolate_lru(9) next, it's the prequel 😭πŸ”₯


fr fr: this page lives in ./mm, it's the October 2026 edition, and it's folio_putback_lru(9) all the way down. now go put that folio back where it belongs πŸ’œπŸŽ€
πŸ“¦ where this page comes from