hammer2 - Change from splay -> red-black tree
authorMatthew Dillon <dillon@apollo.backplane.com>
Thu, 7 Jun 2012 23:10:50 +0000 (16:10 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Thu, 7 Jun 2012 23:10:50 +0000 (16:10 -0700)
commitecc33e7178ca3b73022dd38decc9c7c1277752ec
tree3e33c7849e1857e9cde41d6df246f4a0c52619b8
parentaeefdae8b371bcfe924a165162c334862cdfe4e3
hammer2 - Change from splay -> red-black tree

* Even though splay trees are faster they are not lookup-safe under a
  shared lock.  In order to consolidate the chain locks with the cache
  coherency state we need to make lookups shared-safe.

* This will allow me to move chain locks from exclusive to shared/exclusive
  with only modest surgery.
sys/vfs/hammer2/hammer2.h
sys/vfs/hammer2/hammer2_chain.c
sys/vfs/hammer2/hammer2_inode.c