summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorEric Sandeen <sandeen@sgi.com>2005-11-02 15:13:42 +1100
committerNathan Scott <nathans@sgi.com>2005-11-02 15:13:42 +1100
commita749ee86152a0caed3b0c2fbc50a00277e306ec6 (patch)
tree60f4d641b3cb9a28579d42ed6cdd88af2a08e258 /fs
parentfdc7ed75c08d507aa64c603b8bb7ef478dcc0000 (diff)
downloadop-kernel-dev-a749ee86152a0caed3b0c2fbc50a00277e306ec6.zip
op-kernel-dev-a749ee86152a0caed3b0c2fbc50a00277e306ec6.tar.gz
[XFS] Fix calculation of reserved AGs for inodes in 32-bit inode mode
Spotted by Roger Willcocks <willcor @at@ gmail.com> SGI-PV: 944858 SGI-Modid: xfs-linux:xfs-kern:201213a Signed-off-by: Eric Sandeen <sandeen@sgi.com> Signed-off-by: Nathan Scott <nathans@sgi.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/xfs/xfs_mount.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_mount.c b/fs/xfs/xfs_mount.c
index 02b1892..541d5dd 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;
OpenPOWER on IntegriCloud