From: Darrick J. Wong Date: Mon, 22 Apr 2024 17:01:13 +0000 (-0700) Subject: xfs: add a realtime flag to the bmap update log redo items X-Git-Tag: v6.9.0~18^2~8 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=92ff593109f4ba8966e5663e9bd0c1bfb91bbd14;p=thirdparty%2Fxfsprogs-dev.git xfs: add a realtime flag to the bmap update log redo items Source kernel commit: 7302cda7f8b08062b11d2ba9ae0b4f3871fe3d46 Extend the bmap update (BUI) log items with a new realtime flag that indicates that the updates apply against a realtime file's data fork. We'll wire up the actual code later. Signed-off-by: Darrick J. Wong Reviewed-by: Christoph Hellwig Reviewed-by: Carlos Maiolino --- diff --git a/libxfs/xfs_log_format.h b/libxfs/xfs_log_format.h index 269573c8..16872972 100644 --- a/libxfs/xfs_log_format.h +++ b/libxfs/xfs_log_format.h @@ -838,10 +838,12 @@ struct xfs_cud_log_format { #define XFS_BMAP_EXTENT_ATTR_FORK (1U << 31) #define XFS_BMAP_EXTENT_UNWRITTEN (1U << 30) +#define XFS_BMAP_EXTENT_REALTIME (1U << 29) #define XFS_BMAP_EXTENT_FLAGS (XFS_BMAP_EXTENT_TYPE_MASK | \ XFS_BMAP_EXTENT_ATTR_FORK | \ - XFS_BMAP_EXTENT_UNWRITTEN) + XFS_BMAP_EXTENT_UNWRITTEN | \ + XFS_BMAP_EXTENT_REALTIME) /* * This is the structure used to lay out an bui log item in the