Lines Matching refs:log
377 #define XLOG_CIL_SPACE_LIMIT(log) \ argument
378 min_t(int, (log)->l_logsize >> 3, BBTOB(XLOG_TOTAL_REC_SHIFT(log)) << 4)
380 #define XLOG_CIL_BLOCKING_SPACE_LIMIT(log) \ argument
381 (XLOG_CIL_SPACE_LIMIT(log) * 2)
467 xlog_recovery_needed(struct xlog *log) in xlog_recovery_needed() argument
469 return test_bit(XLOG_RECOVERY_NEEDED, &log->l_opstate); in xlog_recovery_needed()
473 xlog_in_recovery(struct xlog *log) in xlog_in_recovery() argument
475 return test_bit(XLOG_ACTIVE_RECOVERY, &log->l_opstate); in xlog_in_recovery()
479 xlog_is_shutdown(struct xlog *log) in xlog_is_shutdown() argument
481 return test_bit(XLOG_IO_ERROR, &log->l_opstate); in xlog_is_shutdown()
490 struct xlog *log) in xlog_shutdown_wait() argument
492 wait_var_event(&log->l_opstate, xlog_is_shutdown(log)); in xlog_shutdown_wait()
498 struct xlog *log);
501 struct xlog *log);
505 extern __le32 xlog_cksum(struct xlog *log, struct xlog_rec_header *rhead,
509 struct xlog_ticket *xlog_ticket_alloc(struct xlog *log, int unit_bytes,
514 int xlog_write(struct xlog *log, struct xfs_cil_ctx *ctx,
517 void xfs_log_ticket_ungrant(struct xlog *log, struct xlog_ticket *ticket);
518 void xfs_log_ticket_regrant(struct xlog *log, struct xlog_ticket *ticket);
520 void xlog_state_switch_iclogs(struct xlog *log, struct xlog_in_core *iclog,
522 int xlog_state_release_iclog(struct xlog *log, struct xlog_in_core *iclog,
583 int xlog_cil_init(struct xlog *log);
584 void xlog_cil_init_post_recovery(struct xlog *log);
585 void xlog_cil_destroy(struct xlog *log);
586 bool xlog_cil_empty(struct xlog *log);
587 void xlog_cil_commit(struct xlog *log, struct xfs_trans *tp,
596 void xlog_cil_flush(struct xlog *log);
597 xfs_lsn_t xlog_cil_force_seq(struct xlog *log, xfs_csn_t sequence);
600 xlog_cil_force(struct xlog *log) in xlog_cil_force() argument
602 xlog_cil_force_seq(log, log->l_cilp->xc_current_sequence); in xlog_cil_force()
635 struct xlog *log, in xlog_valid_lsn() argument
654 cur_cycle = READ_ONCE(log->l_curr_cycle); in xlog_valid_lsn()
656 cur_block = READ_ONCE(log->l_curr_block); in xlog_valid_lsn()
665 spin_lock(&log->l_icloglock); in xlog_valid_lsn()
666 cur_cycle = log->l_curr_cycle; in xlog_valid_lsn()
667 cur_block = log->l_curr_block; in xlog_valid_lsn()
668 spin_unlock(&log->l_icloglock); in xlog_valid_lsn()