Lines Matching refs:nblocks

393 static handle_t *new_handle(int nblocks)  in new_handle()  argument
398 handle->h_buffer_credits = nblocks; in new_handle()
426 handle_t *jbd2__journal_start(journal_t *journal, int nblocks, int rsv_blocks, in jbd2__journal_start() argument
442 handle = new_handle(nblocks); in jbd2__journal_start()
469 line_no, nblocks); in jbd2__journal_start()
475 handle_t *jbd2_journal_start(journal_t *journal, int nblocks) in jbd2_journal_start() argument
477 return jbd2__journal_start(journal, nblocks, 0, GFP_NOFS, 0, 0); in jbd2_journal_start()
559 int jbd2_journal_extend(handle_t *handle, int nblocks) in jbd2_journal_extend() argument
577 "transaction not running\n", handle, nblocks); in jbd2_journal_extend()
582 wanted = atomic_add_return(nblocks, in jbd2_journal_extend()
587 "transaction too large\n", handle, nblocks); in jbd2_journal_extend()
588 atomic_sub(nblocks, &transaction->t_outstanding_credits); in jbd2_journal_extend()
595 "insufficient log space\n", handle, nblocks); in jbd2_journal_extend()
596 atomic_sub(nblocks, &transaction->t_outstanding_credits); in jbd2_journal_extend()
604 nblocks); in jbd2_journal_extend()
606 handle->h_buffer_credits += nblocks; in jbd2_journal_extend()
607 handle->h_requested_credits += nblocks; in jbd2_journal_extend()
610 jbd_debug(3, "extended handle %p by %d\n", handle, nblocks); in jbd2_journal_extend()
634 int jbd2__journal_restart(handle_t *handle, int nblocks, gfp_t gfp_mask) in jbd2__journal_restart() argument
676 handle->h_buffer_credits = nblocks; in jbd2__journal_restart()
683 int jbd2_journal_restart(handle_t *handle, int nblocks) in jbd2_journal_restart() argument
685 return jbd2__journal_restart(handle, nblocks, GFP_NOFS); in jbd2_journal_restart()