diff options
-rw-r--r-- | fs/xfs/xfs_iget.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/xfs_iget.c b/fs/xfs/xfs_iget.c index b1ecc6f97ade..0cdd26932d8e 100644 --- a/fs/xfs/xfs_iget.c +++ b/fs/xfs/xfs_iget.c | |||
@@ -365,8 +365,8 @@ xfs_iget( | |||
365 | xfs_perag_t *pag; | 365 | xfs_perag_t *pag; |
366 | xfs_agino_t agino; | 366 | xfs_agino_t agino; |
367 | 367 | ||
368 | /* the radix tree exists only in inode capable AGs */ | 368 | /* reject inode numbers outside existing AGs */ |
369 | if (XFS_INO_TO_AGNO(mp, ino) >= mp->m_maxagi) | 369 | if (XFS_INO_TO_AGNO(mp, ino) >= mp->m_sb.sb_agcount) |
370 | return EINVAL; | 370 | return EINVAL; |
371 | 371 | ||
372 | /* get the perag structure and ensure that it's inode capable */ | 372 | /* get the perag structure and ensure that it's inode capable */ |