]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs: support logging EFIs for realtime extents
authorDarrick J. Wong <djwong@kernel.org>
Mon, 25 Nov 2024 21:14:23 +0000 (13:14 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 24 Dec 2024 02:01:30 +0000 (18:01 -0800)
commit2f8a0a5a02af8a10873c04dea33a4d6811cc3f7f
tree5bc688538f86da8eb4c8064d3570eff940b8f67e
parentc643e707d31100858b40612da54d26dbbefc1307
xfs: support logging EFIs for realtime extents

Source kernel commit: 4c8900bbf106592ce647285e308abd2a7f080d88

Teach the EFI mechanism how to free realtime extents.  We're going to
need this to enforce proper ordering of operations when we enable
realtime rmap.

Declare a new log intent item type (XFS_LI_EFI_RT) and a separate defer
ops for rt extents.  This keeps the ondisk artifacts and processing code
completely separate between the rt and non-rt cases.  Hopefully this
will make it easier to debug filesystem problems.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
libxfs/xfs_alloc.c
libxfs/xfs_alloc.h
libxfs/xfs_defer.c
libxfs/xfs_defer.h
libxfs/xfs_log_format.h