From: Alex Tomas <alex@clusterfs.com>
start_this_handle() returns 0 always. because of this journal_start() may
return handle with h_transaction = NULL
int needed;
int nblocks = handle->h_buffer_credits;
transaction_t *new_transaction = NULL;
- int ret;
+ int ret = 0;
if (nblocks > journal->j_max_transaction_buffers) {
printk(KERN_ERR "JBD: %s wants too many credits (%d > %d)\n",
out:
if (new_transaction)
kfree(new_transaction);
- return 0;
+ return ret;
}
/* Allocate a new handle. This should probably be in a slab... */