diff --git a/src/add-ons/kernel/file_systems/bfs/BlockAllocator.cpp b/src/add-ons/kernel/file_systems/bfs/BlockAllocator.cpp index 7ebfad76fa..cf13c1bd49 100644 --- a/src/add-ons/kernel/file_systems/bfs/BlockAllocator.cpp +++ b/src/add-ons/kernel/file_systems/bfs/BlockAllocator.cpp @@ -312,6 +312,7 @@ AllocationGroup::Free(Transaction *transaction, uint16 start, int32 length) BlockAllocator::BlockAllocator(Volume *volume) : fVolume(volume), + fLock("bfs allocator"), fGroups(NULL), fCheckBitmap(NULL) { diff --git a/src/add-ons/kernel/file_systems/bfs/Lock.h b/src/add-ons/kernel/file_systems/bfs/Lock.h index a0c289f7a3..f7925648b1 100644 --- a/src/add-ons/kernel/file_systems/bfs/Lock.h +++ b/src/add-ons/kernel/file_systems/bfs/Lock.h @@ -29,7 +29,7 @@ class Semaphore { public: - Semaphore(const char *name = "bfs sem") + Semaphore(const char *name) : #ifdef USE_BENAPHORE fSemaphore(create_sem(0, name)), @@ -151,14 +151,14 @@ class ReadWriteLock { public: ReadWriteLock(const char *name) : - fWriteLock() + fWriteLock(name) { Initialize(name); } ReadWriteLock() : - fWriteLock() + fWriteLock("bfs r/w w-lock") { }