Lines Matching refs:nblocks
474 static handle_t *new_handle(int nblocks)
479 handle->h_total_credits = nblocks;
485 handle_t *jbd2__journal_start(journal_t *journal, int nblocks, int rsv_blocks,
501 nblocks += DIV_ROUND_UP(revoke_records,
503 handle = new_handle(nblocks);
531 line_no, nblocks);
541 * @nblocks: number of block buffer we might modify
543 * We make sure that the transaction can guarantee at least nblocks of
557 handle_t *jbd2_journal_start(journal_t *journal, int nblocks)
559 return jbd2__journal_start(journal, nblocks, 0, 0, GFP_NOFS, 0, 0);
642 * @nblocks: nr blocks to try to extend by.
660 int jbd2_journal_extend(handle_t *handle, int nblocks, int revoke_records)
678 "transaction not running\n", handle, nblocks);
682 nblocks += DIV_ROUND_UP(
688 wanted = atomic_add_return(nblocks,
693 "transaction too large\n", handle, nblocks);
694 atomic_sub(nblocks, &transaction->t_outstanding_credits);
702 nblocks);
704 handle->h_total_credits += nblocks;
705 handle->h_requested_credits += nblocks;
710 jbd2_debug(3, "extended handle %p by %d\n", handle, nblocks);
764 * @nblocks: nr credits requested
778 int jbd2__journal_restart(handle_t *handle, int nblocks, int revoke_records,
811 handle->h_total_credits = nblocks +
825 int jbd2_journal_restart(handle_t *handle, int nblocks)
827 return jbd2__journal_restart(handle, nblocks, 0, GFP_NOFS);