diff options
| -rw-r--r-- | fs/xfs/xfs_ialloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_ialloc.c b/fs/xfs/xfs_ialloc.c index 5aceb3f8ecd6..445bf1aef31c 100644 --- a/fs/xfs/xfs_ialloc.c +++ b/fs/xfs/xfs_ialloc.c | |||
| @@ -431,7 +431,7 @@ xfs_ialloc_next_ag( | |||
| 431 | 431 | ||
| 432 | spin_lock(&mp->m_agirotor_lock); | 432 | spin_lock(&mp->m_agirotor_lock); |
| 433 | agno = mp->m_agirotor; | 433 | agno = mp->m_agirotor; |
| 434 | if (++mp->m_agirotor == mp->m_maxagi) | 434 | if (++mp->m_agirotor >= mp->m_maxagi) |
| 435 | mp->m_agirotor = 0; | 435 | mp->m_agirotor = 0; |
| 436 | spin_unlock(&mp->m_agirotor_lock); | 436 | spin_unlock(&mp->m_agirotor_lock); |
| 437 | 437 | ||
