Lines Matching refs:nblocks
95 int nblocks = handle->h_buffer_credits; in start_this_handle() local
97 if (nblocks > journal->j_max_transaction_buffers) { in start_this_handle()
99 current->comm, nblocks, in start_this_handle()
147 needed = transaction->t_outstanding_credits + nblocks; in start_this_handle()
202 transaction->t_outstanding_credits += nblocks; in start_this_handle()
206 handle, nblocks, transaction->t_outstanding_credits, in start_this_handle()
215 static handle_t *new_handle(int nblocks) in new_handle() argument
221 handle->h_buffer_credits = nblocks; in new_handle()
242 handle_t *journal_start(journal_t *journal, int nblocks) in journal_start() argument
256 handle = new_handle(nblocks); in journal_start()
279 int nblocks = handle->h_buffer_credits; in try_start_this_handle() local
302 needed = transaction->t_outstanding_credits + nblocks; in try_start_this_handle()
316 transaction->t_outstanding_credits += nblocks; in try_start_this_handle()
319 handle, nblocks, transaction->t_outstanding_credits, in try_start_this_handle()
339 handle_t *journal_try_start(journal_t *journal, int nblocks) in journal_try_start() argument
363 handle = new_handle(nblocks); in journal_try_start()
399 int journal_extend (handle_t *handle, int nblocks) in journal_extend() argument
417 "transaction not running\n", handle, nblocks); in journal_extend()
421 wanted = transaction->t_outstanding_credits + nblocks; in journal_extend()
425 "transaction too large\n", handle, nblocks); in journal_extend()
431 "insufficient log space\n", handle, nblocks); in journal_extend()
435 handle->h_buffer_credits += nblocks; in journal_extend()
436 transaction->t_outstanding_credits += nblocks; in journal_extend()
439 jbd_debug(3, "extended handle %p by %d\n", handle, nblocks); in journal_extend()
462 int journal_restart(handle_t *handle, int nblocks) in journal_restart() argument
488 handle->h_buffer_credits = nblocks; in journal_restart()