]> www.infradead.org Git - users/hch/xfs.git/commit
xfs: support logging EFIs for realtime extents
authorDarrick J. Wong <djwong@kernel.org>
Sun, 22 Sep 2024 06:11:30 +0000 (08:11 +0200)
committerChristoph Hellwig <hch@lst.de>
Sun, 22 Sep 2024 08:01:29 +0000 (10:01 +0200)
commit53eb66eb3958fb54b91cabd7ae0cf8f4a50fcf81
tree4df0a3c60b57713259b858cd1fd75c19d28bba34
parentb232519e2794090301a59e5da5ee56dac65c1593
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