Lines Matching defs:error

68 		int		error = 0;
84 error = execute(batch[i], data);
85 if (error == -EAGAIN) {
89 if (error && last_error != -EFSCORRUPTED)
90 last_error = error;
124 int error = -EAGAIN;
146 error = xfs_qm_dqflush(dqp, &bp);
147 if (!error) {
148 error = xfs_bwrite(bp);
150 } else if (error == -EAGAIN) {
180 return error;
257 int error;
260 error = 0;
279 error = xfs_qm_dqget_inode(ip, type, doalloc, &dqp);
280 if (error)
281 return error;
324 int error = 0;
332 error = xfs_qm_dqattach_one(ip, XFS_DQTYPE_USER,
334 if (error)
340 error = xfs_qm_dqattach_one(ip, XFS_DQTYPE_GROUP,
342 if (error)
348 error = xfs_qm_dqattach_one(ip, XFS_DQTYPE_PROJ,
350 if (error)
358 * error - they'll get detached later if it has not already been done.
361 return error;
368 int error;
374 error = xfs_qm_dqattach_locked(ip, false);
377 return error;
455 int error;
462 error = xfs_qm_dqflush(dqp, &bp);
463 if (error)
507 int error;
518 error = xfs_buf_delwri_submit(&isol.buffers);
519 if (error)
552 int error;
554 error = xfs_qm_dqget_uncached(mp, 0, type, &dqp);
555 if (error)
582 int error;
600 error = xfs_qm_dqget_uncached(mp, 0, type, &dqp);
601 if (error)
634 int error;
640 error = list_lru_init(&qinf->qi_lru);
641 if (error)
648 error = xfs_qm_init_quotainos(mp);
649 if (error)
693 error = register_shrinker(&qinf->qi_shrinker);
694 if (error)
708 return error;
745 int error;
774 error = xfs_iget(mp, NULL, ino, 0, 0, ip);
775 if (error)
776 return error;
783 error = xfs_trans_alloc(mp, &M_RES(mp)->tr_create,
786 if (error)
787 return error;
790 error = xfs_dir_ialloc(&tp, NULL, S_IFREG, 1, 0, 0, ip);
791 if (error) {
793 return error;
823 error = xfs_trans_commit(tp);
824 if (error) {
826 xfs_alert(mp, "%s failed (error %d)!", __func__, error);
830 return error;
914 int error = 0;
928 error = xfs_trans_read_buf(mp, NULL, mp->m_ddev_targp,
940 if (error == -EFSCORRUPTED) {
941 error = xfs_trans_read_buf(mp, NULL, mp->m_ddev_targp,
947 if (error)
965 return error;
981 int error; /* return value */
988 error = 0;
1011 error = xfs_bmapi_read(qip, lblkno, maxlblkcnt - lblkno,
1014 if (error)
1049 error = xfs_qm_reset_dqcounts_all(mp, firstid,
1053 if (error)
1060 return error;
1081 int error;
1084 error = xfs_qm_dqget(mp, id, type, true, &dqp);
1085 if (error) {
1089 ASSERT(error != -ESRCH);
1090 ASSERT(error != -ENOENT);
1091 return error;
1141 int error;
1156 error = xfs_iget(mp, tp, ino, XFS_IGET_DONTCACHE, 0, &ip);
1157 if (error == -EINVAL || error == -ENOENT)
1159 if (error)
1160 return error;
1168 error = xfs_iread_extents(tp, ip, XFS_DATA_FORK);
1169 if (error)
1191 error = xfs_qm_quotacheck_dqadjust(ip, XFS_DQTYPE_USER, nblks,
1193 if (error)
1198 error = xfs_qm_quotacheck_dqadjust(ip, XFS_DQTYPE_GROUP, nblks,
1200 if (error)
1205 error = xfs_qm_quotacheck_dqadjust(ip, XFS_DQTYPE_PROJ, nblks,
1207 if (error)
1213 return error;
1224 int error = 0;
1245 error = -EINVAL;
1253 error = -EAGAIN;
1257 error = xfs_qm_dqflush(dqp, &bp);
1258 if (error)
1265 return error;
1276 int error, error2;
1296 error = xfs_qm_reset_dqcounts_buf(mp, uip, XFS_DQTYPE_USER,
1298 if (error)
1304 error = xfs_qm_reset_dqcounts_buf(mp, gip, XFS_DQTYPE_GROUP,
1306 if (error)
1312 error = xfs_qm_reset_dqcounts_buf(mp, pip, XFS_DQTYPE_PROJ,
1314 if (error)
1319 error = xfs_iwalk_threaded(mp, 0, 0, xfs_qm_dqusage_adjust, 0, true,
1321 if (error) {
1336 error = xfs_qm_dquot_walk(mp, XFS_DQTYPE_USER, xfs_qm_flush_one,
1342 if (!error)
1343 error = error2;
1348 if (!error)
1349 error = error2;
1353 if (!error)
1354 error = error2;
1357 * We can get this error if we couldn't do a dquot allocation inside
1363 if (error) {
1379 if (error) {
1382 error);
1394 return error;
1410 int error = 0;
1429 error = xfs_qm_init_quotainfo(mp);
1430 if (error) {
1442 error = xfs_qm_quotacheck(mp);
1443 if (error) {
1484 if (error) {
1501 int error;
1513 error = xfs_iget(mp, NULL, mp->m_sb.sb_uquotino,
1515 if (error)
1516 return error;
1521 error = xfs_iget(mp, NULL, mp->m_sb.sb_gquotino,
1523 if (error)
1529 error = xfs_iget(mp, NULL, mp->m_sb.sb_pquotino,
1531 if (error)
1545 error = xfs_qm_qino_alloc(mp, &uip,
1547 if (error)
1553 error = xfs_qm_qino_alloc(mp, &gip,
1555 if (error)
1561 error = xfs_qm_qino_alloc(mp, &pip,
1563 if (error)
1580 return error;
1647 int error;
1664 error = xfs_qm_dqattach_locked(ip, true);
1665 if (error) {
1667 return error;
1684 error = xfs_qm_dqget(mp, from_kuid(user_ns, uid),
1686 if (error) {
1687 ASSERT(error != -ENOENT);
1688 return error;
1709 error = xfs_qm_dqget(mp, from_kgid(user_ns, gid),
1711 if (error) {
1712 ASSERT(error != -ENOENT);
1727 error = xfs_qm_dqget(mp, prid,
1729 if (error) {
1730 ASSERT(error != -ENOENT);
1761 return error;
1887 int error;
1894 error = xfs_qm_dqattach(ip);
1895 if (error)
1896 return error;