Writing back compressed pages
Writing back compressed pages
Posted Feb 25, 2026 6:05 UTC (Wed) by PeeWee (subscriber, #175777)In reply to: Writing back compressed pages by intelfx
Parent article: Modernizing swapping: virtual swap spaces
> Are you absolutely positive? Entirely.Found it:
error = swap_writeout(folio, plug);
if (error != AOP_WRITEPAGE_ACTIVATE) {
/* folio has been unlocked */
return error;
}
/*
* The intention here is to avoid holding on to the swap when
* zswap was unable to compress and unable to writeback; but
* it will be appropriate if other reactivate cases are added.
*/
> Maybe it's a more recent change? Depends on how recent we are talking. Linux 5.10 old enough?That may very well be the case. I am running Ubuntu LTS which is not exactly bleeding edge. Thanks for finally giving me a definitive answer to that question!
