diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2019-06-05 11:19:36 -0700 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2019-06-12 08:37:40 -0700 |
commit | 4b4d98cca32053ec8993e836cb8cb7c8098959dc (patch) | |
tree | d4c843309a573deded92ec73111faf44f97aa07a /fs/xfs/libxfs | |
parent | 490d451fa5188975c21246f7f8f4914cd3f2d6f2 (diff) | |
download | linux-4b4d98cca32053ec8993e836cb8cb7c8098959dc.tar.gz linux-4b4d98cca32053ec8993e836cb8cb7c8098959dc.tar.bz2 linux-4b4d98cca32053ec8993e836cb8cb7c8098959dc.zip |
xfs: finish converting to inodes_per_cluster
Finish converting all the old inode_cluster_size >> inopblog users to
inodes_per_cluster.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to 'fs/xfs/libxfs')
-rw-r--r-- | fs/xfs/libxfs/xfs_inode_buf.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/xfs/libxfs/xfs_inode_buf.c b/fs/xfs/libxfs/xfs_inode_buf.c index c1293d170d98..fd7c02ee744b 100644 --- a/fs/xfs/libxfs/xfs_inode_buf.c +++ b/fs/xfs/libxfs/xfs_inode_buf.c @@ -33,12 +33,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, |