From e542ec0575e027d8b8e203fb08da347ad4fdb700 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Wed, 29 Jul 2009 11:05:13 +0000 Subject: [PATCH] * Don't unlock the inodes before knowing that writing back the transaction succeeded. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31900 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/kernel/file_systems/bfs/Journal.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; }