• Home
  • Raw
  • Download

Lines Matching refs:ticket

44 	struct xlog_ticket	*ticket,
78 struct xlog_ticket *ticket,
102 struct xlog_ticket *ticket);
106 struct xlog_ticket *ticket);
512 struct xlog_ticket *ticket, in xfs_log_done() argument
524 (((ticket->t_flags & XLOG_TIC_INITED) == 0) && in xfs_log_done()
525 (xlog_commit_record(log, ticket, iclog, &lsn)))) { in xfs_log_done()
532 trace_xfs_log_done_nonperm(log, ticket); in xfs_log_done()
538 xlog_ungrant_log_space(log, ticket); in xfs_log_done()
540 trace_xfs_log_done_perm(log, ticket); in xfs_log_done()
542 xlog_regrant_reserve_log_space(log, ticket); in xfs_log_done()
547 ticket->t_flags |= XLOG_TIC_INITED; in xfs_log_done()
550 xfs_log_ticket_put(ticket); in xfs_log_done()
1560 struct xlog_ticket *ticket, in xlog_commit_record() argument
1577 error = xlog_write(log, &vec, ticket, commitlsnp, iclog, in xlog_commit_record()
2036 struct xlog_ticket *ticket) in xlog_print_tic_res() argument
2039 uint ophdr_spc = ticket->t_res_num_ophdrs * (uint)sizeof(xlog_op_header_t); in xlog_print_tic_res()
2069 ticket->t_unit_res); in xlog_print_tic_res()
2071 ticket->t_curr_res); in xlog_print_tic_res()
2073 ticket->t_res_arr_sum, ticket->t_res_o_flow); in xlog_print_tic_res()
2075 ticket->t_res_num_ophdrs, ophdr_spc); in xlog_print_tic_res()
2077 ticket->t_res_arr_sum + ticket->t_res_o_flow + ophdr_spc); in xlog_print_tic_res()
2079 ticket->t_res_num); in xlog_print_tic_res()
2081 for (i = 0; i < ticket->t_res_num; i++) { in xlog_print_tic_res()
2082 uint r_type = ticket->t_res_arr[i].r_type; in xlog_print_tic_res()
2086 ticket->t_res_arr[i].r_len); in xlog_print_tic_res()
2100 struct xlog_ticket *ticket, in xlog_write_calc_vec_length() argument
2109 if (ticket->t_flags & XLOG_TIC_INITED) in xlog_write_calc_vec_length()
2123 xlog_tic_add_region(ticket, vecp->i_len, vecp->i_type); in xlog_write_calc_vec_length()
2127 ticket->t_res_num_ophdrs += headers; in xlog_write_calc_vec_length()
2140 struct xlog_ticket *ticket) in xlog_write_start_rec() argument
2142 if (!(ticket->t_flags & XLOG_TIC_INITED)) in xlog_write_start_rec()
2145 ophdr->oh_tid = cpu_to_be32(ticket->t_tid); in xlog_write_start_rec()
2146 ophdr->oh_clientid = ticket->t_clientid; in xlog_write_start_rec()
2151 ticket->t_flags &= ~XLOG_TIC_INITED; in xlog_write_start_rec()
2160 struct xlog_ticket *ticket, in xlog_write_setup_ophdr() argument
2163 ophdr->oh_tid = cpu_to_be32(ticket->t_tid); in xlog_write_setup_ophdr()
2164 ophdr->oh_clientid = ticket->t_clientid; in xlog_write_setup_ophdr()
2183 ophdr->oh_clientid, ticket); in xlog_write_setup_ophdr()
2198 struct xlog_ticket *ticket, in xlog_write_setup_copy() argument
2233 ticket->t_curr_res -= sizeof(struct xlog_op_header); in xlog_write_setup_copy()
2234 ticket->t_res_num_ophdrs++; in xlog_write_setup_copy()
2328 struct xlog_ticket *ticket, in xlog_write() argument
2347 len = xlog_write_calc_vec_length(ticket, log_vector); in xlog_write()
2354 if (ticket->t_flags & XLOG_TIC_INITED) in xlog_write()
2355 ticket->t_curr_res -= sizeof(xlog_op_header_t); in xlog_write()
2362 ticket->t_curr_res -= sizeof(xlog_op_header_t); in xlog_write()
2364 if (ticket->t_curr_res < 0) in xlog_write()
2365 xlog_print_tic_res(log->l_mp, ticket); in xlog_write()
2374 error = xlog_state_get_iclog_space(log, len, &iclog, ticket, in xlog_write()
2409 start_rec_copy = xlog_write_start_rec(ptr, ticket); in xlog_write()
2416 ophdr = xlog_write_setup_ophdr(log, ptr, ticket, flags); in xlog_write()
2423 len += xlog_write_setup_copy(ticket, ophdr, in xlog_write()
2921 struct xlog_ticket *ticket, in xlog_state_get_iclog_space() argument
2957 ticket->t_curr_res -= log->l_iclog_hsize; in xlog_state_get_iclog_space()
2958 xlog_tic_add_region(ticket, in xlog_state_get_iclog_space()
3030 struct xlog_ticket *ticket) in xlog_regrant_reserve_log_space() argument
3032 trace_xfs_log_regrant_reserve_enter(log, ticket); in xlog_regrant_reserve_log_space()
3034 if (ticket->t_cnt > 0) in xlog_regrant_reserve_log_space()
3035 ticket->t_cnt--; in xlog_regrant_reserve_log_space()
3038 ticket->t_curr_res); in xlog_regrant_reserve_log_space()
3040 ticket->t_curr_res); in xlog_regrant_reserve_log_space()
3041 ticket->t_curr_res = ticket->t_unit_res; in xlog_regrant_reserve_log_space()
3042 xlog_tic_reset_res(ticket); in xlog_regrant_reserve_log_space()
3044 trace_xfs_log_regrant_reserve_sub(log, ticket); in xlog_regrant_reserve_log_space()
3047 if (ticket->t_cnt > 0) in xlog_regrant_reserve_log_space()
3051 ticket->t_unit_res); in xlog_regrant_reserve_log_space()
3053 trace_xfs_log_regrant_reserve_exit(log, ticket); in xlog_regrant_reserve_log_space()
3055 ticket->t_curr_res = ticket->t_unit_res; in xlog_regrant_reserve_log_space()
3056 xlog_tic_reset_res(ticket); in xlog_regrant_reserve_log_space()
3077 struct xlog_ticket *ticket) in xlog_ungrant_log_space() argument
3081 if (ticket->t_cnt > 0) in xlog_ungrant_log_space()
3082 ticket->t_cnt--; in xlog_ungrant_log_space()
3084 trace_xfs_log_ungrant_enter(log, ticket); in xlog_ungrant_log_space()
3085 trace_xfs_log_ungrant_sub(log, ticket); in xlog_ungrant_log_space()
3091 bytes = ticket->t_curr_res; in xlog_ungrant_log_space()
3092 if (ticket->t_cnt > 0) { in xlog_ungrant_log_space()
3093 ASSERT(ticket->t_flags & XLOG_TIC_PERM_RESERV); in xlog_ungrant_log_space()
3094 bytes += ticket->t_unit_res*ticket->t_cnt; in xlog_ungrant_log_space()
3100 trace_xfs_log_ungrant_exit(log, ticket); in xlog_ungrant_log_space()
3534 xlog_ticket_t *ticket) in xfs_log_ticket_put() argument
3536 ASSERT(atomic_read(&ticket->t_ref) > 0); in xfs_log_ticket_put()
3537 if (atomic_dec_and_test(&ticket->t_ref)) in xfs_log_ticket_put()
3538 kmem_zone_free(xfs_log_ticket_zone, ticket); in xfs_log_ticket_put()
3543 xlog_ticket_t *ticket) in xfs_log_ticket_get() argument
3545 ASSERT(atomic_read(&ticket->t_ref) > 0); in xfs_log_ticket_get()
3546 atomic_inc(&ticket->t_ref); in xfs_log_ticket_get()
3547 return ticket; in xfs_log_ticket_get()