The inode must be write locked. Dunno how that could work before.
This commit is contained in:
@@ -2080,6 +2080,8 @@ BlockAllocator::_AddInodeToIndex(Inode* inode)
|
|||||||
if (index->inode == NULL)
|
if (index->inode == NULL)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
index->inode->WriteLockInTransaction(transaction);
|
||||||
|
|
||||||
BPlusTree* tree = index->inode->Tree();
|
BPlusTree* tree = index->inode->Tree();
|
||||||
if (tree == NULL)
|
if (tree == NULL)
|
||||||
return B_ERROR;
|
return B_ERROR;
|
||||||
|
|||||||
Reference in New Issue
Block a user