• Home
  • Raw
  • Download

Lines Matching refs:log

36 	struct xlog	*log)  in xlog_cil_ticket_alloc()  argument
40 tic = xlog_ticket_alloc(log, 0, 1, XFS_TRANSACTION, 0, in xlog_cil_ticket_alloc()
63 struct xlog *log) in xlog_cil_init_post_recovery() argument
65 log->l_cilp->xc_ctx->ticket = xlog_cil_ticket_alloc(log); in xlog_cil_init_post_recovery()
66 log->l_cilp->xc_ctx->sequence = 1; in xlog_cil_init_post_recovery()
126 struct xlog *log, in xlog_cil_alloc_shadow_bufs() argument
226 struct xlog *log, in xfs_cil_prepare_item() argument
267 lv->lv_item->li_seq = log->l_cilp->xc_ctx->sequence; in xfs_cil_prepare_item()
300 struct xlog *log, in xlog_cil_insert_format_items() argument
375 xfs_cil_prepare_item(log, lv, old_lv, diff_len, diff_iovecs); in xlog_cil_insert_format_items()
388 struct xlog *log, in xlog_cil_insert_items() argument
391 struct xfs_cil *cil = log->l_cilp; in xlog_cil_insert_items()
405 xlog_cil_insert_format_items(log, tp, &len, &diff_iovecs); in xlog_cil_insert_items()
432 iclog_space = log->l_iclog_size - log->l_iclog_hsize; in xlog_cil_insert_items()
437 split_res *= log->l_iclog_hsize + sizeof(struct xlog_op_header); in xlog_cil_insert_items()
451 xfs_warn(log->l_mp, "Transaction log reservation overrun:"); in xlog_cil_insert_items()
452 xfs_warn(log->l_mp, in xlog_cil_insert_items()
455 xfs_warn(log->l_mp, " split region headers: %d bytes", in xlog_cil_insert_items()
457 xfs_warn(log->l_mp, " ctx ticket: %d bytes", ctx_res); in xlog_cil_insert_items()
484 xfs_force_shutdown(log->l_mp, SHUTDOWN_LOG_IO_ERROR); in xlog_cil_insert_items()
644 struct xlog *log) in xlog_cil_push() argument
646 struct xfs_cil *cil = log->l_cilp; in xlog_cil_push()
664 new_ctx->ticket = xlog_cil_ticket_alloc(log); in xlog_cil_push()
806 error = xlog_write(log, &lvhdr, tic, &ctx->start_lsn, NULL, 0); in xlog_cil_push()
822 if (XLOG_FORCED_SHUTDOWN(log)) { in xlog_cil_push()
845 commit_lsn = xfs_log_done(log->l_mp, tic, &commit_iclog, false); in xlog_cil_push()
870 return xfs_log_release_iclog(log->l_mp, commit_iclog); in xlog_cil_push()
903 struct xlog *log) in xlog_cil_push_background() argument
905 struct xfs_cil *cil = log->l_cilp; in xlog_cil_push_background()
917 if (cil->xc_ctx->space_used < XLOG_CIL_SPACE_LIMIT(log)) in xlog_cil_push_background()
923 queue_work(log->l_mp->m_cil_workqueue, &cil->xc_push_work); in xlog_cil_push_background()
937 struct xlog *log, in xlog_cil_push_now() argument
940 struct xfs_cil *cil = log->l_cilp; in xlog_cil_push_now()
961 queue_work(log->l_mp->m_cil_workqueue, &cil->xc_push_work); in xlog_cil_push_now()
967 struct xlog *log) in xlog_cil_empty() argument
969 struct xfs_cil *cil = log->l_cilp; in xlog_cil_empty()
999 struct xlog *log = mp->m_log; in xfs_log_commit_cil() local
1000 struct xfs_cil *cil = log->l_cilp; in xfs_log_commit_cil()
1009 xlog_cil_alloc_shadow_bufs(log, tp); in xfs_log_commit_cil()
1014 xlog_cil_insert_items(log, tp); in xfs_log_commit_cil()
1041 xlog_cil_push_background(log); in xfs_log_commit_cil()
1058 struct xlog *log, in xlog_cil_force_lsn() argument
1061 struct xfs_cil *cil = log->l_cilp; in xlog_cil_force_lsn()
1073 xlog_cil_push_now(log, sequence); in xlog_cil_force_lsn()
1088 if (XLOG_FORCED_SHUTDOWN(log)) in xlog_cil_force_lsn()
1177 struct xlog *log) in xlog_cil_init() argument
1207 cil->xc_log = log; in xlog_cil_init()
1208 log->l_cilp = cil; in xlog_cil_init()
1214 struct xlog *log) in xlog_cil_destroy() argument
1216 if (log->l_cilp->xc_ctx) { in xlog_cil_destroy()
1217 if (log->l_cilp->xc_ctx->ticket) in xlog_cil_destroy()
1218 xfs_log_ticket_put(log->l_cilp->xc_ctx->ticket); in xlog_cil_destroy()
1219 kmem_free(log->l_cilp->xc_ctx); in xlog_cil_destroy()
1222 ASSERT(list_empty(&log->l_cilp->xc_cil)); in xlog_cil_destroy()
1223 kmem_free(log->l_cilp); in xlog_cil_destroy()