diff options
author | Ding Dinghua <dingdinghua@nrchpc.ac.cn> | 2011-05-25 22:29:01 -0400 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2011-06-25 11:29:51 -0400 |
commit | bd5c9e1854e13d0c62a3de29a5fbc15dd6a4d8c6 (patch) | |
tree | 7ae5b23da18582e469353f5dee35efa93fb36ff0 /fs/jbd | |
parent | 05713082ab7690a2b22b044cfc867f346c39cd2d (diff) |
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: Ding Dinghua <dingdinghua@nrchpc.ac.cn>
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/jbd')
-rw-r--r-- | fs/jbd/transaction.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/jbd/transaction.c b/fs/jbd/transaction.c index 83a661890868..dc39efd05d54 100644 --- a/fs/jbd/transaction.c +++ b/fs/jbd/transaction.c | |||
@@ -844,8 +844,8 @@ int journal_get_create_access(handle_t *handle, struct buffer_head *bh) | |||
844 | */ | 844 | */ |
845 | JBUFFER_TRACE(jh, "cancelling revoke"); | 845 | JBUFFER_TRACE(jh, "cancelling revoke"); |
846 | journal_cancel_revoke(handle, jh); | 846 | journal_cancel_revoke(handle, jh); |
847 | journal_put_journal_head(jh); | ||
848 | out: | 847 | out: |
848 | journal_put_journal_head(jh); | ||
849 | return err; | 849 | return err; |
850 | } | 850 | } |
851 | 851 | ||