xfs: create deferred log items for file mapping exchanges
authorDarrick J. Wong <djwong@kernel.org>
Mon, 15 Apr 2024 21:54:17 +0000 (14:54 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Mon, 15 Apr 2024 21:54:17 +0000 (14:54 -0700)
commit966ceafc7a437105ecfe1cadb3747b2965a260ca
tree656b079bc085e63c20833bf07e702481fcefc421
parent6c08f434bd33f88cf169e9e43c7a5e42fb3f2118
xfs: create deferred log items for file mapping exchanges

Now that we've created the skeleton of a log intent item to track and
restart file mapping exchange operations, add the upper level logic to
commit intent items and turn them into concrete work recorded in the
log.  This builds on the existing bmap update intent items that have
been around for a while now.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
13 files changed:
fs/xfs/Makefile
fs/xfs/libxfs/xfs_defer.c
fs/xfs/libxfs/xfs_defer.h
fs/xfs/libxfs/xfs_exchmaps.c [new file with mode: 0644]
fs/xfs/libxfs/xfs_exchmaps.h [new file with mode: 0644]
fs/xfs/libxfs/xfs_log_format.h
fs/xfs/libxfs/xfs_trans_space.h
fs/xfs/xfs_exchmaps_item.c
fs/xfs/xfs_exchmaps_item.h
fs/xfs/xfs_exchrange.c
fs/xfs/xfs_exchrange.h
fs/xfs/xfs_trace.c
fs/xfs/xfs_trace.h