]> 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>
Tue, 15 Oct 2024 19:39:11 +0000 (12:39 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Fri, 1 Nov 2024 20:46:53 +0000 (13:46 -0700)
commit8e443d1bd80bfc131d223d68e935cd2b326b12c7
tree84ae3e8d6a2e8138c9459e6a4991d6182a1caee3
parent12ef52a2ccb74d7303bd6e60dc3748851b817516
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