Lines Matching defs:error

134 	int error;
140 error = gfs2_find_jhead(sdp->sd_jdesc, &head, false);
141 if (error) {
143 return error;
155 error = gfs2_quota_init(sdp);
156 if (!error && gfs2_withdrawn(sdp))
157 error = -EIO;
158 if (!error)
160 return error;
188 int error;
190 error = gfs2_glock_nq_init(m_ip->i_gl, LM_ST_EXCLUSIVE, GL_NOCACHE,
192 if (error)
193 return error;
195 error = gfs2_meta_inode_buffer(m_ip, &m_bh);
196 if (error)
278 int error;
280 error = gfs2_glock_nq_init(m_ip->i_gl, LM_ST_EXCLUSIVE, GL_NOCACHE,
282 if (error)
285 error = gfs2_meta_inode_buffer(m_ip, &m_bh);
286 if (error)
298 error = gfs2_trans_begin(sdp, 2 * RES_DINODE, 0);
299 if (error)
312 return error;
335 int error, error2;
345 error = -ENOMEM;
349 error = gfs2_glock_nq_init(ip->i_gl, LM_ST_SHARED, 0, &lfcc->gh);
350 if (error) {
359 error = gfs2_glock_nq_init(sdp->sd_freeze_gl, LM_ST_EXCLUSIVE,
362 if (error)
366 error = gfs2_jdesc_check(jd);
367 if (error)
369 error = gfs2_find_jhead(jd, &lh, false);
370 if (error)
373 error = -EBUSY;
378 if (!error)
394 return error;
564 * a transaction to write its revokes, and the error will cause
679 int error;
681 error = freeze_super(sb, FREEZE_HOLDER_USERSPACE);
682 if (error)
683 return error;
689 error = thaw_super(sb, FREEZE_HOLDER_USERSPACE);
690 if (error)
691 return error;
701 int error;
703 error = gfs2_freeze_lock_shared(sdp);
704 if (error)
706 error = thaw_super(sb, FREEZE_HOLDER_USERSPACE);
707 if (!error)
711 fs_info(sdp, "GFS2: couldn't thaw filesystem: %d\n", error);
713 return error;
720 int error;
723 error = -EBUSY;
727 error = gfs2_freeze_locally(sdp);
728 if (error)
734 error = gfs2_do_thaw(sdp);
735 if (error)
742 fs_info(sdp, "GFS2: couldn't freeze filesystem: %d\n", error);
758 int error;
762 error = -EBUSY;
767 error = gfs2_freeze_locally(sdp);
768 if (error) {
770 error);
774 error = gfs2_lock_fs_check_clean(sdp);
775 if (!error)
778 error = gfs2_do_thaw(sdp);
779 if (error)
782 if (error == -EBUSY)
784 else if (error == -EIO) {
785 fs_err(sdp, "Fatal IO error: cannot freeze gfs2 due "
786 "to recovery error.\n");
789 fs_err(sdp, "error freezing FS: %d\n", error);
796 if (!error) {
801 return error;
813 int error;
817 error = -EINVAL;
823 error = gfs2_do_thaw(sdp);
825 if (!error) {
831 return error;
871 * Any error (other than a signal) will cause this routine to fall back
886 int error = 0, err;
907 error = err;
909 if (!error) {
913 error = statfs_slow_fill(rgd, sc);
921 else if (rgd_next && !error) {
922 error = gfs2_glock_nq_init(rgd_next->rd_gl,
931 error = -ERESTARTSYS;
941 return error;
981 * Returns: 0 on success or error code
989 int error;
991 error = gfs2_rindex_update(sdp);
992 if (error)
993 return error;
996 error = gfs2_statfs_slow(sdp, &sc);
998 error = gfs2_statfs_i(sdp, &sc);
1000 if (error)
1001 return error;
1082 * Returns: 0 on success or error code
1216 int error;
1225 error = gfs2_quota_hold(ip, NO_UID_QUOTA_CHANGE, NO_GID_QUOTA_CHANGE);
1226 if (error)
1227 return error;
1232 error = -EIO;
1236 error = gfs2_glock_nq_init(rgd->rd_gl, LM_ST_EXCLUSIVE,
1238 if (error)
1241 error = gfs2_trans_begin(sdp, RES_RG_BIT + RES_STATFS + RES_QUOTA,
1243 if (error)
1256 return error;
1281 int error;
1312 error = gfs2_glock_nq(gh);
1313 if (error != GLR_TRYFAILED)
1314 return !error;
1317 error = gfs2_glock_nq(gh);
1318 if (error)