diff --git a/src/add-ons/kernel/file_systems/bfs/Journal.h b/src/add-ons/kernel/file_systems/bfs/Journal.h index 08b8719295..9ebe797941 100644 --- a/src/add-ons/kernel/file_systems/bfs/Journal.h +++ b/src/add-ons/kernel/file_systems/bfs/Journal.h @@ -123,10 +123,11 @@ public: { status_t status = B_OK; if (fJournal != NULL) { - _UnlockInodes(true); status = fJournal->Unlock(this, true); - if (status == B_OK) + if (status == B_OK) { + _UnlockInodes(true); fJournal = NULL; + } } return status; }