From: Eric Sandeen Date: Wed, 2 Nov 2005 04:13:42 +0000 (+1100) Subject: [XFS] Fix calculation of reserved AGs for inodes in 32-bit inode mode X-Git-Tag: MMI-PSA29.97-13-9~54162^2~31^2~11 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a749ee86152a0caed3b0c2fbc50a00277e306ec6;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git [XFS] Fix calculation of reserved AGs for inodes in 32-bit inode mode Spotted by Roger Willcocks SGI-PV: 944858 SGI-Modid: xfs-linux:xfs-kern:201213a Signed-off-by: Eric Sandeen Signed-off-by: Nathan Scott --- diff --git a/fs/xfs/xfs_mount.c b/fs/xfs/xfs_mount.c index 02b1892aaf74..541d5dd474be 100644 --- a/fs/xfs/xfs_mount.c +++ b/fs/xfs/xfs_mount.c @@ -352,7 +352,7 @@ xfs_initialize_perag( icount = sbp->sb_dblocks * sbp->sb_imax_pct; do_div(icount, 100); icount += sbp->sb_agblocks - 1; - do_div(icount, mp->m_ialloc_blks); + do_div(icount, sbp->sb_agblocks); max_metadata = icount; } else { max_metadata = agcount;