From: Christoph Hellwig Date: Mon, 1 Jun 2026 12:43:51 +0000 (+0200) Subject: xfs: mark struct xfs_imap as __packed X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f16139d8e296ec5403c3ebbe874dcd5c57648ca;p=thirdparty%2Flinux.git 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 --- diff --git a/fs/xfs/libxfs/xfs_inode_buf.h b/fs/xfs/libxfs/xfs_inode_buf.h index 57192adc77449..f3624532b0238 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);