HAMMER 30C/many: Fix more TID synchronization issues
authorMatthew Dillon <dillon@dragonflybsd.org>
Sat, 23 Feb 2008 21:55:50 +0000 (21:55 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Sat, 23 Feb 2008 21:55:50 +0000 (21:55 +0000)
commita9cd537b31c80b4fb85a02ae28d6a12848071a89
treedad61368c8368ab34e4bc3247acc04b0a897f984
parent1a51eb21a43a022834ba7f67f0abe7d4e24016d2
HAMMER 30C/many: Fix more TID synchronization issues

* Properly zero-out b_tid in getnewbuf so a buffer does not get an old
  stale (and possibly duplicate) b_tid.

* A b_tid assignment was missing in the truncation case, causing an assertion.

* Panic instead of warn when we find a duplicate record in the B-Tree.
sys/kern/vfs_bio.c
sys/vfs/hammer/hammer_object.c
sys/vfs/hammer/hammer_vnops.c