Lines Matching refs:nblocks
462 static handle_t *new_handle(int nblocks) in new_handle() argument
467 handle->h_total_credits = nblocks; in new_handle()
473 handle_t *jbd2__journal_start(journal_t *journal, int nblocks, int rsv_blocks, in jbd2__journal_start() argument
489 nblocks += DIV_ROUND_UP(revoke_records, in jbd2__journal_start()
491 handle = new_handle(nblocks); in jbd2__journal_start()
519 line_no, nblocks); in jbd2__journal_start()
545 handle_t *jbd2_journal_start(journal_t *journal, int nblocks) in jbd2_journal_start() argument
547 return jbd2__journal_start(journal, nblocks, 0, 0, GFP_NOFS, 0, 0); in jbd2_journal_start()
648 int jbd2_journal_extend(handle_t *handle, int nblocks, int revoke_records) in jbd2_journal_extend() argument
666 "transaction not running\n", handle, nblocks); in jbd2_journal_extend()
670 nblocks += DIV_ROUND_UP( in jbd2_journal_extend()
677 wanted = atomic_add_return(nblocks, in jbd2_journal_extend()
682 "transaction too large\n", handle, nblocks); in jbd2_journal_extend()
683 atomic_sub(nblocks, &transaction->t_outstanding_credits); in jbd2_journal_extend()
691 nblocks); in jbd2_journal_extend()
693 handle->h_total_credits += nblocks; in jbd2_journal_extend()
694 handle->h_requested_credits += nblocks; in jbd2_journal_extend()
699 jbd_debug(3, "extended handle %p by %d\n", handle, nblocks); in jbd2_journal_extend()
769 int jbd2__journal_restart(handle_t *handle, int nblocks, int revoke_records, in jbd2__journal_restart() argument
802 handle->h_total_credits = nblocks + in jbd2__journal_restart()
816 int jbd2_journal_restart(handle_t *handle, int nblocks) in jbd2_journal_restart() argument
818 return jbd2__journal_restart(handle, nblocks, 0, GFP_NOFS); in jbd2_journal_restart()