Lines Matching refs:nblocks

479 static handle_t *new_handle(int nblocks)  in new_handle()  argument
484 handle->h_total_credits = nblocks; in new_handle()
490 handle_t *jbd2__journal_start(journal_t *journal, int nblocks, int rsv_blocks, in jbd2__journal_start() argument
506 nblocks += DIV_ROUND_UP(revoke_records, in jbd2__journal_start()
508 handle = new_handle(nblocks); in jbd2__journal_start()
536 line_no, nblocks); in jbd2__journal_start()
562 handle_t *jbd2_journal_start(journal_t *journal, int nblocks) in jbd2_journal_start() argument
564 return jbd2__journal_start(journal, nblocks, 0, 0, GFP_NOFS, 0, 0); in jbd2_journal_start()
665 int jbd2_journal_extend(handle_t *handle, int nblocks, int revoke_records) in jbd2_journal_extend() argument
683 "transaction not running\n", handle, nblocks); in jbd2_journal_extend()
687 nblocks += DIV_ROUND_UP( in jbd2_journal_extend()
694 wanted = atomic_add_return(nblocks, in jbd2_journal_extend()
699 "transaction too large\n", handle, nblocks); in jbd2_journal_extend()
700 atomic_sub(nblocks, &transaction->t_outstanding_credits); in jbd2_journal_extend()
708 nblocks); in jbd2_journal_extend()
710 handle->h_total_credits += nblocks; in jbd2_journal_extend()
711 handle->h_requested_credits += nblocks; in jbd2_journal_extend()
716 jbd_debug(3, "extended handle %p by %d\n", handle, nblocks); in jbd2_journal_extend()
786 int jbd2__journal_restart(handle_t *handle, int nblocks, int revoke_records, in jbd2__journal_restart() argument
819 handle->h_total_credits = nblocks + in jbd2__journal_restart()
833 int jbd2_journal_restart(handle_t *handle, int nblocks) in jbd2_journal_restart() argument
835 return jbd2__journal_restart(handle, nblocks, 0, GFP_NOFS); in jbd2_journal_restart()