Re: [PATCH] exfat: add swap_activate support

From: Namjae Jeon

Date: Wed Jun 03 2026 - 11:08:48 EST


On Wed, Jun 3, 2026 at 10:20 PM Jan Polensky <japo@xxxxxxxxxxxxx> wrote:
>
> Commit 614f71ca1bdf ("exfat: add iomap buffered I/O support")
> converted exfat buffered I/O to iomap, but did not add a
> .swap_activate handler to the address_space_operations.
>
> swapon(2) on an exfat swapfile then fails with EINVAL, which causes
> LTP swap tests to fail.
>
> Add exfat_iomap_swap_activate() and hook it into exfat_aops so exfat
> uses iomap_swapfile_activate() for swapfile activation.
>
> Fixes: 614f71ca1bdf ("exfat: add iomap buffered I/O support")
> Closes: https://lore.kernel.org/all/20260603110212.3020276-1-japo@xxxxxxxxxxxxx/
> Signed-off-by: Jan Polensky <japo@xxxxxxxxxxxxx>
Applied it to #dev.
Thanks!