Commit bd5c9e18 authored by Ding Dinghua's avatar Ding Dinghua Committed by Jan Kara

jbd: fix a bug of leaking jh->b_jcount

journal_get_create_access should drop jh->b_jcount in error handling path
Signed-off-by: default avatarDing Dinghua <dingdinghua@nrchpc.ac.cn>
Signed-off-by: default avatarJan Kara <jack@suse.cz>
parent 05713082
...@@ -844,8 +844,8 @@ int journal_get_create_access(handle_t *handle, struct buffer_head *bh) ...@@ -844,8 +844,8 @@ int journal_get_create_access(handle_t *handle, struct buffer_head *bh)
*/ */
JBUFFER_TRACE(jh, "cancelling revoke"); JBUFFER_TRACE(jh, "cancelling revoke");
journal_cancel_revoke(handle, jh); journal_cancel_revoke(handle, jh);
journal_put_journal_head(jh);
out: out:
journal_put_journal_head(jh);
return err; return err;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment