From 202de106e19873380b3c24d6adcd5217d9bb1a46 Mon Sep 17 00:00:00 2001 From: Christoph Hellwig Date: Mon, 2 Dec 2024 11:29:57 +0900 Subject: [PATCH] xfs: fix the type for sb_rtreserved 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 --- fs/xfs/libxfs/xfs_format.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/xfs/libxfs/xfs_format.h b/fs/xfs/libxfs/xfs_format.h index db9c4d0554be..9491a09f6aa7 100644 --- a/fs/xfs/libxfs/xfs_format.h +++ b/fs/xfs/libxfs/xfs_format.h @@ -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; -- 2.50.1