]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commitdiff
xfs: add a realtime flag to the bmap update log redo items
authorDarrick J. Wong <djwong@kernel.org>
Mon, 22 Apr 2024 17:01:13 +0000 (10:01 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Mon, 3 Jun 2024 18:37:41 +0000 (11:37 -0700)
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 <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
libxfs/xfs_log_format.h

index 269573c828085fc3cb4f5685a1caf86d9fe1d061..16872972e1e97dcd2b8c5a8974a1ed9c64175bde 100644 (file)
@@ -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