The inode must be write locked. Dunno how that could work before.

This commit is contained in:
Axel Dörfler 2012-04-01 11:28:12 +02:00
parent 7fef0374fe
commit 15f4dcd831

View File

@ -2080,6 +2080,8 @@ BlockAllocator::_AddInodeToIndex(Inode* inode)
if (index->inode == NULL)
continue;
index->inode->WriteLockInTransaction(transaction);
BPlusTree* tree = index->inode->Tree();
if (tree == NULL)
return B_ERROR;