Lines Matching defs:nblocks
462 static handle_t *new_handle(int nblocks)
467 handle->h_total_credits = nblocks;
473 handle_t *jbd2__journal_start(journal_t *journal, int nblocks, int rsv_blocks,
489 nblocks += DIV_ROUND_UP(revoke_records,
491 handle = new_handle(nblocks);
519 line_no, nblocks);
529 * @nblocks: number of block buffer we might modify
531 * We make sure that the transaction can guarantee at least nblocks of
545 handle_t *jbd2_journal_start(journal_t *journal, int nblocks)
547 return jbd2__journal_start(journal, nblocks, 0, 0, GFP_NOFS, 0, 0);
630 * @nblocks: nr blocks to try to extend by.
648 int jbd2_journal_extend(handle_t *handle, int nblocks, int revoke_records)
666 "transaction not running\n", handle, nblocks);
670 nblocks += DIV_ROUND_UP(
677 wanted = atomic_add_return(nblocks,
682 "transaction too large\n", handle, nblocks);
683 atomic_sub(nblocks, &transaction->t_outstanding_credits);
691 nblocks);
693 handle->h_total_credits += nblocks;
694 handle->h_requested_credits += nblocks;
699 jbd_debug(3, "extended handle %p by %d\n", handle, nblocks);
755 * @nblocks: nr credits requested
769 int jbd2__journal_restart(handle_t *handle, int nblocks, int revoke_records,
802 handle->h_total_credits = nblocks +
816 int jbd2_journal_restart(handle_t *handle, int nblocks)
818 return jbd2__journal_restart(handle, nblocks, 0, GFP_NOFS);