]> www.infradead.org Git - users/hch/xfs.git/commit
xfs: force swapext to a realtime file to use the file content exchange ioctl
authorDarrick J. Wong <djwong@kernel.org>
Thu, 15 Aug 2024 18:48:20 +0000 (11:48 -0700)
committerChristoph Hellwig <hch@lst.de>
Sun, 22 Sep 2024 08:01:28 +0000 (10:01 +0200)
commitb232519e2794090301a59e5da5ee56dac65c1593
tree4e1c6779c4b5436584b9d30972adb46d99d565db
parenteb5f821a984949136699dc7e7e0c07cdd9bac740
xfs: force swapext to a realtime file to use the file content exchange ioctl

xfs_swap_extent_rmap does not use log items to track the overall
progress of an attempt to swap the extent mappings between two files.
If the system crashes in the middle of swapping a partially written
realtime extent, the mapping will be left in an inconsistent state
wherein a file can point to multiple extents on the rt volume.

The new file range exchange functionality handles this correctly, so all
callers must upgrade to that.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/xfs_bmap_util.c