[PATCH] xfs: fixup some alignment issues in xfs_ondisk.c

Wilfred Mallawa posted 1 patch 1 month, 2 weeks ago
fs/xfs/libxfs/xfs_ondisk.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
[PATCH] xfs: fixup some alignment issues in xfs_ondisk.c
Posted by Wilfred Mallawa 1 month, 2 weeks ago
From: Wilfred Mallawa <wilfred.mallawa@wdc.com>

Fixup some code alignment issues in xfs_ondisk.c

Signed-off-by: Wilfred Mallawa <wilfred.mallawa@wdc.com>
---
 fs/xfs/libxfs/xfs_ondisk.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/xfs/libxfs/xfs_ondisk.h b/fs/xfs/libxfs/xfs_ondisk.h
index 1914ffe59202..23cde1248f01 100644
--- a/fs/xfs/libxfs/xfs_ondisk.h
+++ b/fs/xfs/libxfs/xfs_ondisk.h
@@ -73,7 +73,7 @@ xfs_check_ondisk_structs(void)
 	XFS_CHECK_STRUCT_SIZE(struct xfs_dir3_free_hdr,		64);
 	XFS_CHECK_STRUCT_SIZE(struct xfs_dir3_leaf,		64);
 	XFS_CHECK_STRUCT_SIZE(struct xfs_dir3_leaf_hdr,		64);
-	XFS_CHECK_STRUCT_SIZE(struct xfs_attr_leaf_entry,		8);
+	XFS_CHECK_STRUCT_SIZE(struct xfs_attr_leaf_entry,	8);
 	XFS_CHECK_STRUCT_SIZE(struct xfs_attr_leaf_hdr,		32);
 	XFS_CHECK_STRUCT_SIZE(struct xfs_attr_leaf_map,		4);
 	XFS_CHECK_STRUCT_SIZE(struct xfs_attr_leaf_name_local,	4);
@@ -116,7 +116,7 @@ xfs_check_ondisk_structs(void)
 	XFS_CHECK_STRUCT_SIZE(struct xfs_da_intnode,		16);
 	XFS_CHECK_STRUCT_SIZE(struct xfs_da_node_entry,		8);
 	XFS_CHECK_STRUCT_SIZE(struct xfs_da_node_hdr,		16);
-	XFS_CHECK_STRUCT_SIZE(struct xfs_dir2_data_free,		4);
+	XFS_CHECK_STRUCT_SIZE(struct xfs_dir2_data_free,	4);
 	XFS_CHECK_STRUCT_SIZE(struct xfs_dir2_data_hdr,		16);
 	XFS_CHECK_OFFSET(struct xfs_dir2_data_unused, freetag,	0);
 	XFS_CHECK_OFFSET(struct xfs_dir2_data_unused, length,	2);
-- 
2.53.0
Re: [PATCH] xfs: fixup some alignment issues in xfs_ondisk.c
Posted by Christoph Hellwig 1 month, 2 weeks ago
On Thu, Feb 12, 2026 at 12:04:38PM +1000, Wilfred Mallawa wrote:
> From: Wilfred Mallawa <wilfred.mallawa@wdc.com>
> 
> Fixup some code alignment issues in xfs_ondisk.c

That code should probably go into the subject as well, as that
initially made me think of data structure or load/store alignment.

But maybe Carlos can just fix this up when applying.

Otherwise looks good:

Reviewed-by: Christoph Hellwig <hch@lst.de>
Re: [PATCH] xfs: fixup some alignment issues in xfs_ondisk.c
Posted by Wilfred Mallawa 1 month, 2 weeks ago
On Thu, 2026-02-12 at 11:14 +0100, Christoph Hellwig wrote:
> On Thu, Feb 12, 2026 at 12:04:38PM +1000, Wilfred Mallawa wrote:
> > From: Wilfred Mallawa <wilfred.mallawa@wdc.com>
> > 
> > Fixup some code alignment issues in xfs_ondisk.c
> 
> That code should probably go into the subject as well, as that
> initially made me think of data structure or load/store alignment.
> 

Ah good point, I've fixed this in V2. Thanks!

Wilfred