Lines Matching defs:nblocks
84 int nblocks = handle->h_buffer_credits;
88 if (nblocks > journal->j_max_transaction_buffers) {
90 current->comm, nblocks,
164 needed = transaction->t_outstanding_credits + nblocks;
221 transaction->t_outstanding_credits += nblocks;
225 handle, nblocks, transaction->t_outstanding_credits,
235 static hfsplus_jbd_handle_t *new_handle(int nblocks)
241 handle->h_buffer_credits = nblocks;
250 * @nblocks: number of block buffer we might modify
252 * We make sure that the transaction can guarantee at least nblocks of
261 hfsplus_jbd_handle_t *hfsplus_jbd_start(hfsplus_jbd_t *journal, int nblocks, hfsplus_handle_t *hfsplus_handle)
275 hfsplus_handle->handle = new_handle(nblocks);
293 * @nblocks: nr blocks to try to extend by.
310 int hfsplus_jbd_extend(hfsplus_jbd_handle_t *handle, int nblocks)
328 "transaction not running\n", handle, nblocks);
333 wanted = transaction->t_outstanding_credits + nblocks;
337 "transaction too large\n", handle, nblocks);
343 "insufficient log space\n", handle, nblocks);
347 handle->h_buffer_credits += nblocks;
348 transaction->t_outstanding_credits += nblocks;
351 hfsplus_jbd_debug(3, "extended handle %p by %d\n", handle, nblocks);
364 * @nblocks: nr credits requested
376 int hfsplus_jbd_restart(hfsplus_jbd_handle_t *handle, int nblocks)
409 handle->h_buffer_credits = nblocks;