Lines Matching refs:log

373 #define XLOG_CIL_SPACE_LIMIT(log)	\  argument
374 min_t(int, (log)->l_logsize >> 3, BBTOB(XLOG_TOTAL_REC_SHIFT(log)) << 4)
376 #define XLOG_CIL_BLOCKING_SPACE_LIMIT(log) \ argument
377 (XLOG_CIL_SPACE_LIMIT(log) * 2)
463 xlog_recovery_needed(struct xlog *log) in xlog_recovery_needed() argument
465 return test_bit(XLOG_RECOVERY_NEEDED, &log->l_opstate); in xlog_recovery_needed()
469 xlog_in_recovery(struct xlog *log) in xlog_in_recovery() argument
471 return test_bit(XLOG_ACTIVE_RECOVERY, &log->l_opstate); in xlog_in_recovery()
475 xlog_is_shutdown(struct xlog *log) in xlog_is_shutdown() argument
477 return test_bit(XLOG_IO_ERROR, &log->l_opstate); in xlog_is_shutdown()
486 struct xlog *log) in xlog_shutdown_wait() argument
488 wait_var_event(&log->l_opstate, xlog_is_shutdown(log)); in xlog_shutdown_wait()
494 struct xlog *log);
497 struct xlog *log);
501 extern __le32 xlog_cksum(struct xlog *log, struct xlog_rec_header *rhead,
505 struct xlog_ticket *xlog_ticket_alloc(struct xlog *log, int unit_bytes,
510 int xlog_write(struct xlog *log, struct xfs_cil_ctx *ctx,
513 void xfs_log_ticket_ungrant(struct xlog *log, struct xlog_ticket *ticket);
514 void xfs_log_ticket_regrant(struct xlog *log, struct xlog_ticket *ticket);
516 void xlog_state_switch_iclogs(struct xlog *log, struct xlog_in_core *iclog,
518 int xlog_state_release_iclog(struct xlog *log, struct xlog_in_core *iclog,
579 int xlog_cil_init(struct xlog *log);
580 void xlog_cil_init_post_recovery(struct xlog *log);
581 void xlog_cil_destroy(struct xlog *log);
582 bool xlog_cil_empty(struct xlog *log);
583 void xlog_cil_commit(struct xlog *log, struct xfs_trans *tp,
592 void xlog_cil_flush(struct xlog *log);
593 xfs_lsn_t xlog_cil_force_seq(struct xlog *log, xfs_csn_t sequence);
596 xlog_cil_force(struct xlog *log) in xlog_cil_force() argument
598 xlog_cil_force_seq(log, log->l_cilp->xc_current_sequence); in xlog_cil_force()
631 struct xlog *log, in xlog_valid_lsn() argument
650 cur_cycle = READ_ONCE(log->l_curr_cycle); in xlog_valid_lsn()
652 cur_block = READ_ONCE(log->l_curr_block); in xlog_valid_lsn()
661 spin_lock(&log->l_icloglock); in xlog_valid_lsn()
662 cur_cycle = log->l_curr_cycle; in xlog_valid_lsn()
663 cur_block = log->l_curr_block; in xlog_valid_lsn()
664 spin_unlock(&log->l_icloglock); in xlog_valid_lsn()
711 void xlog_cil_pcp_dead(struct xlog *log, unsigned int cpu);