Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 40020
b: refs/heads/master
c: 3e2a532
h: refs/heads/master
v: v3
  • Loading branch information
OGAWA Hirofumi authored and Linus Torvalds committed Oct 20, 2006
1 parent 65448a1 commit fcb773a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 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: 82591e6ea234762eeaa8b2337fe060ed438c18dc
refs/heads/master: 3e2a532b26b491706bd8b5c7cfc8d767b43b8f36
5 changes: 3 additions & 2 deletions trunk/fs/jbd/transaction.c
Original file line number Diff line number Diff line change
Expand Up @@ -1314,13 +1314,14 @@ int journal_stop(handle_t *handle)
int old_handle_count, err;
pid_t pid;

J_ASSERT(transaction->t_updates > 0);
J_ASSERT(journal_current_handle() == handle);

if (is_handle_aborted(handle))
err = -EIO;
else
else {
J_ASSERT(transaction->t_updates > 0);
err = 0;
}

if (--handle->h_ref > 0) {
jbd_debug(4, "h_ref %d -> %d\n", handle->h_ref + 1,
Expand Down
5 changes: 3 additions & 2 deletions trunk/fs/jbd2/transaction.c
Original file line number Diff line number Diff line change
Expand Up @@ -1314,13 +1314,14 @@ int jbd2_journal_stop(handle_t *handle)
int old_handle_count, err;
pid_t pid;

J_ASSERT(transaction->t_updates > 0);
J_ASSERT(journal_current_handle() == handle);

if (is_handle_aborted(handle))
err = -EIO;
else
else {
J_ASSERT(transaction->t_updates > 0);
err = 0;
}

if (--handle->h_ref > 0) {
jbd_debug(4, "h_ref %d -> %d\n", handle->h_ref + 1,
Expand Down

0 comments on commit fcb773a

Please sign in to comment.