-((int64_t)blocks), rsvd);
if (error != 0) {
current_restore_flags_nested(&tp->t_pflags, PF_FSTRANS);
- return ENOSPC;
+ return -ENOSPC;
}
tp->t_blk_res += blocks;
}
error = xfs_mod_incore_sb(tp->t_mountp, XFS_SBS_FREXTENTS,
-((int64_t)rtextents), rsvd);
if (error) {
- error = ENOSPC;
+ error = -ENOSPC;
goto undo_log;
}
tp->t_rtx_res += rtextents;
goto out_unreserve;
if (XFS_FORCED_SHUTDOWN(mp)) {
- error = EIO;
+ error = -EIO;
goto out_unreserve;
}
if (tp->t_ticket) {
commit_lsn = xfs_log_done(mp, tp->t_ticket, NULL, log_flags);
if (commit_lsn == -1 && !error)
- error = EIO;
+ error = -EIO;
}
current_restore_flags_nested(&tp->t_pflags, PF_FSTRANS);
xfs_trans_free_items(tp, NULLCOMMITLSN, error ? XFS_TRANS_ABORT : 0);