* bfs_{read|write}_pages() now only try to lock - this fixes a possible

deadlock whenever someone without a lock (like the page_writer()) is calling
  this function.
* Added a new ReadWriteLock::TryLock() method.
* Renamed bfs_read_vnode() and bfs_release_vnode() to bfs_get_vnode() and
  bfs_put_vnode() just like those functions are called in fs_interface.h.
* Fixed a warning in BPlusTree::_SplitNode().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22372 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2007-09-29 14:06:04 +00:00
parent 5b06c4ae51
commit ab88b095f2
3 changed files with 40 additions and 29 deletions
@@ -1002,7 +1002,7 @@ BPlusTree::_SplitNode(bplustree_node *node, off_t nodeOffset,
int32 keyIndex = *_keyIndex; // can become less than zero!
if (keyIndex > node->NumKeys()) {
FATAL(("key index out of bounds: %d, num keys: %d\n", keyIndex,
FATAL(("key index out of bounds: %ld, num keys: %u\n", keyIndex,
node->NumKeys()));
return B_BAD_VALUE;
}