xfs: remove the di_version field from struct icdinode
We know the version is 3 if on a v5 file system. For earlier file systems formats we always upgrade the remaining v1 inodes to v2 and thus only use v2 inodes. Use the xfs_sb_version_has_large_dinode helper to check if we deal with small or large dinodes, and thus remove the need for the di_version field in struct icdinode. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Brian Foster <bfoster@redhat.com> Reviewed-by: Chandan Rajendra <chandanrlinux@gmail.com> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
This commit is contained in:

committed by
Darrick J. Wong

parent
5e28aafe70
commit
6471e9c5e7
@@ -110,7 +110,7 @@ xfs_bulkstat_one_int(
|
||||
buf->bs_forkoff = XFS_IFORK_BOFF(ip);
|
||||
buf->bs_version = XFS_BULKSTAT_VERSION_V5;
|
||||
|
||||
if (dic->di_version == 3) {
|
||||
if (xfs_sb_version_has_v3inode(&mp->m_sb)) {
|
||||
if (dic->di_flags2 & XFS_DIFLAG2_COWEXTSIZE)
|
||||
buf->bs_cowextsize_blks = dic->di_cowextsize;
|
||||
}
|
||||
|
Reference in New Issue
Block a user