Lines Matching refs:nblocks
474 static handle_t *new_handle(int nblocks) in new_handle() argument
479 handle->h_total_credits = nblocks; in new_handle()
485 handle_t *jbd2__journal_start(journal_t *journal, int nblocks, int rsv_blocks, in jbd2__journal_start() argument
501 nblocks += DIV_ROUND_UP(revoke_records, in jbd2__journal_start()
503 handle = new_handle(nblocks); in jbd2__journal_start()
531 line_no, nblocks); in jbd2__journal_start()
557 handle_t *jbd2_journal_start(journal_t *journal, int nblocks) in jbd2_journal_start() argument
559 return jbd2__journal_start(journal, nblocks, 0, 0, GFP_NOFS, 0, 0); in jbd2_journal_start()
660 int jbd2_journal_extend(handle_t *handle, int nblocks, int revoke_records) in jbd2_journal_extend() argument
678 "transaction not running\n", handle, nblocks); in jbd2_journal_extend()
682 nblocks += DIV_ROUND_UP( in jbd2_journal_extend()
688 wanted = atomic_add_return(nblocks, in jbd2_journal_extend()
693 "transaction too large\n", handle, nblocks); in jbd2_journal_extend()
694 atomic_sub(nblocks, &transaction->t_outstanding_credits); in jbd2_journal_extend()
702 nblocks); in jbd2_journal_extend()
704 handle->h_total_credits += nblocks; in jbd2_journal_extend()
705 handle->h_requested_credits += nblocks; in jbd2_journal_extend()
710 jbd2_debug(3, "extended handle %p by %d\n", handle, nblocks); in jbd2_journal_extend()
778 int jbd2__journal_restart(handle_t *handle, int nblocks, int revoke_records, in jbd2__journal_restart() argument
811 handle->h_total_credits = nblocks + in jbd2__journal_restart()
825 int jbd2_journal_restart(handle_t *handle, int nblocks) in jbd2_journal_restart() argument
827 return jbd2__journal_restart(handle, nblocks, 0, GFP_NOFS); in jbd2_journal_restart()