Lines Matching refs:error

347 	int			error = 0;
363 error = xlog_grant_head_wait(log, head, tic,
369 error = xlog_grant_head_wait(log, head, tic, *need_bytes);
373 return error;
407 int error = 0;
430 error = xlog_grant_head_check(log, &log->l_write_head, tic,
432 if (error)
448 return error;
470 int error = 0;
486 error = xlog_grant_head_check(log, &log->l_reserve_head, tic,
488 if (error)
505 return error;
632 * Return error or zero.
642 int error = 0;
659 error = PTR_ERR(log);
695 error = -EINVAL;
706 error = xfs_trans_ail_init(mp);
707 if (error) {
708 xfs_warn(mp, "AIL initialisation failed: error %d", error);
718 error = xlog_recover(log);
719 if (error) {
720 xfs_warn(mp, "log mount/recovery failed: error %d",
721 error);
727 error = xfs_sysfs_init(&log->l_kobj, &xfs_log_ktype, &mp->m_kobj,
729 if (error)
749 return error;
767 int error = 0;
797 error = xlog_recover_finish(log);
807 * Don't push in the error case because the AIL may have pending intents
811 if (!error) {
825 ASSERT(!error || xlog_is_shutdown(log));
827 return error;
958 int error;
960 error = xfs_log_reserve(mp, 600, 1, &tic, 0);
961 if (error)
964 error = xlog_write_unmount_record(log, tic);
970 if (error)
975 error = xlog_force_iclog(iclog);
1052 int error;
1054 error = xfs_sync_sb(mp, false);
1055 if (error)
1231 int error = 0;
1266 error = xfs_sync_sb(mp, true);
1267 if (error)
1272 return error;
1381 int error;
1383 error = blk_status_to_errno(iclog->ic_bio.bi_status);
1387 error = -EIO;
1391 * Race to shutdown the filesystem if we see an error.
1393 if (XFS_TEST_ERROR(error, log->l_mp, XFS_ERRTAG_IODONE_IOERR)) {
1394 xfs_alert(log->l_mp, "log I/O error %d", error);
1528 int error = -ENOMEM;
1560 error = -EFSCORRUPTED;
1653 error = xlog_cil_init(log);
1654 if (error)
1671 return ERR_PTR(error);
1922 * not possible, hence we must shut down with log IO error to
2081 * Intentionally corrupt the log record CRC based on the error injection
2112 * iclog EIO error will try to shut down the log, which accesses the
2277 int error;
2282 error = xlog_state_release_iclog(log, iclog, ticket);
2284 if (error)
2285 return error;
2287 error = xlog_state_get_iclog_space(log, len, &iclog, ticket,
2289 if (error)
2290 return error;
2317 int error;
2337 error = xlog_write_get_more_iclog_space(ticket,
2340 if (error)
2341 return error;
2388 error = xlog_write_get_more_iclog_space(ticket,
2392 if (error)
2393 return error;
2487 int error = 0;
2497 error = xlog_state_get_iclog_space(log, len, &iclog, ticket,
2499 if (error)
2500 return error;
2519 error = xlog_write_partial(lv, ticket, &iclog,
2522 if (error) {
2525 * the error immediately.
2527 return error;
2544 error = xlog_state_release_iclog(log, iclog, ticket);
2547 return error;
2857 * If we got an error, either on the first buffer, or in the case of
2952 int error = 0;
2964 error = xlog_state_release_iclog(log, iclog, ticket);
2966 if (error)
2967 return error;
3136 int error;
3139 error = xlog_force_iclog(iclog);
3140 if (error)
3141 return error;
3545 * determine if they want to panic the machine when such an error occurs. For
3710 * a. if the shutdown was not due to a log IO error, flush the logs to
3719 * Return true if the shutdown cause was a log IO error and we actually shut the
3743 * If we are shutting down due to a log IO error, then we must avoid
3774 "Filesystem has been shut down due to log error (0x%x).",