xfs: check correct status variable for xfs_inobt_get_rec() call
authorBrian Foster <bfoster@redhat.com>
Tue, 27 Aug 2013 21:15:45 +0000 (17:15 -0400)
committerBen Myers <bpm@sgi.com>
Fri, 30 Aug 2013 18:48:35 +0000 (13:48 -0500)
commitb121099d84b0311a26ca04d33961febb33580fe4
treeab2956786bbcc78c7fd5fe8176e726790832fc94
parentd8914002a0391331a88d9f5de4a235220735d4cc
xfs: check correct status variable for xfs_inobt_get_rec() call

The call to xfs_inobt_get_rec() in xfs_dialloc_ag() passes 'j' as
the output status variable. The immediately following
XFS_WANT_CORRUPTED_GOTO() checks the value of 'i,' which is from
the previous lookup call and has already been checked. Fix the
corruption check to use 'j.'

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
fs/xfs/xfs_ialloc.c