]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
libxfs: remove unused xfs_inode fields
authorDarrick J. Wong <djwong@kernel.org>
Tue, 29 Oct 2024 00:03:30 +0000 (17:03 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 31 Oct 2024 22:45:04 +0000 (15:45 -0700)
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 <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
include/xfs_inode.h

index 170cc5288d3645ec5f3efbe91dd0873c1b7153ec..f250102ff19d65384233b84f5de20309f2cb4224 100644 (file)
@@ -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;