@@ -240,7 +240,7 @@ xfs_perag_alloc(
* Pre-calculated geometry
*/
pag->block_count = __xfs_ag_block_count(mp, index, agcount, dblocks);
- pag->min_block = XFS_AGFL_BLOCK(mp);
+ pag->min_block = XFS_AGFL_BLOCK(mp) + 1;
__xfs_agino_range(mp, pag->block_count, &pag->agino_min,
&pag->agino_max);
@@ -222,7 +222,7 @@ xfs_verify_agbno(struct xfs_perag *pag, xfs_agblock_t agbno)
{
if (agbno >= pag->block_count)
return false;
- if (agbno <= pag->min_block)
+ if (agbno < pag->min_block)
return false;
return true;
}