aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_mount.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/xfs_mount.c')
-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 02b1892aaf74..541d5dd474be 100644
--- a/fs/xfs/xfs_mount.c
+++ b/fs/xfs/xfs_mount.c
@@ -352,7 +352,7 @@ xfs_initialize_perag(
352 icount = sbp->sb_dblocks * sbp->sb_imax_pct; 352 icount = sbp->sb_dblocks * sbp->sb_imax_pct;
353 do_div(icount, 100); 353 do_div(icount, 100);
354 icount += sbp->sb_agblocks - 1; 354 icount += sbp->sb_agblocks - 1;
355 do_div(icount, mp->m_ialloc_blks); 355 do_div(icount, sbp->sb_agblocks);
356 max_metadata = icount; 356 max_metadata = icount;
357 } else { 357 } else {
358 max_metadata = agcount; 358 max_metadata = agcount;