Lines Matching refs:need_bytes

98 	int			need_bytes);
238 int need_bytes; in xlog_grant_head_wake() local
241 need_bytes = xlog_ticket_reservation(log, head, tic); in xlog_grant_head_wake()
242 if (*free_bytes < need_bytes) in xlog_grant_head_wake()
245 *free_bytes -= need_bytes; in xlog_grant_head_wake()
258 int need_bytes) __releases(&head->lock) in xlog_grant_head_wait() argument
266 xlog_grant_push_ail(log, need_bytes); in xlog_grant_head_wait()
280 } while (xlog_space_left(log, &head->grant) < need_bytes); in xlog_grant_head_wait()
311 int *need_bytes) in xlog_grant_head_check() argument
324 *need_bytes = xlog_ticket_reservation(log, head, tic); in xlog_grant_head_check()
329 free_bytes < *need_bytes) { in xlog_grant_head_check()
331 *need_bytes); in xlog_grant_head_check()
334 } else if (free_bytes < *need_bytes) { in xlog_grant_head_check()
336 error = xlog_grant_head_wait(log, head, tic, *need_bytes); in xlog_grant_head_check()
376 int need_bytes; in xfs_log_regrant() local
403 &need_bytes); in xfs_log_regrant()
407 xlog_grant_add_space(log, &log->l_write_head.grant, need_bytes); in xfs_log_regrant()
443 int need_bytes; in xfs_log_reserve() local
468 &need_bytes); in xfs_log_reserve()
472 xlog_grant_add_space(log, &log->l_reserve_head.grant, need_bytes); in xfs_log_reserve()
473 xlog_grant_add_space(log, &log->l_write_head.grant, need_bytes); in xfs_log_reserve()
1557 int need_bytes) in xlog_grant_push_ail() argument
1567 ASSERT(BTOBB(need_bytes) < log->l_logBBsize); in xlog_grant_push_ail()
1577 free_threshold = BTOBB(need_bytes); in xlog_grant_push_ail()