]> www.infradead.org Git - users/hch/xfsprogs.git/commitdiff
xfs: record inode generation in xattr update log intent items
authorDarrick J. Wong <djwong@kernel.org>
Tue, 9 Apr 2024 20:52:31 +0000 (13:52 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 10 Apr 2024 00:21:29 +0000 (17:21 -0700)
For parent pointer updates, record the i_generation of the file that is
being updated so that we don't accidentally jump generations.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
libxfs/xfs_log_format.h

index 632dd97324557a04d69042d452be230d41a49c82..3e6682ed656b30b8d9189324cc8a57735b9c318d 100644 (file)
@@ -1049,7 +1049,7 @@ struct xfs_icreate_log {
 struct xfs_attri_log_format {
        uint16_t        alfi_type;      /* attri log item type */
        uint16_t        alfi_size;      /* size of this item */
-       uint32_t        __pad;          /* pad to 64 bit aligned */
+       uint32_t        alfi_igen;      /* generation of alfi_ino for pptr ops */
        uint64_t        alfi_id;        /* attri identifier */
        uint64_t        alfi_ino;       /* the inode for this attr operation */
        uint32_t        alfi_op_flags;  /* marks the op as a set or remove */