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.
215 static void sub_reserved_credits(journal_t *journal, int blocks)
217 atomic_sub(blocks, &journal->j_reserved_credits);
227 static int add_transaction_credits(journal_t *journal, int blocks,
232 int total = blocks + rsv_blocks;
329 int blocks = handle->h_total_credits;
342 (rsv_blocks + blocks > journal->j_max_transaction_buffers)) {
345 current->comm, blocks, rsv_blocks,
416 if (add_transaction_credits(journal, blocks, rsv_blocks))
430 sub_reserved_credits(journal, blocks);
439 handle->h_requested_credits = blocks;
445 handle, blocks,
534 * handle with rsv_blocks reserved blocks in the journal. This handle is
630 * @nblocks: nr blocks to try to extend by.
665 jbd_debug(3, "denied handle %p %d blocks: "
681 jbd_debug(3, "denied handle %p %d blocks: "
717 * Subtract necessary revoke descriptor blocks from handle credits. We
718 * take care to account only for revoke descriptor blocks the
826 * This locks out any further updates from being started, and blocks
1310 * blocks which contain freed but then revoked metadata. We need
2230 * Any disk blocks which *are* part of the previous, committing
2238 * leaving committing buffers dirty is quite safe: the disk blocks
2391 * expose the disk blocks we are discarding here.) */