Lines Matching refs:nblocks
381 static handle_t *new_handle(int nblocks) in new_handle() argument
386 handle->h_buffer_credits = nblocks; in new_handle()
414 handle_t *jbd2__journal_start(journal_t *journal, int nblocks, int rsv_blocks, in jbd2__journal_start() argument
430 handle = new_handle(nblocks); in jbd2__journal_start()
457 line_no, nblocks); in jbd2__journal_start()
463 handle_t *jbd2_journal_start(journal_t *journal, int nblocks) in jbd2_journal_start() argument
465 return jbd2__journal_start(journal, nblocks, 0, GFP_NOFS, 0, 0); in jbd2_journal_start()
547 int jbd2_journal_extend(handle_t *handle, int nblocks) in jbd2_journal_extend() argument
565 "transaction not running\n", handle, nblocks); in jbd2_journal_extend()
570 wanted = atomic_add_return(nblocks, in jbd2_journal_extend()
575 "transaction too large\n", handle, nblocks); in jbd2_journal_extend()
576 atomic_sub(nblocks, &transaction->t_outstanding_credits); in jbd2_journal_extend()
583 "insufficient log space\n", handle, nblocks); in jbd2_journal_extend()
584 atomic_sub(nblocks, &transaction->t_outstanding_credits); in jbd2_journal_extend()
592 nblocks); in jbd2_journal_extend()
594 handle->h_buffer_credits += nblocks; in jbd2_journal_extend()
595 handle->h_requested_credits += nblocks; in jbd2_journal_extend()
598 jbd_debug(3, "extended handle %p by %d\n", handle, nblocks); in jbd2_journal_extend()
622 int jbd2__journal_restart(handle_t *handle, int nblocks, gfp_t gfp_mask) in jbd2__journal_restart() argument
664 handle->h_buffer_credits = nblocks; in jbd2__journal_restart()
671 int jbd2_journal_restart(handle_t *handle, int nblocks) in jbd2_journal_restart() argument
673 return jbd2__journal_restart(handle, nblocks, GFP_NOFS); in jbd2_journal_restart()