BFS: Adjust CachedNode::SetToWritable for consistency with SetTo.

Follow-up to an old review comment.
This commit is contained in:
Augustin Cavalier 2024-11-21 22:36:07 -05:00
parent fbdac8d61e
commit 1abf2059a7

View File

@ -357,6 +357,8 @@ public:
status_t SetToWritable(Transaction& transaction, const Inode* inode,
bool empty = false)
{
Unset();
fVolume = inode->GetVolume();
return CachedBlock::SetToWritable(transaction,
fVolume->VnodeToBlock(inode->ID()), empty);
}