diff options
author | Mark Fasheh <mark.fasheh@oracle.com> | 2006-10-05 23:15:36 +0200 |
---|---|---|
committer | Mark Fasheh <mark.fasheh@oracle.com> | 2006-12-02 03:27:04 +0100 |
commit | 1fc581467e52546195c7ee8233a34d63c1cc1322 (patch) | |
tree | 7aa909dfd9f48c29c7e086aa6c929c8444b461a8 /fs/ocfs2/alloc.c | |
parent | ocfs2: remove unused ocfs2_journal_handle field (diff) | |
download | linux-1fc581467e52546195c7ee8233a34d63c1cc1322.tar.xz linux-1fc581467e52546195c7ee8233a34d63c1cc1322.zip |
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/alloc.c')
-rw-r--r-- | fs/ocfs2/alloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ocfs2/alloc.c b/fs/ocfs2/alloc.c index f43bc5f18a35..74b93f924296 100644 --- a/fs/ocfs2/alloc.c +++ b/fs/ocfs2/alloc.c @@ -1074,7 +1074,7 @@ static int ocfs2_replay_truncate_records(struct ocfs2_super *osb, /* TODO: Perhaps we can calculate the bulk of the * credits up front rather than extending like * this. */ - status = ocfs2_extend_trans(handle, + status = ocfs2_extend_trans(handle->k_handle, OCFS2_TRUNCATE_LOG_FLUSH_ONE_REC); if (status < 0) { mlog_errno(status); |