From: Darrick J. Wong Date: Tue, 29 Oct 2024 00:03:30 +0000 (-0700) Subject: libxfs: remove unused xfs_inode fields X-Git-Tag: v6.12.0~27 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ee97b29a441379c4add186b5e677a02f3f7aa711;p=thirdparty%2Fxfsprogs-dev.git libxfs: remove unused xfs_inode fields Remove these unused fields; on the author's system this reduces the struct size from 560 bytes to 448. Signed-off-by: Darrick J. Wong Reviewed-by: Christoph Hellwig --- diff --git a/include/xfs_inode.h b/include/xfs_inode.h index 170cc528..f250102f 100644 --- a/include/xfs_inode.h +++ b/include/xfs_inode.h @@ -215,7 +215,6 @@ typedef struct xfs_inode { struct xfs_mount *i_mount; /* fs mount struct ptr */ xfs_ino_t i_ino; /* inode number (agno/agino) */ struct xfs_imap i_imap; /* location for xfs_imap() */ - struct xfs_buftarg i_dev; /* dev for this inode */ struct xfs_ifork *i_cowfp; /* copy on write extents */ struct xfs_ifork i_df; /* data fork */ struct xfs_ifork i_af; /* attribute fork */ @@ -239,9 +238,6 @@ typedef struct xfs_inode { xfs_agino_t i_next_unlinked; xfs_agino_t i_prev_unlinked; - xfs_extnum_t i_cnextents; /* # of extents in cow fork */ - unsigned int i_cformat; /* format of cow fork */ - xfs_fsize_t i_size; /* in-memory size */ struct inode i_vnode; } xfs_inode_t;