Lines Matching refs:need_bytes
77 int need_bytes);
216 int need_bytes; in xlog_grant_head_wake() local
242 need_bytes = xlog_ticket_reservation(log, head, tic); in xlog_grant_head_wake()
243 if (*free_bytes < need_bytes) { in xlog_grant_head_wake()
245 xlog_grant_push_ail(log, need_bytes); in xlog_grant_head_wake()
249 *free_bytes -= need_bytes; in xlog_grant_head_wake()
263 int need_bytes) __releases(&head->lock) in xlog_grant_head_wait() argument
271 xlog_grant_push_ail(log, need_bytes); in xlog_grant_head_wait()
285 } while (xlog_space_left(log, &head->grant) < need_bytes); in xlog_grant_head_wait()
316 int *need_bytes) in xlog_grant_head_check() argument
329 *need_bytes = xlog_ticket_reservation(log, head, tic); in xlog_grant_head_check()
334 free_bytes < *need_bytes) { in xlog_grant_head_check()
336 *need_bytes); in xlog_grant_head_check()
339 } else if (free_bytes < *need_bytes) { in xlog_grant_head_check()
341 error = xlog_grant_head_wait(log, head, tic, *need_bytes); in xlog_grant_head_check()
381 int need_bytes; in xfs_log_regrant() local
408 &need_bytes); in xfs_log_regrant()
412 xlog_grant_add_space(log, &log->l_write_head.grant, need_bytes); in xfs_log_regrant()
447 int need_bytes; in xfs_log_reserve() local
467 &need_bytes); in xfs_log_reserve()
471 xlog_grant_add_space(log, &log->l_reserve_head.grant, need_bytes); in xfs_log_reserve()
472 xlog_grant_add_space(log, &log->l_write_head.grant, need_bytes); in xfs_log_reserve()
1547 int need_bytes) in xlog_grant_push_ail() argument
1557 ASSERT(BTOBB(need_bytes) < log->l_logBBsize); in xlog_grant_push_ail()
1567 free_threshold = BTOBB(need_bytes); in xlog_grant_push_ail()