• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/jbd2/

Lines Matching defs:nblocks

122 	int nblocks = handle->h_buffer_credits;
125 if (nblocks > journal->j_max_transaction_buffers) {
127 current->comm, nblocks,
209 needed = atomic_add_return(nblocks,
221 atomic_sub(nblocks, &transaction->t_outstanding_credits);
258 atomic_sub(nblocks, &transaction->t_outstanding_credits);
275 handle, nblocks,
288 static handle_t *new_handle(int nblocks)
294 handle->h_buffer_credits = nblocks;
306 * @nblocks: number of block buffer we might modify
308 * We make sure that the transaction can guarantee at least nblocks of
317 handle_t *jbd2__journal_start(journal_t *journal, int nblocks, int gfp_mask)
331 handle = new_handle(nblocks);
350 handle_t *jbd2_journal_start(journal_t *journal, int nblocks)
352 return jbd2__journal_start(journal, nblocks, GFP_NOFS);
360 * @nblocks: nr blocks to try to extend by.
377 int jbd2_journal_extend(handle_t *handle, int nblocks)
395 "transaction not running\n", handle, nblocks);
400 wanted = atomic_read(&transaction->t_outstanding_credits) + nblocks;
404 "transaction too large\n", handle, nblocks);
410 "insufficient log space\n", handle, nblocks);
414 handle->h_buffer_credits += nblocks;
415 atomic_add(nblocks, &transaction->t_outstanding_credits);
418 jbd_debug(3, "extended handle %p by %d\n", handle, nblocks);
431 * @nblocks: nr credits requested
442 int jbd2__journal_restart(handle_t *handle, int nblocks, int gfp_mask)
473 handle->h_buffer_credits = nblocks;
480 int jbd2_journal_restart(handle_t *handle, int nblocks)
482 return jbd2__journal_restart(handle, nblocks, GFP_NOFS);