Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 163647
b: refs/heads/master
c: 9599b0e
h: refs/heads/master
i:
  163645: 6a6655b
  163643: f589278
  163639: 6d055af
  163631: fbbd0b7
  163615: e4dc0bb
  163583: cd25b0d
v: v3
  • Loading branch information
Jan Kara authored and Theodore Ts'o committed Aug 18, 2009
1 parent 07e9be8 commit 1a0cb8e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 553f9008939638335836eec834f4dea310c17eae
refs/heads/master: 9599b0e597d810be9b8f759ea6e9619c4f983c5e
5 changes: 3 additions & 2 deletions trunk/fs/jbd2/transaction.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,8 @@ static int start_this_handle(journal_t *journal, handle_t *handle)
__jbd2_log_space_left(journal));
spin_unlock(&transaction->t_handle_lock);
spin_unlock(&journal->j_state_lock);

lock_map_acquire(&handle->h_lockdep_map);
out:
if (unlikely(new_transaction)) /* It's usually NULL */
kfree(new_transaction);
Expand Down Expand Up @@ -303,8 +305,6 @@ handle_t *jbd2_journal_start(journal_t *journal, int nblocks)
handle = ERR_PTR(err);
goto out;
}

lock_map_acquire(&handle->h_lockdep_map);
out:
return handle;
}
Expand Down Expand Up @@ -426,6 +426,7 @@ int jbd2_journal_restart(handle_t *handle, int nblocks)
__jbd2_log_start_commit(journal, transaction->t_tid);
spin_unlock(&journal->j_state_lock);

lock_map_release(&handle->h_lockdep_map);
handle->h_buffer_credits = nblocks;
ret = start_this_handle(journal, handle);
return ret;
Expand Down

0 comments on commit 1a0cb8e

Please sign in to comment.