From 14d4c45d06748cfac8feb10cc75addcf120ca5bb Mon Sep 17 00:00:00 2001 From: Christoph Hellwig Date: Wed, 11 May 2011 15:04:05 +0000 Subject: [PATCH] --- yaml --- r: 251776 b: refs/heads/master c: 233eebb9a96f956c541c0c9094fd321894bd93a7 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/xfs/xfs_bmap.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 6bb1e15c9b1b..33be59c8362e 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 87bef1812d337beadfb1099e7361fd41264eb88e +refs/heads/master: 233eebb9a96f956c541c0c9094fd321894bd93a7 diff --git a/trunk/fs/xfs/xfs_bmap.c b/trunk/fs/xfs/xfs_bmap.c index 896e16f08ed9..e546a33214c9 100644 --- a/trunk/fs/xfs/xfs_bmap.c +++ b/trunk/fs/xfs/xfs_bmap.c @@ -2916,8 +2916,10 @@ xfs_bmap_del_extent( */ xfs_iext_remove(ip, *idx, 1, whichfork == XFS_ATTR_FORK ? BMAP_ATTRFORK : 0); + --*idx; if (delay) break; + XFS_IFORK_NEXT_SET(ip, whichfork, XFS_IFORK_NEXTENTS(ip, whichfork) - 1); flags |= XFS_ILOG_CORE;