Lines Matching refs:need_bytes

56 	int			need_bytes);
244 int need_bytes; in xlog_grant_head_wake() local
270 need_bytes = xlog_ticket_reservation(log, head, tic); in xlog_grant_head_wake()
271 if (*free_bytes < need_bytes) { in xlog_grant_head_wake()
273 xlog_grant_push_ail(log, need_bytes); in xlog_grant_head_wake()
277 *free_bytes -= need_bytes; in xlog_grant_head_wake()
291 int need_bytes) __releases(&head->lock) in xlog_grant_head_wait() argument
299 xlog_grant_push_ail(log, need_bytes); in xlog_grant_head_wait()
313 } while (xlog_space_left(log, &head->grant) < need_bytes); in xlog_grant_head_wait()
344 int *need_bytes) in xlog_grant_head_check() argument
357 *need_bytes = xlog_ticket_reservation(log, head, tic); in xlog_grant_head_check()
362 free_bytes < *need_bytes) { in xlog_grant_head_check()
364 *need_bytes); in xlog_grant_head_check()
367 } else if (free_bytes < *need_bytes) { in xlog_grant_head_check()
369 error = xlog_grant_head_wait(log, head, tic, *need_bytes); in xlog_grant_head_check()
406 int need_bytes; in xfs_log_regrant() local
431 &need_bytes); in xfs_log_regrant()
435 xlog_grant_add_space(log, &log->l_write_head.grant, need_bytes); in xfs_log_regrant()
469 int need_bytes; in xfs_log_reserve() local
487 &need_bytes); in xfs_log_reserve()
491 xlog_grant_add_space(log, &log->l_reserve_head.grant, need_bytes); in xfs_log_reserve()
492 xlog_grant_add_space(log, &log->l_write_head.grant, need_bytes); in xfs_log_reserve()
1718 int need_bytes) in xlog_grant_push_threshold() argument
1728 ASSERT(BTOBB(need_bytes) < log->l_logBBsize); in xlog_grant_push_threshold()
1738 free_threshold = BTOBB(need_bytes); in xlog_grant_push_threshold()
1775 int need_bytes) in xlog_grant_push_ail() argument
1779 threshold_lsn = xlog_grant_push_threshold(log, need_bytes); in xlog_grant_push_ail()