xfs: do not use unchecked extent indices in xfs_bmapi
authorChristoph Hellwig <hch@infradead.org>
Wed, 11 May 2011 15:04:07 +0000 (15:04 +0000)
committerAlex Elder <aelder@sgi.com>
Wed, 25 May 2011 15:48:37 +0000 (10:48 -0500)
commit5690f92199956c0f2a2d9f718b5031e1300a1de1
tree66ae28ac9f0fe4deae3452f81f244ae162a25fcb
parent2f2b3220b0566692da14e06ea5fc0d697a78dc7c
xfs: do not use unchecked extent indices in xfs_bmapi

Make sure to only call xfs_iext_get_ext after we've validate the
extent index when moving on to the next index in xfs_bmapi.

Based on an earlier patch from Lachlan McIlroy.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Lachlan McIlroy <lmcilroy@redhat.com>
Signed-off-by: Alex Elder <aelder@sgi.com>
fs/xfs/xfs_bmap.c