]> git.baikalelectronics.ru Git - kernel.git/commit
[XFS] Always reset btree cursor after an insert
authorLachlan McIlroy <lachlan@sgi.com>
Mon, 23 Jun 2008 03:25:53 +0000 (13:25 +1000)
committerNiv Sardi <xaiki@debian.org>
Mon, 28 Jul 2008 06:59:03 +0000 (16:59 +1000)
commit5ceceee90c05f5e486669a00d4c82f5593957d17
tree9b3041590c9a6f2a15ab15682605d796d7ba9d19
parent3abfcd363e019e17650a31048a8ff62f676e9d53
[XFS] Always reset btree cursor after an insert

After a btree insert operation a cursor can be invalid due to block splits
and a maybe a new root block. We reset the cursor in xfs_bmbt_insert() in
the cases where we think we need to but it isn't enough as we still see
assertions. Just do what we do elsewhere and reset the cursor
unconditionally. Also remove the fix to revalidate the original cursor in
xfs_bmbt_insert().

SGI-PV: 983336

SGI-Modid: xfs-linux-melb:xfs-kern:31342a

Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
Signed-off-by: David Chinner <dgc@sgi.com>
fs/xfs/xfs_bmap.c
fs/xfs/xfs_bmap_btree.c