diff --git a/src/add-ons/kernel/file_systems/bfs/Inode.h b/src/add-ons/kernel/file_systems/bfs/Inode.h index 4ed61961be..077ced4c15 100644 --- a/src/add-ons/kernel/file_systems/bfs/Inode.h +++ b/src/add-ons/kernel/file_systems/bfs/Inode.h @@ -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); }