]> 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>
Mon, 23 Sep 2024 20:41:31 +0000 (13:41 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 9 Oct 2024 23:26:51 +0000 (16:26 -0700)
commit2abae30f6ccc19b1556a327a709e00833650a85f
treed2fa1c9594c57e9bf1407c73d262d97ec3d43519
parenta5d15d4d1ea5ebd0eea292f10209d86d8f51f8d8
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