Lines Matching defs:error
299 int error;
303 error = xfs_trans_alloc(mp, &M_RES(mp)->tr_qm_dqalloc,
305 if (error)
306 return error;
316 error = -ESRCH;
320 error = xfs_iext_count_may_overflow(quotip, XFS_DATA_FORK,
322 if (error == -EFBIG)
323 error = xfs_iext_count_upgrade(tp, quotip,
325 if (error)
329 error = xfs_bmapi_write(tp, quotip, dqp->q_fileoffset,
332 if (error)
346 error = xfs_trans_get_buf(tp, mp->m_ddev_targp, dqp->q_blkno,
348 if (error)
362 * error must be paid attention to very carefully, as it has been
377 * manually or by committing the transaction. On error, the buffer is
384 error = xfs_trans_commit(tp);
386 if (error) {
388 return error;
397 return error;
416 int error;
431 error = xfs_bmapi_read(quotip, dqp->q_fileoffset,
434 if (error)
435 return error;
451 error = xfs_trans_read_buf(mp, NULL, mp->m_ddev_targp, dqp->q_blkno,
454 if (error) {
456 return error;
658 int error;
664 error = xfs_dquot_disk_read(mp, dqp, &bp);
665 if (error == -ENOENT && can_alloc)
666 error = xfs_dquot_disk_alloc(dqp, &bp);
667 if (error)
677 error = xfs_dquot_from_disk(dqp, bp);
679 if (error)
683 return error;
689 return error;
709 int error = 0;
725 error = xfs_iread_extents(NULL, quotip, XFS_DATA_FORK);
726 if (error)
727 return error;
735 error = -ENOENT;
740 return error;
783 * Try to insert a new dquot into the in-core cache. If an error occurs the
796 int error;
799 error = radix_tree_insert(tree, id, dqp);
800 if (unlikely(error)) {
804 return error;
857 int error;
859 error = xfs_qm_dqget_checks(mp, type);
860 if (error)
861 return error;
870 error = xfs_qm_dqread(mp, id, type, can_alloc, &dqp);
871 if (error)
872 return error;
874 error = xfs_qm_dqget_cache_insert(mp, qi, tree, id, dqp);
875 if (error) {
903 int error;
905 error = xfs_qm_dqget_checks(mp, type);
906 if (error)
907 return error;
947 int error;
949 error = xfs_qm_dqget_checks(mp, type);
950 if (error)
951 return error;
973 error = xfs_qm_dqread(mp, id, type, can_alloc, &dqp);
975 if (error)
976 return error;
998 error = xfs_qm_dqget_cache_insert(mp, qi, tree, id, dqp);
999 if (error) {
1028 int error = 0;
1031 for (; !error; error = xfs_dq_get_next_id(mp, type, &id)) {
1032 error = xfs_qm_dqget(mp, id, type, false, &dqp);
1033 if (error == -ENOENT)
1035 else if (error != 0)
1046 return error;
1222 int error;
1236 error = xfs_trans_read_buf(mp, NULL, mp->m_ddev_targp, dqp->q_blkno,
1239 if (error == -EAGAIN)
1241 if (error)
1249 error = -EFSCORRUPTED;
1306 return error;
1368 * particular quota type is active. iter_fn can return negative error codes,
1380 int error;
1383 error = xfs_qm_dqget_next(mp, id, type, &dq);
1384 if (error == -ENOENT)
1386 if (error)
1387 return error;
1389 error = iter_fn(dq, type, priv);
1392 } while (error == 0 && id != 0);
1394 return error;