]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
xfs: mark struct xfs_imap as __packed
authorChristoph Hellwig <hch@lst.de>
Mon, 1 Jun 2026 12:43:51 +0000 (14:43 +0200)
committerCarlos Maiolino <cem@kernel.org>
Tue, 9 Jun 2026 07:14:42 +0000 (09:14 +0200)
This returns 2 bytes of padding at the to struct xfs_inode into which
this structure is embedded.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
fs/xfs/libxfs/xfs_inode_buf.h

index 57192adc774491530647d9447b5fd4fe38507a50..f3624532b0238a238e2bcc2eef09ee4c8e0b8b96 100644 (file)
@@ -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);