Lines Matching refs:error
71 int error;
87 error = execute(batch[i], data);
88 if (error == -EAGAIN) {
92 if (error && last_error != -EFSCORRUPTED)
93 last_error = error;
126 int error = -EAGAIN;
148 error = xfs_qm_dqflush(dqp, &bp);
149 if (!error) {
150 error = xfs_bwrite(bp);
152 } else if (error == -EAGAIN) {
182 return error;
255 int error;
258 error = 0;
277 error = xfs_qm_dqget_inode(ip, type, doalloc, &dqp);
278 if (error)
279 return error;
320 int error = 0;
328 error = xfs_qm_dqattach_one(ip, XFS_DQTYPE_USER,
330 if (error)
336 error = xfs_qm_dqattach_one(ip, XFS_DQTYPE_GROUP,
338 if (error)
344 error = xfs_qm_dqattach_one(ip, XFS_DQTYPE_PROJ,
346 if (error)
354 * error - they'll get detached later if it has not already been done.
357 return error;
364 int error;
370 error = xfs_qm_dqattach_locked(ip, false);
373 return error;
457 int error;
464 error = xfs_qm_dqflush(dqp, &bp);
465 if (error)
511 int error;
522 error = xfs_buf_delwri_submit(&isol.buffers);
523 if (error)
556 int error;
558 error = xfs_qm_dqget_uncached(mp, 0, type, &dqp);
559 if (error)
586 int error;
601 error = xfs_qm_dqget_uncached(mp, 0, type, &dqp);
602 if (error)
629 int error;
635 error = list_lru_init(&qinf->qi_lru);
636 if (error)
643 error = xfs_qm_init_quotainos(mp);
644 if (error)
688 error = register_shrinker(&qinf->qi_shrinker, "xfs-qm:%s",
690 if (error)
704 return error;
741 int error;
770 error = xfs_iget(mp, NULL, ino, 0, 0, ipp);
771 if (error)
772 return error;
779 error = xfs_trans_alloc(mp, &M_RES(mp)->tr_create,
782 if (error)
783 return error;
788 error = xfs_dialloc(&tp, 0, S_IFREG, &ino);
789 if (!error)
790 error = xfs_init_new_inode(&nop_mnt_idmap, tp, NULL, ino,
792 if (error) {
794 return error;
824 error = xfs_trans_commit(tp);
825 if (error) {
827 xfs_alert(mp, "%s failed (error %d)!", __func__, error);
831 return error;
915 int error = 0;
929 error = xfs_trans_read_buf(mp, NULL, mp->m_ddev_targp,
941 if (error == -EFSCORRUPTED) {
942 error = xfs_trans_read_buf(mp, NULL, mp->m_ddev_targp,
948 if (error)
966 return error;
982 int error; /* return value */
989 error = 0;
1012 error = xfs_bmapi_read(qip, lblkno, maxlblkcnt - lblkno,
1015 if (error)
1050 error = xfs_qm_reset_dqcounts_all(mp, firstid,
1054 if (error)
1061 return error;
1082 int error;
1085 error = xfs_qm_dqget(mp, id, type, true, &dqp);
1086 if (error) {
1090 ASSERT(error != -ESRCH);
1091 ASSERT(error != -ENOENT);
1092 return error;
1142 int error;
1157 error = xfs_iget(mp, tp, ino, XFS_IGET_DONTCACHE, 0, &ip);
1158 if (error == -EINVAL || error == -ENOENT)
1160 if (error)
1161 return error;
1169 error = xfs_inode_reload_unlinked(ip);
1170 if (error) {
1181 error = xfs_iread_extents(tp, ip, XFS_DATA_FORK);
1182 if (error)
1204 error = xfs_qm_quotacheck_dqadjust(ip, XFS_DQTYPE_USER, nblks,
1206 if (error)
1211 error = xfs_qm_quotacheck_dqadjust(ip, XFS_DQTYPE_GROUP, nblks,
1213 if (error)
1218 error = xfs_qm_quotacheck_dqadjust(ip, XFS_DQTYPE_PROJ, nblks,
1220 if (error)
1226 return error;
1237 int error = 0;
1255 error = xfs_buf_incore(mp->m_ddev_targp, dqp->q_blkno,
1257 if (error)
1261 error = -EAGAIN;
1270 error = -EAGAIN;
1274 error = xfs_qm_dqflush(dqp, &bp);
1275 if (error)
1282 return error;
1293 int error, error2;
1313 error = xfs_qm_reset_dqcounts_buf(mp, uip, XFS_DQTYPE_USER,
1315 if (error)
1321 error = xfs_qm_reset_dqcounts_buf(mp, gip, XFS_DQTYPE_GROUP,
1323 if (error)
1329 error = xfs_qm_reset_dqcounts_buf(mp, pip, XFS_DQTYPE_PROJ,
1331 if (error)
1337 error = xfs_iwalk_threaded(mp, 0, 0, xfs_qm_dqusage_adjust, 0, true,
1342 * On error, the inode walk may have partially populated the dquot
1346 if (error)
1354 error = xfs_qm_dquot_walk(mp, XFS_DQTYPE_USER, xfs_qm_flush_one,
1360 if (!error)
1361 error = error2;
1366 if (!error)
1367 error = error2;
1371 if (!error)
1372 error = error2;
1375 * We can get this error if we couldn't do a dquot allocation inside
1381 if (error)
1395 if (error) {
1398 error);
1410 return error;
1414 * On error, we may have inodes queued for inactivation. This may try
1441 int error = 0;
1460 error = xfs_qm_init_quotainfo(mp);
1461 if (error) {
1473 error = xfs_qm_quotacheck(mp);
1474 if (error) {
1515 if (error) {
1532 int error;
1544 error = xfs_iget(mp, NULL, mp->m_sb.sb_uquotino,
1546 if (error)
1547 return error;
1552 error = xfs_iget(mp, NULL, mp->m_sb.sb_gquotino,
1554 if (error)
1560 error = xfs_iget(mp, NULL, mp->m_sb.sb_pquotino,
1562 if (error)
1576 error = xfs_qm_qino_alloc(mp, &uip,
1578 if (error)
1584 error = xfs_qm_qino_alloc(mp, &gip,
1586 if (error)
1592 error = xfs_qm_qino_alloc(mp, &pip,
1594 if (error)
1611 return error;
1678 int error;
1695 error = xfs_qm_dqattach_locked(ip, true);
1696 if (error) {
1698 return error;
1715 error = xfs_qm_dqget(mp, from_kuid(user_ns, uid),
1717 if (error) {
1718 ASSERT(error != -ENOENT);
1719 return error;
1740 error = xfs_qm_dqget(mp, from_kgid(user_ns, gid),
1742 if (error) {
1743 ASSERT(error != -ENOENT);
1758 error = xfs_qm_dqget(mp, prid,
1760 if (error) {
1761 ASSERT(error != -ENOENT);
1792 return error;
1870 int error;
1877 error = xfs_qm_dqattach(ip);
1878 if (error)
1879 return error;