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()
769 return error; in xfs_qm_qino_alloc()
799 error = xfs_trans_commit(tp, XFS_TRANS_RELEASE_LOG_RES); in xfs_qm_qino_alloc()
800 if (error) { in xfs_qm_qino_alloc()
802 xfs_alert(mp, "%s failed (error %d)!", __func__, error); in xfs_qm_qino_alloc()
806 return error; in xfs_qm_qino_alloc()
877 int error; in xfs_qm_dqiter_bufs() local
883 error = 0; in xfs_qm_dqiter_bufs()
895 error = xfs_trans_read_buf(mp, NULL, mp->m_ddev_targp, in xfs_qm_dqiter_bufs()
907 if (error == -EFSCORRUPTED) { in xfs_qm_dqiter_bufs()
908 error = xfs_trans_read_buf(mp, NULL, mp->m_ddev_targp, in xfs_qm_dqiter_bufs()
914 if (error) in xfs_qm_dqiter_bufs()
932 return error; in xfs_qm_dqiter_bufs()
948 int error; /* return value */ in xfs_qm_dqiterate() local
955 error = 0; in xfs_qm_dqiterate()
978 error = xfs_bmapi_read(qip, lblkno, maxlblkcnt - lblkno, in xfs_qm_dqiterate()
981 if (error) in xfs_qm_dqiterate()
1016 error = xfs_qm_dqiter_bufs(mp, firstid, in xfs_qm_dqiterate()
1020 if (error) in xfs_qm_dqiterate()
1027 return error; in xfs_qm_dqiterate()
1048 int error; in xfs_qm_quotacheck_dqadjust() local
1050 error = xfs_qm_dqget(mp, ip, id, type, in xfs_qm_quotacheck_dqadjust()
1052 if (error) { in xfs_qm_quotacheck_dqadjust()
1056 ASSERT(error != -ESRCH); in xfs_qm_quotacheck_dqadjust()
1057 ASSERT(error != -ENOENT); in xfs_qm_quotacheck_dqadjust()
1058 return error; in xfs_qm_quotacheck_dqadjust()
1102 int error; in xfs_qm_get_rtblks() local
1107 if ((error = xfs_iread_extents(NULL, ip, XFS_DATA_FORK))) in xfs_qm_get_rtblks()
1108 return error; in xfs_qm_get_rtblks()
1134 int error; in xfs_qm_dqusage_adjust() local
1153 error = xfs_iget(mp, NULL, ino, 0, XFS_ILOCK_EXCL, &ip); in xfs_qm_dqusage_adjust()
1154 if (error) { in xfs_qm_dqusage_adjust()
1156 return error; in xfs_qm_dqusage_adjust()
1165 error = xfs_qm_get_rtblks(ip, &rtblks); in xfs_qm_dqusage_adjust()
1166 if (error) in xfs_qm_dqusage_adjust()
1185 error = xfs_qm_quotacheck_dqadjust(ip, ip->i_d.di_uid, in xfs_qm_dqusage_adjust()
1187 if (error) in xfs_qm_dqusage_adjust()
1192 error = xfs_qm_quotacheck_dqadjust(ip, ip->i_d.di_gid, in xfs_qm_dqusage_adjust()
1194 if (error) in xfs_qm_dqusage_adjust()
1199 error = xfs_qm_quotacheck_dqadjust(ip, xfs_get_projid(ip), in xfs_qm_dqusage_adjust()
1201 if (error) in xfs_qm_dqusage_adjust()
1214 return error; in xfs_qm_dqusage_adjust()
1224 int error = 0; in xfs_qm_flush_one() local
1233 error = xfs_qm_dqflush(dqp, &bp); in xfs_qm_flush_one()
1234 if (error) in xfs_qm_flush_one()
1241 return error; in xfs_qm_flush_one()
1252 int done, count, error, error2; in xfs_qm_quotacheck() local
1277 error = xfs_qm_dqiterate(mp, uip, XFS_QMOPT_UQUOTA, in xfs_qm_quotacheck()
1279 if (error) in xfs_qm_quotacheck()
1285 error = xfs_qm_dqiterate(mp, gip, XFS_QMOPT_GQUOTA, in xfs_qm_quotacheck()
1287 if (error) in xfs_qm_quotacheck()
1293 error = xfs_qm_dqiterate(mp, pip, XFS_QMOPT_PQUOTA, in xfs_qm_quotacheck()
1295 if (error) in xfs_qm_quotacheck()
1305 error = xfs_bulkstat(mp, &lastino, &count, in xfs_qm_quotacheck()
1308 if (error) in xfs_qm_quotacheck()
1318 error = xfs_qm_dquot_walk(mp, XFS_DQ_USER, xfs_qm_flush_one, in xfs_qm_quotacheck()
1324 if (!error) in xfs_qm_quotacheck()
1325 error = error2; in xfs_qm_quotacheck()
1330 if (!error) in xfs_qm_quotacheck()
1331 error = error2; in xfs_qm_quotacheck()
1335 if (!error) in xfs_qm_quotacheck()
1336 error = error2; in xfs_qm_quotacheck()
1345 if (error) { in xfs_qm_quotacheck()
1366 if (error) { in xfs_qm_quotacheck()
1369 error); in xfs_qm_quotacheck()
1381 return error; in xfs_qm_quotacheck()
1397 int error = 0; in xfs_qm_mount_quotas() local
1416 error = xfs_qm_init_quotainfo(mp); in xfs_qm_mount_quotas()
1417 if (error) { in xfs_qm_mount_quotas()
1429 error = xfs_qm_quotacheck(mp); in xfs_qm_mount_quotas()
1430 if (error) { in xfs_qm_mount_quotas()
1471 if (error) { in xfs_qm_mount_quotas()
1488 int error; in xfs_qm_init_quotainos() local
1500 error = xfs_iget(mp, NULL, mp->m_sb.sb_uquotino, in xfs_qm_init_quotainos()
1502 if (error) in xfs_qm_init_quotainos()
1503 return error; in xfs_qm_init_quotainos()
1508 error = xfs_iget(mp, NULL, mp->m_sb.sb_gquotino, in xfs_qm_init_quotainos()
1510 if (error) in xfs_qm_init_quotainos()
1516 error = xfs_iget(mp, NULL, mp->m_sb.sb_pquotino, in xfs_qm_init_quotainos()
1518 if (error) in xfs_qm_init_quotainos()
1532 error = xfs_qm_qino_alloc(mp, &uip, in xfs_qm_init_quotainos()
1534 if (error) in xfs_qm_init_quotainos()
1540 error = xfs_qm_qino_alloc(mp, &gip, in xfs_qm_init_quotainos()
1542 if (error) in xfs_qm_init_quotainos()
1548 error = xfs_qm_qino_alloc(mp, &pip, in xfs_qm_init_quotainos()
1550 if (error) in xfs_qm_init_quotainos()
1567 return error; in xfs_qm_init_quotainos()
1615 int error; in xfs_qm_vop_dqalloc() local
1632 error = xfs_qm_dqattach_locked(ip, XFS_QMOPT_DQALLOC); in xfs_qm_vop_dqalloc()
1633 if (error) { in xfs_qm_vop_dqalloc()
1635 return error; in xfs_qm_vop_dqalloc()
1651 error = xfs_qm_dqget(mp, NULL, uid, in xfs_qm_vop_dqalloc()
1656 if (error) { in xfs_qm_vop_dqalloc()
1657 ASSERT(error != -ENOENT); in xfs_qm_vop_dqalloc()
1658 return error; in xfs_qm_vop_dqalloc()
1678 error = xfs_qm_dqget(mp, NULL, gid, in xfs_qm_vop_dqalloc()
1683 if (error) { in xfs_qm_vop_dqalloc()
1684 ASSERT(error != -ENOENT); in xfs_qm_vop_dqalloc()
1698 error = xfs_qm_dqget(mp, NULL, (xfs_dqid_t)prid, in xfs_qm_vop_dqalloc()
1703 if (error) { in xfs_qm_vop_dqalloc()
1704 ASSERT(error != -ENOENT); in xfs_qm_vop_dqalloc()
1736 return error; in xfs_qm_vop_dqalloc()
1799 int error; in xfs_qm_vop_chown_reserve() local
1841 error = xfs_trans_reserve_quota_bydquots(tp, ip->i_mount, in xfs_qm_vop_chown_reserve()
1845 if (error) in xfs_qm_vop_chown_reserve()
1846 return error; in xfs_qm_vop_chown_reserve()
1860 error = xfs_trans_reserve_quota_bydquots(NULL, ip->i_mount, in xfs_qm_vop_chown_reserve()
1864 if (error) in xfs_qm_vop_chown_reserve()
1865 return error; in xfs_qm_vop_chown_reserve()
1886 int error; in xfs_qm_vop_rename_dqattach() local
1893 error = xfs_qm_dqattach(ip, 0); in xfs_qm_vop_rename_dqattach()
1894 if (error) in xfs_qm_vop_rename_dqattach()
1895 return error; in xfs_qm_vop_rename_dqattach()