xfs: fix the type for sb_rtreserved xfs-zoned-2024-12-09
authorChristoph Hellwig <hch@lst.de>
Mon, 2 Dec 2024 02:29:57 +0000 (11:29 +0900)
committerChristoph Hellwig <hch@lst.de>
Mon, 2 Dec 2024 02:30:56 +0000 (11:30 +0900)
xfs_extlen_t is a 32-bit type, not matching the 64-bit on-disk
value.  Use the most fitting 64-bit type.

Noticed by the size checking macros on x86 which doesn't naturally
align 64-bit fields.

Signed-off-by: Christoph Hellwig <hch@lst.de>
fs/xfs/libxfs/xfs_format.h

index db9c4d0554be28d2c5bea0b041eb56a4f06b90f8..9491a09f6aa7f0291fb85afb354190cdad7979fd 100644 (file)
@@ -181,7 +181,7 @@ typedef struct xfs_sb {
        uint8_t         sb_rgblklog;    /* rt group number shift */
        uint8_t         sb_pad[7];      /* zeroes */
        xfs_fsblock_t   sb_rtstart;     /* start of internal RT section (FSB) */
-       xfs_extlen_t    sb_rtreserved;  /* reserved (zoned) RT blocks */
+       xfs_filblks_t   sb_rtreserved;  /* reserved (zoned) RT blocks */
 
        /* must be padded to 64 bit alignment */
 } xfs_sb_t;