Lines Matching refs:nblocks
85 int nblocks = handle->h_buffer_credits;
89 if (nblocks > journal->j_max_transaction_buffers) {
91 current->comm, nblocks,
165 needed = transaction->t_outstanding_credits + nblocks;
222 transaction->t_outstanding_credits += nblocks;
226 handle, nblocks, transaction->t_outstanding_credits,
237 static handle_t *new_handle(int nblocks)
243 handle->h_buffer_credits = nblocks;
252 * @nblocks: number of block buffer we might modify
254 * We make sure that the transaction can guarantee at least nblocks of
263 handle_t *journal_start(journal_t *journal, int nblocks)
277 handle = new_handle(nblocks);
295 * @nblocks: nr blocks to try to extend by.
312 int journal_extend(handle_t *handle, int nblocks)
330 "transaction not running\n", handle, nblocks);
335 wanted = transaction->t_outstanding_credits + nblocks;
339 "transaction too large\n", handle, nblocks);
345 "insufficient log space\n", handle, nblocks);
349 handle->h_buffer_credits += nblocks;
350 transaction->t_outstanding_credits += nblocks;
353 jbd_debug(3, "extended handle %p by %d\n", handle, nblocks);
366 * @nblocks: nr credits requested
378 int journal_restart(handle_t *handle, int nblocks)
409 handle->h_buffer_credits = nblocks;