Skip to contentSkip to conversation

TAKE 983336 - Always reset btree cursor after an insert

DISCUSSION Lachlan McIlroy 1 participant 1 message Jun 20, 2008

lore
Share & tools
lore
#0 lore raw

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().

Date:  Fri Jun 20 17:36:09 AEST 2008
Workarea:  redback.melbourne.sgi.com:/home/lachlan/isms/2.6.x-agno2
Inspected by:  dgc
Author:  lachlan

The following file(s) were checked into:
longdrop.melbourne.sgi.com:/isms/linux/2.6.x-xfs-melb

Modid: xfs-linux-melb:xfs-kern:31342a fs/xfs/xfs_bmap_btree.c - 1.170 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/xfs_bmap_btree.c.diff?r1=text&tr1=1.170&r2=text&tr2=1.169&f=h
fs/xfs/xfs_bmap.c - 1.394 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/xfs_bmap.c.diff?r1=text&tr1=1.394&r2=text&tr2=1.393&f=h
- Always reset btree cursor after an insert