/* Should be called without the journal lock held.  */
void jbd2_journal_unlock_updates(journal_t *journal)
/* Should be called without the journal lock held.  */
void jbd2_journal_unlock_updates(journal_t *journal)
{
	J_ASSERT(journal->j_barrier_count != 0);
	mutex_unlock(&journal->j_barrier);
	spin_lock(&journal->j_state_lock);
	--journal->j_barrier_count;
	spin_unlock(&journal->j_state_lock);
	wake_up(&journal->j_wait_transaction_locked);
}