Lines Matching refs:need_bytes
60 int need_bytes);
194 int need_bytes; in xlog_grant_head_wake() local
220 need_bytes = xlog_ticket_reservation(log, head, tic); in xlog_grant_head_wake()
221 if (*free_bytes < need_bytes) { in xlog_grant_head_wake()
223 xlog_grant_push_ail(log, need_bytes); in xlog_grant_head_wake()
227 *free_bytes -= need_bytes; in xlog_grant_head_wake()
241 int need_bytes) __releases(&head->lock) in xlog_grant_head_wait() argument
249 xlog_grant_push_ail(log, need_bytes); in xlog_grant_head_wait()
263 } while (xlog_space_left(log, &head->grant) < need_bytes); in xlog_grant_head_wait()
294 int *need_bytes) in xlog_grant_head_check() argument
307 *need_bytes = xlog_ticket_reservation(log, head, tic); in xlog_grant_head_check()
312 free_bytes < *need_bytes) { in xlog_grant_head_check()
314 *need_bytes); in xlog_grant_head_check()
317 } else if (free_bytes < *need_bytes) { in xlog_grant_head_check()
319 error = xlog_grant_head_wait(log, head, tic, *need_bytes); in xlog_grant_head_check()
359 int need_bytes; in xfs_log_regrant() local
386 &need_bytes); in xfs_log_regrant()
390 xlog_grant_add_space(log, &log->l_write_head.grant, need_bytes); in xfs_log_regrant()
425 int need_bytes; in xfs_log_reserve() local
445 &need_bytes); in xfs_log_reserve()
449 xlog_grant_add_space(log, &log->l_reserve_head.grant, need_bytes); in xfs_log_reserve()
450 xlog_grant_add_space(log, &log->l_write_head.grant, need_bytes); in xfs_log_reserve()
1487 int need_bytes) in xlog_grant_push_threshold() argument
1497 ASSERT(BTOBB(need_bytes) < log->l_logBBsize); in xlog_grant_push_threshold()
1507 free_threshold = BTOBB(need_bytes); in xlog_grant_push_threshold()
1544 int need_bytes) in xlog_grant_push_ail() argument
1548 threshold_lsn = xlog_grant_push_threshold(log, need_bytes); in xlog_grant_push_ail()