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

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_bunmapi.  Also
remove the old workaround for too large indices that has been
superceeded by the proper fix in xfs_bmap_del_extent.

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
This page took 0.028978 seconds and 5 git commands to generate.