diff options
author | Mark Fasheh <mark.fasheh@oracle.com> | 2006-10-05 17:15:36 -0400 |
---|---|---|
committer | Mark Fasheh <mark.fasheh@oracle.com> | 2006-12-01 21:27:04 -0500 |
commit | 1fc581467e52546195c7ee8233a34d63c1cc1322 (patch) | |
tree | 7aa909dfd9f48c29c7e086aa6c929c8444b461a8 /fs/ocfs2/file.c | |
parent | 01ddf1e186b3b12b38c9e44912e0fd6a1cbc882b (diff) |
ocfs2: have ocfs2_extend_trans() take handle_t
No reason to use our wrapper struct in this function, so take the handle_t
directly.
Also fixes a bug where we were incorrectly setting the handle to NULL in
case of a failure from journal_restart()
Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
Diffstat (limited to 'fs/ocfs2/file.c')
-rw-r--r-- | fs/ocfs2/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ocfs2/file.c b/fs/ocfs2/file.c index 1be74c4e7814..d8bd2c32f08a 100644 --- a/fs/ocfs2/file.c +++ b/fs/ocfs2/file.c | |||
@@ -566,7 +566,7 @@ restarted_transaction: | |||
566 | credits = ocfs2_calc_extend_credits(osb->sb, | 566 | credits = ocfs2_calc_extend_credits(osb->sb, |
567 | fe, | 567 | fe, |
568 | clusters_to_add); | 568 | clusters_to_add); |
569 | status = ocfs2_extend_trans(handle, credits); | 569 | status = ocfs2_extend_trans(handle->k_handle, credits); |
570 | if (status < 0) { | 570 | if (status < 0) { |
571 | /* handle still has to be committed at | 571 | /* handle still has to be committed at |
572 | * this point. */ | 572 | * this point. */ |