mirror of
https://review.haiku-os.org/haiku
synced 2024-11-23 15:28:58 +01:00
BFS: Adjust CachedNode::SetToWritable for consistency with SetTo.
Follow-up to an old review comment.
This commit is contained in:
parent
fbdac8d61e
commit
1abf2059a7
@ -357,6 +357,8 @@ public:
|
|||||||
status_t SetToWritable(Transaction& transaction, const Inode* inode,
|
status_t SetToWritable(Transaction& transaction, const Inode* inode,
|
||||||
bool empty = false)
|
bool empty = false)
|
||||||
{
|
{
|
||||||
|
Unset();
|
||||||
|
fVolume = inode->GetVolume();
|
||||||
return CachedBlock::SetToWritable(transaction,
|
return CachedBlock::SetToWritable(transaction,
|
||||||
fVolume->VnodeToBlock(inode->ID()), empty);
|
fVolume->VnodeToBlock(inode->ID()), empty);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user