Lines Matching refs:error

82 		int		error = 0;  in xfs_qm_dquot_walk()  local
98 error = execute(batch[i], data); in xfs_qm_dquot_walk()
99 if (error == -EAGAIN) { in xfs_qm_dquot_walk()
103 if (error && last_error != -EFSCORRUPTED) in xfs_qm_dquot_walk()
104 last_error = error; in xfs_qm_dquot_walk()
153 int error; in xfs_qm_dqpurge() local
159 error = xfs_qm_dqflush(dqp, &bp); in xfs_qm_dqpurge()
160 if (error) { in xfs_qm_dqpurge()
164 error = xfs_bwrite(bp); in xfs_qm_dqpurge()
268 int error; in xfs_qm_dqattach_one() local
271 error = 0; in xfs_qm_dqattach_one()
290 error = xfs_qm_dqget(ip->i_mount, ip, id, type, in xfs_qm_dqattach_one()
292 if (error) in xfs_qm_dqattach_one()
293 return error; in xfs_qm_dqattach_one()
336 int error = 0; in xfs_qm_dqattach_locked() local
344 error = xfs_qm_dqattach_one(ip, ip->i_d.di_uid, XFS_DQ_USER, in xfs_qm_dqattach_locked()
347 if (error) in xfs_qm_dqattach_locked()
353 error = xfs_qm_dqattach_one(ip, ip->i_d.di_gid, XFS_DQ_GROUP, in xfs_qm_dqattach_locked()
356 if (error) in xfs_qm_dqattach_locked()
362 error = xfs_qm_dqattach_one(ip, xfs_get_projid(ip), XFS_DQ_PROJ, in xfs_qm_dqattach_locked()
365 if (error) in xfs_qm_dqattach_locked()
376 return error; in xfs_qm_dqattach_locked()
384 int error; in xfs_qm_dqattach() local
390 error = xfs_qm_dqattach_locked(ip, flags); in xfs_qm_dqattach()
393 return error; in xfs_qm_dqattach()
471 int error; in xfs_qm_dquot_isolate() local
478 error = xfs_qm_dqflush(dqp, &bp); in xfs_qm_dquot_isolate()
479 if (error) { in xfs_qm_dquot_isolate()
526 int error; in xfs_qm_shrink_scan() local
537 error = xfs_buf_delwri_submit(&isol.buffers); in xfs_qm_shrink_scan()
538 if (error) in xfs_qm_shrink_scan()
572 int error; in xfs_qm_init_quotainfo() local
579 error = list_lru_init(&qinf->qi_lru); in xfs_qm_init_quotainfo()
580 if (error) in xfs_qm_init_quotainfo()
587 error = xfs_qm_init_quotainos(mp); in xfs_qm_init_quotainfo()
588 if (error) in xfs_qm_init_quotainfo()
617 error = xfs_qm_dqread(mp, 0, in xfs_qm_init_quotainfo()
622 if (!error) { in xfs_qm_init_quotainfo()
671 return error; in xfs_qm_init_quotainfo()
720 int error; in xfs_qm_qino_alloc() local
746 error = xfs_iget(mp, NULL, ino, 0, 0, ip); in xfs_qm_qino_alloc()
747 if (error) in xfs_qm_qino_alloc()
748 return error; in xfs_qm_qino_alloc()
756 error = xfs_trans_reserve(tp, &M_RES(mp)->tr_create, in xfs_qm_qino_alloc()
758 if (error) { in xfs_qm_qino_alloc()
760 return error; in xfs_qm_qino_alloc()
764 error = xfs_dir_ialloc(&tp, NULL, S_IFREG, 1, 0, 0, 1, ip, in xfs_qm_qino_alloc()
766 if (error) { in xfs_qm_qino_alloc()
768 return error; in xfs_qm_qino_alloc()
798 error = xfs_trans_commit(tp); in xfs_qm_qino_alloc()
799 if (error) { in xfs_qm_qino_alloc()
801 xfs_alert(mp, "%s failed (error %d)!", __func__, error); in xfs_qm_qino_alloc()
805 return error; in xfs_qm_qino_alloc()
876 int error; in xfs_qm_dqiter_bufs() local
882 error = 0; in xfs_qm_dqiter_bufs()
894 error = xfs_trans_read_buf(mp, NULL, mp->m_ddev_targp, in xfs_qm_dqiter_bufs()
906 if (error == -EFSCORRUPTED) { in xfs_qm_dqiter_bufs()
907 error = xfs_trans_read_buf(mp, NULL, mp->m_ddev_targp, in xfs_qm_dqiter_bufs()
913 if (error) in xfs_qm_dqiter_bufs()
931 return error; in xfs_qm_dqiter_bufs()
947 int error; /* return value */ in xfs_qm_dqiterate() local
954 error = 0; in xfs_qm_dqiterate()
977 error = xfs_bmapi_read(qip, lblkno, maxlblkcnt - lblkno, in xfs_qm_dqiterate()
980 if (error) in xfs_qm_dqiterate()
1015 error = xfs_qm_dqiter_bufs(mp, firstid, in xfs_qm_dqiterate()
1019 if (error) in xfs_qm_dqiterate()
1026 return error; in xfs_qm_dqiterate()
1047 int error; in xfs_qm_quotacheck_dqadjust() local
1049 error = xfs_qm_dqget(mp, ip, id, type, in xfs_qm_quotacheck_dqadjust()
1051 if (error) { in xfs_qm_quotacheck_dqadjust()
1055 ASSERT(error != -ESRCH); in xfs_qm_quotacheck_dqadjust()
1056 ASSERT(error != -ENOENT); in xfs_qm_quotacheck_dqadjust()
1057 return error; in xfs_qm_quotacheck_dqadjust()
1101 int error; in xfs_qm_get_rtblks() local
1106 if ((error = xfs_iread_extents(NULL, ip, XFS_DATA_FORK))) in xfs_qm_get_rtblks()
1107 return error; in xfs_qm_get_rtblks()
1133 int error; in xfs_qm_dqusage_adjust() local
1152 error = xfs_iget(mp, NULL, ino, 0, XFS_ILOCK_EXCL, &ip); in xfs_qm_dqusage_adjust()
1153 if (error) { in xfs_qm_dqusage_adjust()
1155 return error; in xfs_qm_dqusage_adjust()
1164 error = xfs_qm_get_rtblks(ip, &rtblks); in xfs_qm_dqusage_adjust()
1165 if (error) in xfs_qm_dqusage_adjust()
1184 error = xfs_qm_quotacheck_dqadjust(ip, ip->i_d.di_uid, in xfs_qm_dqusage_adjust()
1186 if (error) in xfs_qm_dqusage_adjust()
1191 error = xfs_qm_quotacheck_dqadjust(ip, ip->i_d.di_gid, in xfs_qm_dqusage_adjust()
1193 if (error) in xfs_qm_dqusage_adjust()
1198 error = xfs_qm_quotacheck_dqadjust(ip, xfs_get_projid(ip), in xfs_qm_dqusage_adjust()
1200 if (error) in xfs_qm_dqusage_adjust()
1213 return error; in xfs_qm_dqusage_adjust()
1223 int error = 0; in xfs_qm_flush_one() local
1232 error = xfs_qm_dqflush(dqp, &bp); in xfs_qm_flush_one()
1233 if (error) in xfs_qm_flush_one()
1240 return error; in xfs_qm_flush_one()
1251 int done, count, error, error2; in xfs_qm_quotacheck() local
1276 error = xfs_qm_dqiterate(mp, uip, XFS_QMOPT_UQUOTA, in xfs_qm_quotacheck()
1278 if (error) in xfs_qm_quotacheck()
1284 error = xfs_qm_dqiterate(mp, gip, XFS_QMOPT_GQUOTA, in xfs_qm_quotacheck()
1286 if (error) in xfs_qm_quotacheck()
1292 error = xfs_qm_dqiterate(mp, pip, XFS_QMOPT_PQUOTA, in xfs_qm_quotacheck()
1294 if (error) in xfs_qm_quotacheck()
1304 error = xfs_bulkstat(mp, &lastino, &count, in xfs_qm_quotacheck()
1307 if (error) in xfs_qm_quotacheck()
1317 error = xfs_qm_dquot_walk(mp, XFS_DQ_USER, xfs_qm_flush_one, in xfs_qm_quotacheck()
1323 if (!error) in xfs_qm_quotacheck()
1324 error = error2; in xfs_qm_quotacheck()
1329 if (!error) in xfs_qm_quotacheck()
1330 error = error2; in xfs_qm_quotacheck()
1334 if (!error) in xfs_qm_quotacheck()
1335 error = error2; in xfs_qm_quotacheck()
1344 if (error) { in xfs_qm_quotacheck()
1365 if (error) { in xfs_qm_quotacheck()
1368 error); in xfs_qm_quotacheck()
1380 return error; in xfs_qm_quotacheck()
1396 int error = 0; in xfs_qm_mount_quotas() local
1415 error = xfs_qm_init_quotainfo(mp); in xfs_qm_mount_quotas()
1416 if (error) { in xfs_qm_mount_quotas()
1428 error = xfs_qm_quotacheck(mp); in xfs_qm_mount_quotas()
1429 if (error) { in xfs_qm_mount_quotas()
1470 if (error) { in xfs_qm_mount_quotas()
1487 int error; in xfs_qm_init_quotainos() local
1499 error = xfs_iget(mp, NULL, mp->m_sb.sb_uquotino, in xfs_qm_init_quotainos()
1501 if (error) in xfs_qm_init_quotainos()
1502 return error; in xfs_qm_init_quotainos()
1507 error = xfs_iget(mp, NULL, mp->m_sb.sb_gquotino, in xfs_qm_init_quotainos()
1509 if (error) in xfs_qm_init_quotainos()
1515 error = xfs_iget(mp, NULL, mp->m_sb.sb_pquotino, in xfs_qm_init_quotainos()
1517 if (error) in xfs_qm_init_quotainos()
1531 error = xfs_qm_qino_alloc(mp, &uip, in xfs_qm_init_quotainos()
1533 if (error) in xfs_qm_init_quotainos()
1539 error = xfs_qm_qino_alloc(mp, &gip, in xfs_qm_init_quotainos()
1541 if (error) in xfs_qm_init_quotainos()
1547 error = xfs_qm_qino_alloc(mp, &pip, in xfs_qm_init_quotainos()
1549 if (error) in xfs_qm_init_quotainos()
1566 return error; in xfs_qm_init_quotainos()
1614 int error; in xfs_qm_vop_dqalloc() local
1631 error = xfs_qm_dqattach_locked(ip, XFS_QMOPT_DQALLOC); in xfs_qm_vop_dqalloc()
1632 if (error) { in xfs_qm_vop_dqalloc()
1634 return error; in xfs_qm_vop_dqalloc()
1650 error = xfs_qm_dqget(mp, NULL, uid, in xfs_qm_vop_dqalloc()
1655 if (error) { in xfs_qm_vop_dqalloc()
1656 ASSERT(error != -ENOENT); in xfs_qm_vop_dqalloc()
1657 return error; in xfs_qm_vop_dqalloc()
1677 error = xfs_qm_dqget(mp, NULL, gid, in xfs_qm_vop_dqalloc()
1682 if (error) { in xfs_qm_vop_dqalloc()
1683 ASSERT(error != -ENOENT); in xfs_qm_vop_dqalloc()
1697 error = xfs_qm_dqget(mp, NULL, (xfs_dqid_t)prid, in xfs_qm_vop_dqalloc()
1702 if (error) { in xfs_qm_vop_dqalloc()
1703 ASSERT(error != -ENOENT); in xfs_qm_vop_dqalloc()
1735 return error; in xfs_qm_vop_dqalloc()
1798 int error; in xfs_qm_vop_chown_reserve() local
1840 error = xfs_trans_reserve_quota_bydquots(tp, ip->i_mount, in xfs_qm_vop_chown_reserve()
1844 if (error) in xfs_qm_vop_chown_reserve()
1845 return error; in xfs_qm_vop_chown_reserve()
1859 error = xfs_trans_reserve_quota_bydquots(NULL, ip->i_mount, in xfs_qm_vop_chown_reserve()
1863 if (error) in xfs_qm_vop_chown_reserve()
1864 return error; in xfs_qm_vop_chown_reserve()
1885 int error; in xfs_qm_vop_rename_dqattach() local
1892 error = xfs_qm_dqattach(ip, 0); in xfs_qm_vop_rename_dqattach()
1893 if (error) in xfs_qm_vop_rename_dqattach()
1894 return error; in xfs_qm_vop_rename_dqattach()