mirror of
https://github.com/adulau/aha.git
synced 2024-12-29 04:06:22 +00:00
[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>
This commit is contained in:
parent
fdc7ed75c0
commit
a749ee8615
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue