From: Darrick J. Wong Date: Wed, 28 Aug 2019 16:08:08 +0000 (-0400) Subject: xfs: finish converting to inodes_per_cluster X-Git-Tag: v5.3.0-rc1~25 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4b0fd0f4db2866e2ed506d9048d9e8fbb1790cca;p=thirdparty%2Fxfsprogs-dev.git xfs: finish converting to inodes_per_cluster Source kernel commit: 4b4d98cca32053ec8993e836cb8cb7c8098959dc Finish converting all the old inode_cluster_size >> inopblog users to inodes_per_cluster. Signed-off-by: Darrick J. Wong Reviewed-by: Dave Chinner Signed-off-by: Eric Sandeen --- diff --git a/libxfs/xfs_inode_buf.c b/libxfs/xfs_inode_buf.c index 3cd087716..717016e34 100644 --- a/libxfs/xfs_inode_buf.c +++ b/libxfs/xfs_inode_buf.c @@ -29,12 +29,9 @@ xfs_inobp_check( xfs_buf_t *bp) { int i; - int j; xfs_dinode_t *dip; - j = M_IGEO(mp)->inode_cluster_size >> mp->m_sb.sb_inodelog; - - for (i = 0; i < j; i++) { + for (i = 0; i < M_IGEO(mp)->inodes_per_cluster; i++) { dip = xfs_buf_offset(bp, i * mp->m_sb.sb_inodesize); if (!dip->di_next_unlinked) { xfs_alert(mp,