Commit 82c6ef83 authored by Nathan Scott's avatar Nathan Scott Committed by Stephen Lord

[XFS] Use the rounded down size value for all growfs

calculations, else the last AG can be updated incorrectly

SGI Modid: 2.5.x-xfs:slinx:155936a
parent e33a8b50
......@@ -172,7 +172,7 @@ xfs_growfs_data_private(
if (nb < mp->m_sb.sb_dblocks)
return XFS_ERROR(EINVAL);
}
new = in->newblocks - mp->m_sb.sb_dblocks;
new = nb - mp->m_sb.sb_dblocks;
oagcount = mp->m_sb.sb_agcount;
if (nagcount > oagcount) {
down_write(&mp->m_peraglock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment