Lines Matching defs:nblocks
88 int nblocks = handle->h_buffer_credits;
92 if (nblocks > journal->j_max_transaction_buffers) {
94 current->comm, nblocks,
167 needed = transaction->t_outstanding_credits + nblocks;
224 transaction->t_outstanding_credits += nblocks;
228 handle, nblocks, transaction->t_outstanding_credits,
243 static handle_t *new_handle(int nblocks)
249 handle->h_buffer_credits = nblocks;
260 * @nblocks: number of block buffer we might modify
262 * We make sure that the transaction can guarantee at least nblocks of
271 handle_t *journal_start(journal_t *journal, int nblocks)
285 handle = new_handle(nblocks);
305 * @nblocks: nr blocks to try to extend by.
322 int journal_extend(handle_t *handle, int nblocks)
340 "transaction not running\n", handle, nblocks);
345 wanted = transaction->t_outstanding_credits + nblocks;
349 "transaction too large\n", handle, nblocks);
355 "insufficient log space\n", handle, nblocks);
359 handle->h_buffer_credits += nblocks;
360 transaction->t_outstanding_credits += nblocks;
363 jbd_debug(3, "extended handle %p by %d\n", handle, nblocks);
376 * @nblocks: nr credits requested
388 int journal_restart(handle_t *handle, int nblocks)
420 handle->h_buffer_credits = nblocks;