Lines Matching refs:need_bytes
87 int need_bytes);
227 int need_bytes; in xlog_grant_head_wake() local
230 need_bytes = xlog_ticket_reservation(log, head, tic); in xlog_grant_head_wake()
231 if (*free_bytes < need_bytes) in xlog_grant_head_wake()
234 *free_bytes -= need_bytes; in xlog_grant_head_wake()
247 int need_bytes) __releases(&head->lock) in xlog_grant_head_wait() argument
255 xlog_grant_push_ail(log, need_bytes); in xlog_grant_head_wait()
269 } while (xlog_space_left(log, &head->grant) < need_bytes); in xlog_grant_head_wait()
300 int *need_bytes) in xlog_grant_head_check() argument
313 *need_bytes = xlog_ticket_reservation(log, head, tic); in xlog_grant_head_check()
318 free_bytes < *need_bytes) { in xlog_grant_head_check()
320 *need_bytes); in xlog_grant_head_check()
323 } else if (free_bytes < *need_bytes) { in xlog_grant_head_check()
325 error = xlog_grant_head_wait(log, head, tic, *need_bytes); in xlog_grant_head_check()
365 int need_bytes; in xfs_log_regrant() local
392 &need_bytes); in xfs_log_regrant()
396 xlog_grant_add_space(log, &log->l_write_head.grant, need_bytes); in xfs_log_regrant()
431 int need_bytes; in xfs_log_reserve() local
455 &need_bytes); in xfs_log_reserve()
459 xlog_grant_add_space(log, &log->l_reserve_head.grant, need_bytes); in xfs_log_reserve()
460 xlog_grant_add_space(log, &log->l_write_head.grant, need_bytes); in xfs_log_reserve()
1632 int need_bytes) in xlog_grant_push_ail() argument
1642 ASSERT(BTOBB(need_bytes) < log->l_logBBsize); in xlog_grant_push_ail()
1652 free_threshold = BTOBB(need_bytes); in xlog_grant_push_ail()