Lines Matching refs:log
48 struct xlog *log) in xlog_cil_ticket_alloc() argument
52 tic = xlog_ticket_alloc(log, 0, 1, XFS_TRANSACTION, 0, in xlog_cil_ticket_alloc()
75 struct xlog *log) in xlog_cil_init_post_recovery() argument
77 log->l_cilp->xc_ctx->ticket = xlog_cil_ticket_alloc(log); in xlog_cil_init_post_recovery()
78 log->l_cilp->xc_ctx->sequence = 1; in xlog_cil_init_post_recovery()
138 struct xlog *log, in xlog_cil_alloc_shadow_bufs() argument
239 struct xlog *log, in xfs_cil_prepare_item() argument
279 lv->lv_item->li_seq = log->l_cilp->xc_ctx->sequence; in xfs_cil_prepare_item()
312 struct xlog *log, in xlog_cil_insert_format_items() argument
388 xfs_cil_prepare_item(log, lv, old_lv, diff_len, diff_iovecs); in xlog_cil_insert_format_items()
401 struct xlog *log, in xlog_cil_insert_items() argument
404 struct xfs_cil *cil = log->l_cilp; in xlog_cil_insert_items()
417 xlog_cil_insert_format_items(log, tp, &len, &diff_iovecs); in xlog_cil_insert_items()
462 iclog_space = log->l_iclog_size - log->l_iclog_hsize; in xlog_cil_insert_items()
469 hdrs *= log->l_iclog_hsize + sizeof(struct xlog_op_header); in xlog_cil_insert_items()
554 struct xlog *log) in xlog_cil_push() argument
556 struct xfs_cil *cil = log->l_cilp; in xlog_cil_push()
574 new_ctx->ticket = xlog_cil_ticket_alloc(log); in xlog_cil_push()
716 error = xlog_write(log, &lvhdr, tic, &ctx->start_lsn, NULL, 0); in xlog_cil_push()
732 if (XLOG_FORCED_SHUTDOWN(log)) { in xlog_cil_push()
755 commit_lsn = xfs_log_done(log->l_mp, tic, &commit_iclog, false); in xlog_cil_push()
762 error = xfs_log_notify(log->l_mp, commit_iclog, &ctx->log_cb); in xlog_cil_push()
777 return xfs_log_release_iclog(log->l_mp, commit_iclog); in xlog_cil_push()
810 struct xlog *log) in xlog_cil_push_background() argument
812 struct xfs_cil *cil = log->l_cilp; in xlog_cil_push_background()
824 if (cil->xc_ctx->space_used < XLOG_CIL_SPACE_LIMIT(log)) in xlog_cil_push_background()
830 queue_work(log->l_mp->m_cil_workqueue, &cil->xc_push_work); in xlog_cil_push_background()
844 struct xlog *log, in xlog_cil_push_now() argument
847 struct xfs_cil *cil = log->l_cilp; in xlog_cil_push_now()
868 queue_work(log->l_mp->m_cil_workqueue, &cil->xc_push_work); in xlog_cil_push_now()
874 struct xlog *log) in xlog_cil_empty() argument
876 struct xfs_cil *cil = log->l_cilp; in xlog_cil_empty()
906 struct xlog *log = mp->m_log; in xfs_log_commit_cil() local
907 struct xfs_cil *cil = log->l_cilp; in xfs_log_commit_cil()
914 xlog_cil_alloc_shadow_bufs(log, tp); in xfs_log_commit_cil()
919 xlog_cil_insert_items(log, tp); in xfs_log_commit_cil()
945 xlog_cil_push_background(log); in xfs_log_commit_cil()
962 struct xlog *log, in xlog_cil_force_lsn() argument
965 struct xfs_cil *cil = log->l_cilp; in xlog_cil_force_lsn()
977 xlog_cil_push_now(log, sequence); in xlog_cil_force_lsn()
992 if (XLOG_FORCED_SHUTDOWN(log)) in xlog_cil_force_lsn()
1081 struct xlog *log) in xlog_cil_init() argument
1111 cil->xc_log = log; in xlog_cil_init()
1112 log->l_cilp = cil; in xlog_cil_init()
1118 struct xlog *log) in xlog_cil_destroy() argument
1120 if (log->l_cilp->xc_ctx) { in xlog_cil_destroy()
1121 if (log->l_cilp->xc_ctx->ticket) in xlog_cil_destroy()
1122 xfs_log_ticket_put(log->l_cilp->xc_ctx->ticket); in xlog_cil_destroy()
1123 kmem_free(log->l_cilp->xc_ctx); in xlog_cil_destroy()
1126 ASSERT(list_empty(&log->l_cilp->xc_cil)); in xlog_cil_destroy()
1127 kmem_free(log->l_cilp); in xlog_cil_destroy()