Re: [PATCH v9 15/32] mm: swap: share swap-cache allocation error cleanup

From: Yosry Ahmed

Date: Fri Nov 06 2026 - 16:10:32 EST


On Thu, Nov 05, 2026 at 10:38:59AM -0800, Usama Arif wrote:
> Both post-insertion allocation failures remove the folio from the swap
> cache, restore its shadow and drop the folio references. Factor the common
> cleanup into one error path so additional checks can use it.
>
> Signed-off-by: Usama Arif <usama.arif@xxxxxxxxx>

Reviewed-by: Yosry Ahmed <yosry@xxxxxxxxxx>