Re: [PATCH] xfs: break layouts before swapping extents
From: Carlos Maiolino
Date: Wed Nov 18 2026 - 03:59:35 EST
On Mon, 09 Nov 2026 17:26:56 +0900, Daejun Park wrote:
> XFS_IOC_SWAPEXT does not break pNFS layouts. A client can keep writing
> to blocks that the swap moved to the temporary file. xfs_fsr frees
> those blocks when it closes that file. The writes then land in whatever
> reuses them.
>
> Lock with xfs_ilock2_io_mmap(), as the exchange-range ioctls do.
>
> [...]
Applied to for-next, thanks!
[1/1] xfs: break layouts before swapping extents
commit: 0d8026c7ac0c79a8ebe2942a3c3114c06aced734
Best regards,
--
Carlos Maiolino <cem@xxxxxxxxxx>