Lines Matching refs:error

156 	int		error;
180 error = xfs_buf_read_uncached(mp->m_ddev_targp, XFS_SB_DADDR,
183 if (error) {
185 xfs_warn(mp, "SB validate failed with error %d.", error);
187 if (error == -EFSBADCRC)
188 error = -EFSCORRUPTED;
189 return error;
204 error = -EINVAL;
215 error = -ENOSYS;
242 return error;
344 int error;
350 error = xfs_check_new_dalign(mp, mp->m_dalign, &update_sb);
351 if (error || !update_sb)
352 return error;
394 int error;
401 error = xfs_buf_read_uncached(mp->m_ddev_targp,
404 if (error) {
406 return error;
418 error = xfs_buf_read_uncached(mp->m_logdev_targp,
421 if (error) {
423 return error;
474 int error = 0;
516 error = xfs_initialize_perag_data(mp, mp->m_sb.sb_agcount);
517 if (error)
518 return error;
534 error = xfs_rtalloc_reinit_frextents(mp);
535 if (error)
536 return error;
574 * Then we can tell the world we are unmounting so that error handling knows
575 * that the filesystem is going away and we should error out anything that we
643 int error = 0;
683 error = xfs_validate_new_dalign(mp);
684 if (error)
703 error = xfs_update_alignment(mp);
704 if (error)
710 error = xfs_sysfs_init(&mp->m_kobj, &xfs_mp_ktype,
712 if (error)
715 error = xfs_sysfs_init(&mp->m_stats.xs_kobj, &xfs_stats_ktype,
717 if (error)
722 error = xfs_error_sysfs_init(mp);
723 if (error)
726 error = xfs_errortag_init(mp);
727 if (error)
730 error = xfs_uuid_mount(mp);
731 if (error)
757 error = -EINVAL;
764 error = xfs_check_sizes(mp);
765 if (error)
771 error = xfs_rtmount_init(mp);
772 if (error) {
786 error = xfs_da_mount(mp);
787 if (error) {
788 xfs_warn(mp, "Failed dir/attr init: %d", error);
800 error = xfs_initialize_perag(mp, sbp->sb_agcount, mp->m_sb.sb_dblocks,
802 if (error) {
803 xfs_warn(mp, "Failed per-ag init: %d", error);
809 error = -EFSCORRUPTED;
813 error = xfs_inodegc_register_shrinker(mp);
814 if (error)
822 error = xfs_log_mount(mp, mp->m_logdev_targp,
825 if (error) {
851 error = xfs_iget(mp, NULL, sbp->sb_rootino, XFS_IGET_UNTRUSTED,
853 if (error) {
855 "Failed to read root inode 0x%llx, error %d",
856 sbp->sb_rootino, -error);
866 error = -EFSCORRUPTED;
876 error = xfs_rtmount_inodes(mp);
877 if (error) {
886 error = xfs_check_summary_counts(mp);
887 if (error)
896 error = xfs_sync_sb(mp, false);
897 if (error) {
907 error = xfs_qm_newmount(mp, &quotamount, &quotaflags);
908 if (error)
918 error = xfs_mount_reset_sbqflags(mp);
919 if (error)
932 error = xfs_fs_reserve_ag_blocks(mp);
933 if (error && error == -ENOSPC)
936 error = xfs_log_mount_finish(mp);
938 if (error) {
978 error = xfs_reserve_blocks(mp, &resblks, NULL);
979 if (error)
984 error = xfs_fs_reserve_ag_blocks(mp);
985 if (error && error != -ENOSPC)
1045 return error;
1057 int error;
1094 error = xfs_reserve_blocks(mp, &resblks, NULL);
1095 if (error)
1238 * Used to free the superblock along various error paths.
1291 int error;
1302 error = xfs_log_force(mp, XFS_LOG_SYNC);
1303 if (error)
1304 return error;
1315 error = -EIO;
1330 error = xfs_bwrite(mp->m_sb_bp);
1331 if (error)
1347 return error;