From 4f16139d8e296ec5403c3ebbe874dcd5c57648ca Mon Sep 17 00:00:00 2001 From: Christoph Hellwig Date: Mon, 1 Jun 2026 14:43:51 +0200 Subject: [PATCH] xfs: mark struct xfs_imap as __packed This returns 2 bytes of padding at the to struct xfs_inode into which this structure is embedded. Signed-off-by: Christoph Hellwig Reviewed-by: Carlos Maiolino Reviewed-by: "Darrick J. Wong" Signed-off-by: Carlos Maiolino --- fs/xfs/libxfs/xfs_inode_buf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/xfs/libxfs/xfs_inode_buf.h b/fs/xfs/libxfs/xfs_inode_buf.h index 57192adc7744..f3624532b023 100644 --- a/fs/xfs/libxfs/xfs_inode_buf.h +++ b/fs/xfs/libxfs/xfs_inode_buf.h @@ -16,7 +16,7 @@ struct xfs_dinode; struct xfs_imap { xfs_agblock_t im_agbno; /* starting agbno of inode cluster */ unsigned short im_boffset; /* offset in inode cluster in bytes */ -}; +} __packed; int xfs_read_icluster(struct xfs_perag *pag, struct xfs_trans *tp, xfs_agblock_t agbno, struct xfs_buf **bpp);