Skip to content

Commit

Permalink
ocfs2: remove unused ocfs2_journal_handle field
Browse files Browse the repository at this point in the history
max_buffs was just being set and not actually used.

Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
  • Loading branch information
Mark Fasheh committed Dec 2, 2006
1 parent f5a923d commit 01ddf1e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
7 changes: 1 addition & 6 deletions fs/ocfs2/journal.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ struct ocfs2_journal_handle *ocfs2_alloc_handle(struct ocfs2_super *osb)
return NULL;
}

retval->max_buffs = 0;
retval->num_locks = 0;
retval->k_handle = NULL;

Expand Down Expand Up @@ -172,8 +171,6 @@ struct ocfs2_journal_handle *ocfs2_start_trans(struct ocfs2_super *osb,
goto done_free;
}

handle->max_buffs = max_buffs;

down_read(&osb->journal->j_trans_barrier);

/* actually start the transaction now */
Expand Down Expand Up @@ -353,9 +350,7 @@ int ocfs2_extend_trans(struct ocfs2_journal_handle *handle,
mlog_errno(status);
goto bail;
}
handle->max_buffs = nblocks;
} else
handle->max_buffs += nblocks;
}

status = 0;
bail:
Expand Down
1 change: 0 additions & 1 deletion fs/ocfs2/journal.h
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ struct ocfs2_journal_handle {
handle_t *k_handle; /* kernel handle. */
struct ocfs2_journal *journal;
u32 flags; /* see flags below. */
int max_buffs; /* Buffs reserved by this handle */

/* The following two fields are for ocfs2_handle_add_lock */
int num_locks;
Expand Down

0 comments on commit 01ddf1e

Please sign in to comment.