Hi all, Realtime reverse mapping (and beyond that, realtime reflink) 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 extent freeing log items operate on rt extents in preparation for 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-extfree-intents xfsprogs git tree: https://git.kernel.org/cgit/linux/kernel/git/djwong/xfsprogs-dev.git/log/?h=realtime-extfree-intents --- fs/xfs/libxfs/xfs_alloc.c | 1 + fs/xfs/libxfs/xfs_bmap.c | 37 ++++++++++++++++------ fs/xfs/libxfs/xfs_bmap.h | 8 +++-- fs/xfs/libxfs/xfs_bmap_btree.c | 2 + fs/xfs/libxfs/xfs_ialloc.c | 4 +- fs/xfs/libxfs/xfs_log_format.h | 3 ++ fs/xfs/libxfs/xfs_refcount.c | 8 +++-- fs/xfs/libxfs/xfs_rtbitmap.c | 4 ++ fs/xfs/scrub/alloc_repair.c | 3 +- fs/xfs/scrub/repair.c | 5 ++- fs/xfs/xfs_extfree_item.c | 67 +++++++++++++++++++++++++++++++++++----- fs/xfs/xfs_reflink.c | 2 + 12 files changed, 112 insertions(+), 32 deletions(-)