git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
xfs: correctly decrement the extent buffer index in xfs_bmap_del_extent
[pandora-kernel.git]
/
fs
/
xfs
/
xfs_bmap.c
diff --git
a/fs/xfs/xfs_bmap.c
b/fs/xfs/xfs_bmap.c
index
896e16f
..
e546a33
100644
(file)
--- a/
fs/xfs/xfs_bmap.c
+++ b/
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);
*/
xfs_iext_remove(ip, *idx, 1,
whichfork == XFS_ATTR_FORK ? BMAP_ATTRFORK : 0);
+ --*idx;
if (delay)
break;
if (delay)
break;
+
XFS_IFORK_NEXT_SET(ip, whichfork,
XFS_IFORK_NEXTENTS(ip, whichfork) - 1);
flags |= XFS_ILOG_CORE;
XFS_IFORK_NEXT_SET(ip, whichfork,
XFS_IFORK_NEXTENTS(ip, whichfork) - 1);
flags |= XFS_ILOG_CORE;