aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/xfs/xfs_bmap.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/fs/xfs/xfs_bmap.c b/fs/xfs/xfs_bmap.c
index ebcd45203c3d..896e16f08ed9 100644
--- a/fs/xfs/xfs_bmap.c
+++ b/fs/xfs/xfs_bmap.c
@@ -5143,9 +5143,12 @@ xfs_bunmapi(
5143 */ 5143 */
5144 ASSERT(bno >= del.br_blockcount); 5144 ASSERT(bno >= del.br_blockcount);
5145 bno -= del.br_blockcount; 5145 bno -= del.br_blockcount;
5146 if (bno < got.br_startoff) { 5146 if (got.br_startoff > bno) {
5147 if (--lastx >= 0) 5147 if (--lastx >= 0) {
5148 xfs_bmbt_get_all(--ep, &got); 5148 ep = xfs_iext_get_ext(ifp,
5149 lastx);
5150 xfs_bmbt_get_all(ep, &got);
5151 }
5149 } 5152 }
5150 continue; 5153 continue;
5151 } else if (del.br_state == XFS_EXT_UNWRITTEN) { 5154 } else if (del.br_state == XFS_EXT_UNWRITTEN) {