Skip to content

Commit

Permalink
[XFS] Fix calculation of reserved AGs for inodes in 32-bit inode mode
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Eric Sandeen authored and Nathan Scott committed Nov 2, 2005
1 parent fdc7ed7 commit a749ee8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/xfs/xfs_mount.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a749ee8

Please sign in to comment.