summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2026-06-01 14:43:51 +0200
committerCarlos Maiolino <cem@kernel.org>2026-06-09 09:14:42 +0200
commit4f16139d8e296ec5403c3ebbe874dcd5c57648ca (patch)
tree1a1640a887106d7143369524468ed457fa008dd0
parent9b64ca202f364a6bf8e19bdd20953bc2d776c67f (diff)
downloadlinux-stable-4f16139d8e296ec5403c3ebbe874dcd5c57648ca.tar.gz
linux-stable-4f16139d8e296ec5403c3ebbe874dcd5c57648ca.zip
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 <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>
-rw-r--r--fs/xfs/libxfs/xfs_inode_buf.h2
1 files changed, 1 insertions, 1 deletions
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);