Lines Matching refs:error
156 int error = 0;
165 error = xfs_mod_fdblocks(mp, -((int64_t)blocks), rsvd);
166 if (error != 0)
192 error = xfs_log_regrant(mp, tp->t_ticket);
194 error = xfs_log_reserve(mp, resp->tr_logres,
199 if (error)
212 error = xfs_mod_frextents(mp, -((int64_t)rtextents));
213 if (error) {
214 error = -ENOSPC;
239 return error;
253 int error;
283 error = xfs_trans_reserve(tp, resp, blocks, rtextents);
284 if (error == -ENOSPC && want_retry) {
293 error = xfs_blockgc_flush_all(mp);
294 if (error)
295 return error;
299 if (error) {
301 return error;
600 int error;
624 error = xfs_mod_fdblocks(mp, blkdelta, rsvd);
625 ASSERT(!error);
636 error = xfs_mod_frextents(mp, rtxdelta);
637 ASSERT(!error);
751 * as an iclog write error even though we haven't started any IO yet. Hence in
894 * If there is an error in any of the callouts, then stop immediately and
904 int error = 0;
923 error = lip->li_ops->iop_precommit(tp, lip);
924 if (error)
928 if (error)
930 return error;
936 * XFS disk error handling mechanism is not based on a typical
940 * be inconsistent. In such cases, this returns an error, and the
953 int error = 0;
958 error = xfs_trans_run_precommits(tp);
959 if (error) {
972 error = xfs_defer_finish_noroll(&tp);
973 if (error)
977 error = xfs_trans_run_precommits(tp);
978 if (error)
999 error = -EIO;
1021 error = xfs_log_force_seq(mp, commit_seq, XFS_LOG_SYNC, NULL);
1027 return error;
1045 xfs_trans_free_items(tp, !!error);
1049 return error;
1099 * only want an error report if there isn't already a shutdown in
1141 int error;
1160 error = __xfs_trans_commit(trans, true);
1161 if (error)
1162 return error;
1195 int error;
1198 error = xfs_trans_alloc(mp, resv, dblocks,
1201 if (error)
1202 return error;
1207 error = xfs_qm_dqattach_locked(ip, false);
1208 if (error) {
1210 ASSERT(error != -ENOENT);
1214 error = xfs_trans_reserve_quota_nblks(tp, ip, dblocks, rblocks, force);
1215 if ((error == -EDQUOT || error == -ENOSPC) && !retried) {
1222 if (error)
1231 return error;
1250 int error;
1253 error = xfs_trans_alloc(mp, resv, dblocks, 0, 0, &tp);
1254 if (error)
1255 return error;
1257 error = xfs_trans_reserve_quota_icreate(tp, udqp, gdqp, pdqp, dblocks);
1258 if ((error == -EDQUOT || error == -ENOSPC) && !retried) {
1264 if (error) {
1266 return error;
1297 int error;
1300 error = xfs_trans_alloc(mp, &M_RES(mp)->tr_ichange, 0, 0, 0, &tp);
1301 if (error)
1302 return error;
1307 error = xfs_qm_dqattach_locked(ip, false);
1308 if (error) {
1310 ASSERT(error != -ENOENT);
1335 error = xfs_trans_reserve_quota_bydquots(tp, mp, udqp, gdqp,
1338 if ((error == -EDQUOT || error == -ENOSPC) && !retried) {
1344 if (error)
1353 return error;
1380 int error;
1385 error = xfs_trans_alloc(mp, resv, resblks, 0, 0, &tp);
1386 if (error == -ENOSPC) {
1387 *nospace_error = error;
1389 error = xfs_trans_alloc(mp, resv, resblks, 0, 0, &tp);
1391 if (error)
1392 return error;
1399 error = xfs_qm_dqattach_locked(dp, false);
1400 if (error) {
1402 ASSERT(error != -ENOENT);
1406 error = xfs_qm_dqattach_locked(ip, false);
1407 if (error) {
1409 ASSERT(error != -ENOENT);
1416 error = xfs_trans_reserve_quota_nblks(tp, dp, resblks, 0, false);
1417 if (error == -EDQUOT || error == -ENOSPC) {
1425 *nospace_error = error;
1427 error = 0;
1429 if (error)
1439 return error;