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);
1698 free_bytes = xlog_space_left(log, &log->l_reserve_head.grant);
2051 * reservation to avoid touching the hot grant heads needlessly.
2052 * Otherwise, we have to move grant heads directly.
2057 xlog_grant_add_space(log, &log->l_reserve_head.grant, roundoff);
2058 xlog_grant_add_space(log, &log->l_write_head.grant, roundoff);
2696 * the reservation grant head pushing. This is due to the fact that the push
2701 * should push the AIL to ensure the push target (and hence the grant head) is
2994 * grant write head because the permanent reservation has reserved cnt times the
2996 * current reservation to be one units worth. Also move grant reservation head
3009 xlog_grant_sub_space(log, &log->l_reserve_head.grant,
3011 xlog_grant_sub_space(log, &log->l_write_head.grant,
3019 xlog_grant_add_space(log, &log->l_reserve_head.grant,
3067 xlog_grant_sub_space(log, &log->l_reserve_head.grant, bytes);
3068 xlog_grant_sub_space(log, &log->l_write_head.grant, bytes);
3542 * Check to make sure the grant write head didn't just over lap the tail. If
3559 xlog_crack_grant_head(&log->l_write_head.grant, &cycle, &space);
3790 * action is protected by the grant locks.