max_buffs was just being set and not actually used.
Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
return NULL;
}
- retval->max_buffs = 0;
retval->num_locks = 0;
retval->k_handle = NULL;
goto done_free;
}
- handle->max_buffs = max_buffs;
-
down_read(&osb->journal->j_trans_barrier);
/* actually start the transaction now */
mlog_errno(status);
goto bail;
}
- handle->max_buffs = nblocks;
- } else
- handle->max_buffs += nblocks;
+ }
status = 0;
bail:
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;