check_move_...table_folios(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… check_move_...table_folios(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual β€” this is the page for check_move_unevictable_folios, and tbh it's a little legend hiding in ./mm. let's get into it ✨


🌸 NAME 🌸

check_move_unevictable_folios β€” moves evictable folios over to the appropriate zone lru list, no cap 🫢


✨ SYNOPSIS ✨

void check_move_unevictable_folios (struct folio_batch *fbatch );

that's it. that's the whole signature. iconic behaviour honestly πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • fbatch β€” a batch of lru folios that need checking. that's the whole assignment bestie, it's just the pile of folios you're putting under the microscope πŸ”

πŸ¦‹ DESCRIPTION πŸ¦‹

so what does it do? it checks your folios for evictability β€” like a little vibe check but for memory pages πŸ’…

if an evictable folio is sitting in the unevictable lru list (rude of it, honestly, wrong list, wrong energy), this function moves it to the appropriate evictable lru list where it actually belongs. slay. problem solved. ✨

⚠️ important bestie: this function should be only used for lru folios. that's the rule. don't be out here using it on random folios, it's giving chaos and we don't want that 😭

🌈 SEE ALSO 🌈

go read those next, iykyk πŸ“šπŸ’œ


and that's the page!! mwah πŸ’‹ this lil cutie lives in ./mm, dated October 2026, and it's filed under check_move_...table_folios(9) β€” go off, kernel bestie πŸ§šβ€β™€οΈπŸŒΈ

πŸ“¦ where this page comes from