folio_putback_hugetlb(9)
π folio_putback_hugetlb π
okay so bestie, welcome to the folio_putback_hugetlb(9) page β it's a kernel API manual moment and honestly it's giving "small function, big responsibility" β¨
πΈ NAME πΈ
folio_putback_hugetlb β unisolate a hugetlb folio π¦
like, it puts the folio back. that's the whole vibe. periodt.
β¨ SYNOPSIS β¨
void folio_putback_hugetlb (struct folio *folio );
literally that's it, no return value, no drama, just vibes and a pointer π
π ARGUMENTS π
folioβ the isolated hugetlb folio π that's the one you're putting back, the one that's currently in its isolated era
π₯ DESCRIPTION π₯
okay so here's the tea β β this function does the putback / un-isolate thing for a hugetlb folio that was previously isolated using folio_isolate_hugetlb. you're basically undoing the isolation arc π
what that actually means, fr fr:
- it marks the folio non-isolated / migratable again π§
- and it puts it back onto the active list π
and there's a bonus detail that's lowkey important β it will drop the additional folio reference that you got through folio_isolate_hugetlb π«Ά. so yeah, the reference that came with the isolation? it's leaving. it's gone. gorgeous. π
ngl bestie, keep track of that reference drop, because that's the part that actually matters π
π¦ SEE ALSO π¦
- Kernel file
./mm/hugetlb.cβ the whole neighborhood these functions live in π‘ hugetlb_alloc_folio(9)huge_pmd_unshare(9)folio_isolate_hugetlb(9)β the iconic prequel to this one, the isolation half of the story π
and that's the page!! mwah π this one came from ./mm, serve date October 2026, and the whole thing is filed under folio_putback_hugetlb(9) β go put those folios back where they belong, bestie πβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms