diff options
Diffstat (limited to 'fs/xfs')
-rw-r--r-- | fs/xfs/xfs_bmap.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/fs/xfs/xfs_bmap.c b/fs/xfs/xfs_bmap.c index af655c1d460d..ebcd45203c3d 100644 --- a/fs/xfs/xfs_bmap.c +++ b/fs/xfs/xfs_bmap.c | |||
@@ -5242,17 +5242,17 @@ xfs_bunmapi( | |||
5242 | nodelete: | 5242 | nodelete: |
5243 | /* | 5243 | /* |
5244 | * If not done go on to the next (previous) record. | 5244 | * If not done go on to the next (previous) record. |
5245 | * Reset ep in case the extents array was re-alloced. | ||
5246 | */ | 5245 | */ |
5247 | ep = xfs_iext_get_ext(ifp, lastx); | ||
5248 | if (bno != (xfs_fileoff_t)-1 && bno >= start) { | 5246 | if (bno != (xfs_fileoff_t)-1 && bno >= start) { |
5249 | if (lastx >= XFS_IFORK_NEXTENTS(ip, whichfork) || | 5247 | if (lastx >= 0) { |
5250 | xfs_bmbt_get_startoff(ep) > bno) { | 5248 | ep = xfs_iext_get_ext(ifp, lastx); |
5251 | if (--lastx >= 0) | 5249 | if (xfs_bmbt_get_startoff(ep) > bno) { |
5252 | ep = xfs_iext_get_ext(ifp, lastx); | 5250 | if (--lastx >= 0) |
5253 | } | 5251 | ep = xfs_iext_get_ext(ifp, |
5254 | if (lastx >= 0) | 5252 | lastx); |
5253 | } | ||
5255 | xfs_bmbt_get_all(ep, &got); | 5254 | xfs_bmbt_get_all(ep, &got); |
5255 | } | ||
5256 | extno++; | 5256 | extno++; |
5257 | } | 5257 | } |
5258 | } | 5258 | } |