xfs: get rid of XFS_IALLOC_BLOCKS macros

Get rid of XFS_IALLOC_BLOCKS() marcos, use mp->m_ialloc_blks 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>
This commit is contained in:
Jie Liu
2013-12-13 15:51:48 +11:00
committed by Dave Chinner
parent 0f49efd805
commit 126cd105d4
6 changed files with 15 additions and 20 deletions

View File

@@ -3209,9 +3209,9 @@ xlog_recover_do_icreate_pass2(
/* existing allocation is fixed value */
ASSERT(count == mp->m_ialloc_inos);
ASSERT(length == XFS_IALLOC_BLOCKS(mp));
ASSERT(length == mp->m_ialloc_blks);
if (count != mp->m_ialloc_inos ||
length != XFS_IALLOC_BLOCKS(mp)) {
length != mp->m_ialloc_blks) {
xfs_warn(log->l_mp, "xlog_recover_do_icreate_trans: bad count 2");
return EINVAL;
}