Lines Matching refs:grant
203 xlog_assign_grant_head(&head->grant, 1, 0);
265 * the grant head, we need to push the AIL again to ensure the
313 } while (xlog_space_left(log, &head->grant) < need_bytes);
358 free_bytes = xlog_space_left(log, &head->grant);
398 * Replenish the byte reservation required by moving the grant write head.
435 xlog_grant_add_space(log, &log->l_write_head.grant, need_bytes);
491 xlog_grant_add_space(log, &log->l_reserve_head.grant, need_bytes);
492 xlog_grant_add_space(log, &log->l_write_head.grant, need_bytes);
737 * space grant counters are, we can initialise the permanent ticket
1152 free_bytes = xlog_space_left(log, &log->l_write_head.grant);
1161 free_bytes = xlog_space_left(log, &log->l_reserve_head.grant);
1696 free_bytes = xlog_space_left(log, &log->l_reserve_head.grant);
2049 * reservation to avoid touching the hot grant heads needlessly.
2050 * Otherwise, we have to move grant heads directly.
2055 xlog_grant_add_space(log, &log->l_reserve_head.grant, roundoff);
2056 xlog_grant_add_space(log, &log->l_write_head.grant, roundoff);
2694 * the reservation grant head pushing. This is due to the fact that the push
2699 * should push the AIL to ensure the push target (and hence the grant head) is
2992 * grant write head because the permanent reservation has reserved cnt times the
2994 * current reservation to be one units worth. Also move grant reservation head
3007 xlog_grant_sub_space(log, &log->l_reserve_head.grant,
3009 xlog_grant_sub_space(log, &log->l_write_head.grant,
3017 xlog_grant_add_space(log, &log->l_reserve_head.grant,
3065 xlog_grant_sub_space(log, &log->l_reserve_head.grant, bytes);
3066 xlog_grant_sub_space(log, &log->l_write_head.grant, bytes);
3539 * Check to make sure the grant write head didn't just over lap the tail. If
3556 xlog_crack_grant_head(&log->l_write_head.grant, &cycle, &space);
3787 * action is protected by the grant locks.