Lines Matching refs:error

181 	int		error = -ENOMEM;
197 error = -ENOMEM;
205 error = xfs_buf_hash_init(pag);
206 if (error)
213 error = radix_tree_preload(GFP_NOFS);
214 if (error)
222 error = -EEXIST;
230 error = xfs_iunlink_init(pag);
231 if (error)
258 return error;
274 int error;
298 error = xfs_buf_read_uncached(mp->m_ddev_targp, XFS_SB_DADDR,
301 if (error) {
303 xfs_warn(mp, "SB validate failed with error %d.", error);
305 if (error == -EFSBADCRC)
306 error = -EFSCORRUPTED;
307 return error;
322 error = -EINVAL;
333 error = -ENOSYS;
359 return error;
459 int error;
465 error = xfs_check_new_dalign(mp, mp->m_dalign, &update_sb);
466 if (error || !update_sb)
467 return error;
507 int error;
514 error = xfs_buf_read_uncached(mp->m_ddev_targp,
517 if (error) {
519 return error;
531 error = xfs_buf_read_uncached(mp->m_logdev_targp,
534 if (error) {
536 return error;
650 * Then we can tell the world we are unmounting so that error handling knows
651 * that the filesystem is going away and we should error out anything that we
694 int error = 0;
750 error = xfs_validate_new_dalign(mp);
751 if (error)
768 error = xfs_update_alignment(mp);
769 if (error)
775 error = xfs_sysfs_init(&mp->m_kobj, &xfs_mp_ktype,
777 if (error)
780 error = xfs_sysfs_init(&mp->m_stats.xs_kobj, &xfs_stats_ktype,
782 if (error)
785 error = xfs_error_sysfs_init(mp);
786 if (error)
789 error = xfs_errortag_init(mp);
790 if (error)
793 error = xfs_uuid_mount(mp);
794 if (error)
820 error = -EINVAL;
827 error = xfs_check_sizes(mp);
828 if (error)
834 error = xfs_rtmount_init(mp);
835 if (error) {
849 error = xfs_da_mount(mp);
850 if (error) {
851 xfs_warn(mp, "Failed dir/attr init: %d", error);
863 error = xfs_initialize_perag(mp, sbp->sb_agcount, &mp->m_maxagi);
864 if (error) {
865 xfs_warn(mp, "Failed per-ag init: %d", error);
871 error = -EFSCORRUPTED;
880 error = xfs_log_mount(mp, mp->m_logdev_targp,
883 if (error) {
889 error = xfs_check_summary_counts(mp);
890 if (error)
897 error = xfs_iget(mp, NULL, sbp->sb_rootino, XFS_IGET_UNTRUSTED,
899 if (error) {
901 "Failed to read root inode 0x%llx, error %d",
902 sbp->sb_rootino, -error);
912 error = -EFSCORRUPTED;
922 error = xfs_rtmount_inodes(mp);
923 if (error) {
937 error = xfs_sync_sb(mp, false);
938 if (error) {
948 error = xfs_qm_newmount(mp, &quotamount, &quotaflags);
949 if (error)
961 error = xfs_mount_reset_sbqflags(mp);
962 if (error)
975 error = xfs_fs_reserve_ag_blocks(mp);
976 if (error && error == -ENOSPC)
979 error = xfs_log_mount_finish(mp);
981 if (error) {
1023 error = xfs_reserve_blocks(mp, &resblks, NULL);
1024 if (error)
1029 error = xfs_reflink_recover_cow(mp);
1030 if (error) {
1032 "Error %d recovering leftover CoW allocations.", error);
1038 error = xfs_fs_reserve_ag_blocks(mp);
1039 if (error && error != -ENOSPC)
1088 return error;
1100 int error;
1127 error = xfs_reserve_blocks(mp, &resblks, NULL);
1128 if (error)
1132 error = xfs_log_sbcount(mp);
1133 if (error)
1302 * Used to free the superblock along various error paths.