]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs: use realtime EFI to free extents when realtime rmap is enabled
authorDarrick J. Wong <djwong@kernel.org>
Tue, 7 Mar 2023 03:55:54 +0000 (19:55 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 22 Nov 2023 23:03:38 +0000 (15:03 -0800)
commita8cd89ab6713821d89d27b7515d85c1e8b656b7f
treebf26a73129be1c5ddc77996df34ad6e7f017bf22
parent6e3cb86729c7cebea49765f5ce81b9bc16d68efe
xfs: use realtime EFI to free extents when realtime rmap is enabled

When rmap is enabled, XFS expects a certain order of operations, which
is: 1) remove the file mapping, 2) remove the reverse mapping, and then
3) free the blocks.  xfs_bmap_del_extent_real tries to do 1 and 3 in the
same transaction, which means that when rtrmap is enabled, we have to
use realtime EFIs to maintain the expected order.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
libxfs/xfs_bmap.c