summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDing Dinghua <dingdinghua@nrchpc.ac.cn>2011-05-26 10:29:01 +0800
committerJan Kara <jack@suse.cz>2011-06-25 17:29:51 +0200
commitbd5c9e1854e13d0c62a3de29a5fbc15dd6a4d8c6 (patch)
tree7ae5b23da18582e469353f5dee35efa93fb36ff0
parent05713082ab7690a2b22b044cfc867f346c39cd2d (diff)
downloadlinux-bd5c9e1854e13d0c62a3de29a5fbc15dd6a4d8c6.tar.gz
linux-bd5c9e1854e13d0c62a3de29a5fbc15dd6a4d8c6.tar.bz2
linux-bd5c9e1854e13d0c62a3de29a5fbc15dd6a4d8c6.zip
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>
-rw-r--r--fs/jbd/transaction.c2
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)
*/
JBUFFER_TRACE(jh, "cancelling revoke");
journal_cancel_revoke(handle, jh);
- journal_put_journal_head(jh);
out:
+ journal_put_journal_head(jh);
return err;
}