diff options
author | Jie Liu <jeff.liu@oracle.com> | 2013-12-13 05:51:48 +0100 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2013-12-13 05:51:48 +0100 |
commit | 0f49efd805229fc747761213ec820c1ba3ab64db (patch) | |
tree | 3871d59b2ff50e3c9226b679ddd3d7d3bf7fb57d /fs/xfs/xfs_itable.c | |
parent | xfs: get rid of XFS_IALLOC_INODES macros (diff) | |
download | linux-0f49efd805229fc747761213ec820c1ba3ab64db.tar.xz linux-0f49efd805229fc747761213ec820c1ba3ab64db.zip |
xfs: get rid of XFS_INODE_CLUSTER_SIZE macros
Get rid of XFS_INODE_CLUSTER_SIZE() macros, use mp->m_inode_cluster_size
directly.
Signed-off-by: Jie Liu <jeff.liu@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/xfs_itable.c')
-rw-r--r-- | fs/xfs/xfs_itable.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/xfs_itable.c b/fs/xfs/xfs_itable.c index c237ad15d500..0571012f67c0 100644 --- a/fs/xfs/xfs_itable.c +++ b/fs/xfs/xfs_itable.c @@ -243,9 +243,9 @@ xfs_bulkstat( *done = 0; fmterror = 0; ubufp = ubuffer; - nicluster = mp->m_sb.sb_blocksize >= XFS_INODE_CLUSTER_SIZE(mp) ? + nicluster = mp->m_sb.sb_blocksize >= mp->m_inode_cluster_size ? mp->m_sb.sb_inopblock : - (XFS_INODE_CLUSTER_SIZE(mp) >> mp->m_sb.sb_inodelog); + (mp->m_inode_cluster_size >> mp->m_sb.sb_inodelog); nimask = ~(nicluster - 1); nbcluster = nicluster >> mp->m_sb.sb_inopblog; irbuf = kmem_zalloc_greedy(&irbsize, PAGE_SIZE, PAGE_SIZE * 4); |