diff --git a/src/add-ons/kernel/file_systems/bfs/BlockAllocator.cpp b/src/add-ons/kernel/file_systems/bfs/BlockAllocator.cpp index c6654d6fbc..454de83dd5 100644 --- a/src/add-ons/kernel/file_systems/bfs/BlockAllocator.cpp +++ b/src/add-ons/kernel/file_systems/bfs/BlockAllocator.cpp @@ -1236,7 +1236,7 @@ BlockAllocator::StopChecking(check_control* control) // fix any damages of the bitmap if (control != NULL && control->status == B_ENTRY_NOT_FOUND) { // calculate the number of used blocks in the check bitmap - size_t size = fVolume->BlockSize() * fNumGroups * fBlocksPerGroup; + size_t size = BitmapSize(); off_t usedBlocks = 0LL; // TODO: update the allocation groups used blocks info