Message ID | 1472783257-15941-6-git-send-email-david@fromorbit.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/fs/xfs/xfs_fsops.c b/fs/xfs/xfs_fsops.c index 622ca71..e5ff65e 100644 --- a/fs/xfs/xfs_fsops.c +++ b/fs/xfs/xfs_fsops.c @@ -251,8 +251,8 @@ xfs_growfs_data_private( agf->agf_rmap_blocks = cpu_to_be32(1); } - agf->agf_flfirst = cpu_to_be32(1); - agf->agf_fllast = 0; + agf->agf_flfirst = 0; + agf->agf_fllast = cpu_to_be32(xfs_agfl_size(mp) - 1); agf->agf_flcount = 0; tmpsize = agsize - mp->m_ag_prealloc_blocks; agf->agf_freeblks = cpu_to_be32(tmpsize);