Skip to content

Commit

Permalink
jbd: fix a bug of leaking jh->b_jcount
Browse files Browse the repository at this point in the history
journal_get_create_access should drop jh->b_jcount in error handling path

Signed-off-by: Ding Dinghua <[email protected]>
Signed-off-by: Jan Kara <[email protected]>
  • Loading branch information
Ding Dinghua authored and jankara committed Jun 25, 2011
1 parent 0571308 commit bd5c9e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/jbd/transaction.c
Original file line number Diff line number Diff line change
Expand Up @@ -844,8 +844,8 @@ int journal_get_create_access(handle_t *handle, struct buffer_head *bh)
*/
JBUFFER_TRACE(jh, "cancelling revoke");
journal_cancel_revoke(handle, jh);
journal_put_journal_head(jh);
out:
journal_put_journal_head(jh);
return err;
}

Expand Down

0 comments on commit bd5c9e1

Please sign in to comment.