aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/journal.c
diff options
context:
space:
mode:
authorMark Fasheh <mark.fasheh@oracle.com>2006-10-05 16:54:39 -0400
committerMark Fasheh <mark.fasheh@oracle.com>2006-12-01 21:27:00 -0500
commit01ddf1e186b3b12b38c9e44912e0fd6a1cbc882b (patch)
tree8c34642493ff8cdaf0fb454441384c262f288e60 /fs/ocfs2/journal.c
parentf5a923d1ba648bfb3cc922c66981fc8e3280f57f (diff)
ocfs2: remove unused ocfs2_journal_handle field
max_buffs was just being set and not actually used. Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
Diffstat (limited to 'fs/ocfs2/journal.c')
-rw-r--r--fs/ocfs2/journal.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/fs/ocfs2/journal.c b/fs/ocfs2/journal.c
index fd9734def551..e26cd0ca5176 100644
--- a/fs/ocfs2/journal.c
+++ b/fs/ocfs2/journal.c
@@ -124,7 +124,6 @@ struct ocfs2_journal_handle *ocfs2_alloc_handle(struct ocfs2_super *osb)
124 return NULL; 124 return NULL;
125 } 125 }
126 126
127 retval->max_buffs = 0;
128 retval->num_locks = 0; 127 retval->num_locks = 0;
129 retval->k_handle = NULL; 128 retval->k_handle = NULL;
130 129
@@ -172,8 +171,6 @@ struct ocfs2_journal_handle *ocfs2_start_trans(struct ocfs2_super *osb,
172 goto done_free; 171 goto done_free;
173 } 172 }
174 173
175 handle->max_buffs = max_buffs;
176
177 down_read(&osb->journal->j_trans_barrier); 174 down_read(&osb->journal->j_trans_barrier);
178 175
179 /* actually start the transaction now */ 176 /* actually start the transaction now */
@@ -353,9 +350,7 @@ int ocfs2_extend_trans(struct ocfs2_journal_handle *handle,
353 mlog_errno(status); 350 mlog_errno(status);
354 goto bail; 351 goto bail;
355 } 352 }
356 handle->max_buffs = nblocks; 353 }
357 } else
358 handle->max_buffs += nblocks;
359 354
360 status = 0; 355 status = 0;
361bail: 356bail: