Hi all, Atomic extent swapping (and later, reverse mapping and reflink) on the realtime device needs to be able to defer file mapping and extent freeing work in much the same manner as is required on the data volume. Make the BUI log items operate on rt extents in preparation for atomic swapping and realtime rmap. If you're going to start using this mess, you probably ought to just pull from my git trees, which are linked below. This is an extraordinary way to destroy everything. Enjoy! Comments and questions are, as always, welcome. --D kernel git tree: https://git.kernel.org/cgit/linux/kernel/git/djwong/xfs-linux.git/log/?h=realtime-bmap-intents xfsprogs git tree: https://git.kernel.org/cgit/linux/kernel/git/djwong/xfsprogs-dev.git/log/?h=realtime-bmap-intents --- fs/xfs/libxfs/xfs_bmap.c | 63 ++++++++++++++++++++++++---------------- fs/xfs/libxfs/xfs_inode_fork.c | 9 ++++++ fs/xfs/libxfs/xfs_inode_fork.h | 1 + fs/xfs/libxfs/xfs_log_format.h | 4 ++- fs/xfs/scrub/bmap.c | 4 +-- fs/xfs/scrub/rmap_repair.c | 12 +------- fs/xfs/xfs_bmap_item.c | 17 ++++++++++- fs/xfs/xfs_trace.h | 8 +++-- 8 files changed, 74 insertions(+), 44 deletions(-)