xfs: make file range exchange support realtime files
authorDarrick J. Wong <djwong@kernel.org>
Mon, 15 Apr 2024 21:54:22 +0000 (14:54 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Mon, 15 Apr 2024 21:54:22 +0000 (14:54 -0700)
commite62941103faa2eedba6a155316e059a490c743a6
treebef8cbd967c49cf60e52972fa958c1a370d9304a
parent33a9be2b7016e79f47c4c1b523a0aa59d41893c0
xfs: make file range exchange support realtime files

Now that bmap items support the realtime device, we can add the
necessary pieces to the file range exchange code to support exchanging
mappings.  All we really need to do here is adjust the blockcount
upwards to the end of the rt extent and remove the inode checks.

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