Lines Matching defs:error

303 	int			error;
319 error = xfs_bmapi_write(tp, quotip, dqp->q_fileoffset,
322 if (error)
323 return error;
335 error = xfs_trans_get_buf(tp, mp->m_ddev_targp, dqp->q_blkno,
337 if (error)
338 return error;
351 * error must be paid attention to very carefully, as it has been
366 * manually or by committing the transaction. On error, the buffer is
370 error = xfs_defer_finish(tpp);
371 if (error) {
374 return error;
396 int error;
411 error = xfs_bmapi_read(quotip, dqp->q_fileoffset,
414 if (error)
415 return error;
431 error = xfs_trans_read_buf(mp, NULL, mp->m_ddev_targp, dqp->q_blkno,
434 if (error) {
436 return error;
634 int error;
636 error = xfs_trans_alloc(mp, &M_RES(mp)->tr_qm_dqalloc,
638 if (error)
641 error = xfs_dquot_disk_alloc(&tp, dqp, bpp);
642 if (error)
645 error = xfs_trans_commit(tp);
646 if (error) {
660 return error;
678 int error;
684 error = xfs_dquot_disk_read(mp, dqp, &bp);
685 if (error == -ENOENT && can_alloc)
686 error = xfs_qm_dqread_alloc(mp, dqp, &bp);
687 if (error)
697 error = xfs_dquot_from_disk(dqp, bp);
699 if (error)
703 return error;
709 return error;
729 int error = 0;
746 error = xfs_iread_extents(NULL, quotip, XFS_DATA_FORK);
747 if (error)
748 return error;
757 error = -ENOENT;
762 return error;
805 * Try to insert a new dquot into the in-core cache. If an error occurs the
818 int error;
821 error = radix_tree_insert(tree, id, dqp);
822 if (unlikely(error)) {
824 WARN_ON(error != -EEXIST);
827 return error;
883 int error;
885 error = xfs_qm_dqget_checks(mp, type);
886 if (error)
887 return error;
896 error = xfs_qm_dqread(mp, id, type, can_alloc, &dqp);
897 if (error)
898 return error;
900 error = xfs_qm_dqget_cache_insert(mp, qi, tree, id, dqp);
901 if (error) {
929 int error;
931 error = xfs_qm_dqget_checks(mp, type);
932 if (error)
933 return error;
973 int error;
975 error = xfs_qm_dqget_checks(mp, type);
976 if (error)
977 return error;
999 error = xfs_qm_dqread(mp, id, type, can_alloc, &dqp);
1001 if (error)
1002 return error;
1024 error = xfs_qm_dqget_cache_insert(mp, qi, tree, id, dqp);
1025 if (error) {
1054 int error = 0;
1057 for (; !error; error = xfs_dq_get_next_id(mp, type, &id)) {
1058 error = xfs_qm_dqget(mp, id, type, false, &dqp);
1059 if (error == -ENOENT)
1061 else if (error != 0)
1072 return error;
1248 int error;
1262 error = xfs_trans_read_buf(mp, NULL, mp->m_ddev_targp, dqp->q_blkno,
1265 if (error == -EAGAIN)
1267 if (error)
1275 error = -EFSCORRUPTED;
1332 return error;
1394 * particular quota type is active. iter_fn can return negative error codes,
1406 int error;
1409 error = xfs_qm_dqget_next(mp, id, type, &dq);
1410 if (error == -ENOENT)
1412 if (error)
1413 return error;
1415 error = iter_fn(dq, type, priv);
1418 } while (error == 0 && id != 0);
1420 return error;