From 69bd94ad09726bb9c9ab6cf3bfdaf8098fa2807e Mon Sep 17 00:00:00 2001 From: Christoph Hellwig Date: Wed, 6 Oct 2010 18:31:23 +0000 Subject: [PATCH] --- yaml --- r: 213271 b: refs/heads/master c: d276734d937a649ff43fd197d0df7a747bd55b7e h: refs/heads/master i: 213269: c64f7979d0731446b8cc954d02fd672490a3ca5a 213267: a5a7a514d1210a84be0eb26d2c5b65972c496566 213263: b44cf950a3faeced34f5962c8ef2a90eb5a87d48 v: v3 --- [refs] | 2 +- trunk/fs/xfs/xfs_iget.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 8168b4ea4385..b8b71695ef90 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 1b0407125f9a5be63e861eb27c8af9e32f20619c +refs/heads/master: d276734d937a649ff43fd197d0df7a747bd55b7e diff --git a/trunk/fs/xfs/xfs_iget.c b/trunk/fs/xfs/xfs_iget.c index b1ecc6f97ade..0cdd26932d8e 100644 --- a/trunk/fs/xfs/xfs_iget.c +++ b/trunk/fs/xfs/xfs_iget.c @@ -365,8 +365,8 @@ xfs_iget( xfs_perag_t *pag; xfs_agino_t agino; - /* the radix tree exists only in inode capable AGs */ - if (XFS_INO_TO_AGNO(mp, ino) >= mp->m_maxagi) + /* reject inode numbers outside existing AGs */ + if (XFS_INO_TO_AGNO(mp, ino) >= mp->m_sb.sb_agcount) return EINVAL; /* get the perag structure and ensure that it's inode capable */