Lines Matching refs:need_bytes
57 int need_bytes);
193 int need_bytes; in xlog_grant_head_wake() local
219 need_bytes = xlog_ticket_reservation(log, head, tic); in xlog_grant_head_wake()
220 if (*free_bytes < need_bytes) { in xlog_grant_head_wake()
222 xlog_grant_push_ail(log, need_bytes); in xlog_grant_head_wake()
226 *free_bytes -= need_bytes; in xlog_grant_head_wake()
240 int need_bytes) __releases(&head->lock) in xlog_grant_head_wait() argument
248 xlog_grant_push_ail(log, need_bytes); in xlog_grant_head_wait()
262 } while (xlog_space_left(log, &head->grant) < need_bytes); in xlog_grant_head_wait()
293 int *need_bytes) in xlog_grant_head_check() argument
306 *need_bytes = xlog_ticket_reservation(log, head, tic); in xlog_grant_head_check()
311 free_bytes < *need_bytes) { in xlog_grant_head_check()
313 *need_bytes); in xlog_grant_head_check()
316 } else if (free_bytes < *need_bytes) { in xlog_grant_head_check()
318 error = xlog_grant_head_wait(log, head, tic, *need_bytes); in xlog_grant_head_check()
379 int need_bytes; in xfs_log_regrant() local
406 &need_bytes); in xfs_log_regrant()
410 xlog_grant_add_space(log, &log->l_write_head.grant, need_bytes); in xfs_log_regrant()
445 int need_bytes; in xfs_log_reserve() local
465 &need_bytes); in xfs_log_reserve()
469 xlog_grant_add_space(log, &log->l_reserve_head.grant, need_bytes); in xfs_log_reserve()
470 xlog_grant_add_space(log, &log->l_write_head.grant, need_bytes); in xfs_log_reserve()
1669 int need_bytes) in xlog_grant_push_threshold() argument
1679 ASSERT(BTOBB(need_bytes) < log->l_logBBsize); in xlog_grant_push_threshold()
1689 free_threshold = BTOBB(need_bytes); in xlog_grant_push_threshold()
1726 int need_bytes) in xlog_grant_push_ail() argument
1730 threshold_lsn = xlog_grant_push_threshold(log, need_bytes); in xlog_grant_push_ail()