Home
last modified time | relevance | path

Searched refs:ticket (Results 1 – 5 of 5) sorted by relevance

/fs/btrfs/
Dspace-info.c351 struct reserve_ticket *ticket) in remove_ticket() argument
353 if (!list_empty(&ticket->list)) { in remove_ticket()
354 list_del_init(&ticket->list); in remove_ticket()
355 ASSERT(space_info->reclaim_size >= ticket->bytes); in remove_ticket()
356 space_info->reclaim_size -= ticket->bytes; in remove_ticket()
375 struct reserve_ticket *ticket; in btrfs_try_granting_tickets() local
378 ticket = list_first_entry(head, struct reserve_ticket, list); in btrfs_try_granting_tickets()
381 if ((used + ticket->bytes <= space_info->total_bytes) || in btrfs_try_granting_tickets()
382 btrfs_can_overcommit(fs_info, space_info, ticket->bytes, in btrfs_try_granting_tickets()
386 ticket->bytes); in btrfs_try_granting_tickets()
[all …]
/fs/xfs/
Dxfs_log.c51 struct xlog_ticket *ticket,
903 struct xlog_ticket *ticket) in xlog_write_unmount_record() argument
919 ticket->t_curr_res -= sizeof(ulf); in xlog_write_unmount_record()
921 return xlog_write(log, NULL, &vec, ticket, XLOG_UNMOUNT_TRANS); in xlog_write_unmount_record()
2118 struct xlog_ticket *ticket) in xlog_print_tic_res() argument
2121 uint ophdr_spc = ticket->t_res_num_ophdrs * (uint)sizeof(xlog_op_header_t); in xlog_print_tic_res()
2158 ticket->t_unit_res); in xlog_print_tic_res()
2160 ticket->t_curr_res); in xlog_print_tic_res()
2162 ticket->t_res_arr_sum, ticket->t_res_o_flow); in xlog_print_tic_res()
2164 ticket->t_res_num_ophdrs, ophdr_spc); in xlog_print_tic_res()
[all …]
Dxfs_log_cil.c92 log->l_cilp->xc_ctx->ticket = xlog_cil_ticket_alloc(log); in xlog_cil_init_post_recovery()
460 if (ctx->ticket->t_curr_res == 0) { in xlog_cil_insert_items()
461 ctx_res = ctx->ticket->t_unit_res; in xlog_cil_insert_items()
462 ctx->ticket->t_curr_res = ctx_res; in xlog_cil_insert_items()
473 ctx->ticket->t_unit_res += split_res; in xlog_cil_insert_items()
474 ctx->ticket->t_curr_res += split_res; in xlog_cil_insert_items()
809 return xlog_write(log, ctx, chain, ctx->ticket, XLOG_START_TRANS); in xlog_cil_write_chain()
841 error = xlog_write(log, ctx, &vec, ctx->ticket, XLOG_COMMIT_TRANS); in xlog_cil_write_commit_record()
881 new_ctx->ticket = xlog_cil_ticket_alloc(log); in xlog_cil_push_work()
1009 tic = ctx->ticket; in xlog_cil_push_work()
[all …]
Dxfs_log.h124 struct xlog_ticket **ticket,
131 struct xlog_ticket *xfs_log_ticket_get(struct xlog_ticket *ticket);
132 void xfs_log_ticket_put(struct xlog_ticket *ticket);
Dxfs_log_priv.h244 struct xlog_ticket *ticket; /* chkpt ticket */ member
514 void xlog_print_tic_res(struct xfs_mount *mp, struct xlog_ticket *ticket);
519 void xfs_log_ticket_ungrant(struct xlog *log, struct xlog_ticket *ticket);
520 void xfs_log_ticket_regrant(struct xlog *log, struct xlog_ticket *ticket);