Re: [PATCH v9 15/32] mm: swap: share swap-cache allocation error cleanup
From: Nhat Pham
Date: Fri Nov 06 2026 - 16:39:27 EST
On Thu, Nov 5, 2026 at 11:41 AM Usama Arif <usama.arif@xxxxxxxxx> 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>
Nice cleanup.
Reviewed-by: Nhat Pham <nphamcs@xxxxxxxxx>