Lines Matching refs:l_mp

81 	if (XFS_IS_CORRUPT(log->l_mp, !xlog_verify_bno(log, 0, nbblks))) {  in xlog_alloc_buffer()
82 xfs_warn(log->l_mp, "Invalid block length (0x%x) for buffer", in xlog_alloc_buffer()
129 if (XFS_IS_CORRUPT(log->l_mp, !xlog_verify_bno(log, blk_no, nbblks))) { in xlog_do_io()
130 xfs_warn(log->l_mp, in xlog_do_io()
143 xfs_alert(log->l_mp, in xlog_do_io()
371 if (xfs_has_logv2(log->l_mp)) { in xlog_logrec_hblks()
427 xfs_warn(log->l_mp, in xlog_find_verify_log_record()
463 if ((error = xlog_header_check_mount(log->l_mp, head))) in xlog_find_verify_log_record()
513 xfs_warn(log->l_mp, "empty log check failed"); in xlog_find_head()
525 xfs_warn(log->l_mp, "totally zeroed log"); in xlog_find_head()
750 xfs_warn(log->l_mp, "failed to find log head"); in xlog_find_head()
998 xfs_warn(log->l_mp, in xlog_verify_tail()
1066 xfs_warn(log->l_mp, in xlog_verify_head()
1281 xfs_warn(log->l_mp, "%s: couldn't find sync record", __func__); in xlog_find_tail()
1339 xfs_set_clean(log->l_mp); in xlog_find_tail()
1367 xfs_warn(log->l_mp, "failed to locate log tail"); in xlog_find_tail()
1496 xfs_has_logv2(log->l_mp) ? 2 : 1); in xlog_add_record()
1500 memcpy(&recp->h_fs_uuid, &log->l_mp->m_sb.sb_uuid, sizeof(uuid_t)); in xlog_add_record()
1632 if (XFS_IS_CORRUPT(log->l_mp, in xlog_clear_stale_blocks()
1643 if (XFS_IS_CORRUPT(log->l_mp, in xlog_clear_stale_blocks()
1738 xfs_defer_cancel_recovery(log->l_mp, dfp); in xlog_recover_release_intent()
1905 xfs_warn(log->l_mp, in xlog_recover_reorder_trans()
1962 xfs_buf_readahead(log->l_mp->m_ddev_targp, blkno, len, ops); in xlog_buf_readahead()
2113 xfs_warn(log->l_mp, "%s: bad header length", __func__); in xlog_recover_add_to_cont_trans()
2170 xfs_warn(log->l_mp, "%s: bad header magic number", in xlog_recover_add_to_trans()
2177 xfs_warn(log->l_mp, "%s: bad header length", __func__); in xlog_recover_add_to_trans()
2211 xfs_warn(log->l_mp, in xlog_recover_add_to_trans()
2225 xfs_warn(log->l_mp, in xlog_recover_add_to_trans()
2312 xfs_warn(log->l_mp, "%s: Unmount LR", __func__); in xlog_recovery_process_trans()
2317 xfs_warn(log->l_mp, "%s: bad flag 0x%x", __func__, flags); in xlog_recovery_process_trans()
2396 xfs_warn(log->l_mp, "%s: bad clientid 0x%x", in xlog_recover_process_ophdr()
2407 xfs_warn(log->l_mp, "%s: bad length 0x%x", __func__, len); in xlog_recover_process_ophdr()
2480 if (xlog_header_check_recover(log->l_mp, rhead)) in xlog_recover_process_data()
2489 xfs_warn(log->l_mp, "%s: op header overrun", __func__); in xlog_recover_process_data()
2616 error = xfs_defer_finish_recovery(log->l_mp, dfp, in xlog_recover_process_intents()
2624 error = xlog_finish_defer_ops(log->l_mp, &capture_list); in xlog_recover_process_intents()
2630 xlog_abort_defer_ops(log->l_mp, &capture_list); in xlog_recover_process_intents()
2648 xfs_defer_cancel_recovery(log->l_mp, dfp); in xlog_recover_cancel_intents()
2852 for_each_perag(log->l_mp, agno, pag) in xlog_recover_process_iunlinks()
2870 if (xfs_has_logv2(log->l_mp)) { in xlog_unpack_data()
2918 if (old_crc || xfs_has_crc(log->l_mp)) { in xlog_recover_process()
2919 xfs_alert(log->l_mp, in xlog_recover_process()
2930 if (xfs_has_crc(log->l_mp)) { in xlog_recover_process()
2931 XFS_ERROR_REPORT(__func__, XFS_ERRLEVEL_LOW, log->l_mp); in xlog_recover_process()
2951 if (XFS_IS_CORRUPT(log->l_mp, in xlog_valid_rec_header()
2954 if (XFS_IS_CORRUPT(log->l_mp, in xlog_valid_rec_header()
2958 xfs_warn(log->l_mp, "%s: unrecognised log version (%d).", in xlog_valid_rec_header()
2968 if (XFS_IS_CORRUPT(log->l_mp, hlen <= 0 || hlen > bufsize)) in xlog_valid_rec_header()
2971 if (XFS_IS_CORRUPT(log->l_mp, in xlog_valid_rec_header()
3020 if (xfs_has_logv2(log->l_mp)) { in xlog_do_recovery_pass()
3045 if (h_len > h_size && h_len <= log->l_mp->m_logbsize && in xlog_do_recovery_pass()
3047 xfs_warn(log->l_mp, in xlog_do_recovery_pass()
3049 h_size, log->l_mp->m_logbsize); in xlog_do_recovery_pass()
3050 h_size = log->l_mp->m_logbsize; in xlog_do_recovery_pass()
3346 struct xfs_mount *mp = log->l_mp; in xlog_do_recover()
3424 if (xfs_has_crc(log->l_mp) && in xlog_recover()
3425 !xfs_log_check_lsn(log->l_mp, log->l_mp->m_sb.sb_lsn)) in xlog_recover()
3440 if ((error = xfs_dev_is_read_only(log->l_mp, "recovery"))) { in xlog_recover()
3451 if (xfs_sb_is_v5(&log->l_mp->m_sb) && in xlog_recover()
3452 xfs_sb_has_incompat_log_feature(&log->l_mp->m_sb, in xlog_recover()
3454 xfs_warn(log->l_mp, in xlog_recover()
3456 (log->l_mp->m_sb.sb_features_log_incompat & in xlog_recover()
3458 xfs_warn(log->l_mp, in xlog_recover()
3460 xfs_warn(log->l_mp, in xlog_recover()
3471 xfs_notice(log->l_mp, in xlog_recover()
3477 xfs_notice(log->l_mp, "Starting recovery (logdev: %s)", in xlog_recover()
3478 log->l_mp->m_logname ? log->l_mp->m_logname in xlog_recover()
3518 xfs_alert(log->l_mp, "Failed to recover intents"); in xlog_recover_finish()
3528 xfs_log_force(log->l_mp, XFS_LOG_SYNC); in xlog_recover_finish()
3539 error = xfs_reflink_recover_cow(log->l_mp); in xlog_recover_finish()
3541 xfs_alert(log->l_mp, in xlog_recover_finish()