Lines Matching defs:blocks
66 * Base amount of descriptor blocks we reserve for each transaction.
81 * space for commit block and normal transaction descriptor blocks.
210 static void sub_reserved_credits(journal_t *journal, int blocks)
212 atomic_sub(blocks, &journal->j_reserved_credits);
227 static int add_transaction_credits(journal_t *journal, int blocks,
233 int total = blocks + rsv_blocks;
335 int blocks = handle->h_total_credits;
348 (rsv_blocks + blocks > journal->j_max_transaction_buffers)) {
351 current->comm, blocks, rsv_blocks,
422 if (add_transaction_credits(journal, blocks, rsv_blocks)) {
442 sub_reserved_credits(journal, blocks);
451 handle->h_requested_credits = blocks;
457 handle, blocks,
546 * handle with rsv_blocks reserved blocks in the journal. This handle is
642 * @nblocks: nr blocks to try to extend by.
677 jbd2_debug(3, "denied handle %p %d blocks: "
692 jbd2_debug(3, "denied handle %p %d blocks: "
726 * Subtract necessary revoke descriptor blocks from handle credits. We
727 * take care to account only for revoke descriptor blocks the
872 * This locks out any further updates from being started, and blocks
1332 * blocks which contain freed but then revoked metadata. We need
2228 * Any disk blocks which *are* part of the previous, committing
2236 * leaving committing buffers dirty is quite safe: the disk blocks
2389 * expose the disk blocks we are discarding here.) */