]> www.infradead.org Git - users/hch/xfs.git/commit
xfs: support logging EFIs for realtime extents
authorDarrick J. Wong <djwong@kernel.org>
Mon, 23 Sep 2024 20:41:31 +0000 (13:41 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 2 Oct 2024 01:10:49 +0000 (18:10 -0700)
commit17e7ad98bc1bafbe8d56ddcb498e54d583be5bd4
tree4bc8d414e0f1996d6bcfb4ff9c465dd782963b3a
parentd6a49a6bfc0c29447de81a52f5aace0787325d8a
xfs: support logging EFIs for realtime extents

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>
fs/xfs/libxfs/xfs_alloc.c
fs/xfs/libxfs/xfs_alloc.h
fs/xfs/libxfs/xfs_defer.c
fs/xfs/libxfs/xfs_defer.h
fs/xfs/libxfs/xfs_log_format.h
fs/xfs/libxfs/xfs_log_recover.h
fs/xfs/xfs_extfree_item.c
fs/xfs/xfs_log_recover.c