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)
464 xlog_recovery_needed(struct xlog *log) in xlog_recovery_needed() argument
466 return test_bit(XLOG_RECOVERY_NEEDED, &log->l_opstate); in xlog_recovery_needed()
470 xlog_in_recovery(struct xlog *log) in xlog_in_recovery() argument
472 return test_bit(XLOG_ACTIVE_RECOVERY, &log->l_opstate); in xlog_in_recovery()
476 xlog_is_shutdown(struct xlog *log) in xlog_is_shutdown() argument
478 return test_bit(XLOG_IO_ERROR, &log->l_opstate); in xlog_is_shutdown()
487 struct xlog *log) in xlog_shutdown_wait() argument
489 wait_var_event(&log->l_opstate, xlog_is_shutdown(log)); in xlog_shutdown_wait()
495 struct xlog *log);
498 struct xlog *log);
502 extern __le32 xlog_cksum(struct xlog *log, struct xlog_rec_header *rhead,
506 struct xlog_ticket *xlog_ticket_alloc(struct xlog *log, int unit_bytes,
511 int xlog_write(struct xlog *log, struct xfs_cil_ctx *ctx,
514 void xfs_log_ticket_ungrant(struct xlog *log, struct xlog_ticket *ticket);
515 void xfs_log_ticket_regrant(struct xlog *log, struct xlog_ticket *ticket);
517 void xlog_state_switch_iclogs(struct xlog *log, struct xlog_in_core *iclog,
519 int xlog_state_release_iclog(struct xlog *log, struct xlog_in_core *iclog,
550 int xlog_cil_init(struct xlog *log);
551 void xlog_cil_init_post_recovery(struct xlog *log);
552 void xlog_cil_destroy(struct xlog *log);
553 bool xlog_cil_empty(struct xlog *log);
554 void xlog_cil_commit(struct xlog *log, struct xfs_trans *tp,
563 void xlog_cil_flush(struct xlog *log);
564 xfs_lsn_t xlog_cil_force_seq(struct xlog *log, xfs_csn_t sequence);
567 xlog_cil_force(struct xlog *log) in xlog_cil_force() argument
569 xlog_cil_force_seq(log, log->l_cilp->xc_current_sequence); in xlog_cil_force()
598 struct xlog *log, in xlog_lsn_sub() argument
609 ASSERT((hi_cycle == lo_cycle + 1) || xlog_is_shutdown(log)); in xlog_lsn_sub()
610 return (uint64_t)log->l_logsize - BBTOB(lo_block - hi_block); in xlog_lsn_sub()
613 void xlog_grant_return_space(struct xlog *log, xfs_lsn_t old_head,
624 struct xlog *log, in xlog_valid_lsn() argument
643 cur_cycle = READ_ONCE(log->l_curr_cycle); in xlog_valid_lsn()
645 cur_block = READ_ONCE(log->l_curr_block); in xlog_valid_lsn()
654 spin_lock(&log->l_icloglock); in xlog_valid_lsn()
655 cur_cycle = log->l_curr_cycle; in xlog_valid_lsn()
656 cur_block = log->l_curr_block; in xlog_valid_lsn()
657 spin_unlock(&log->l_icloglock); in xlog_valid_lsn()