• Home
  • Raw
  • Download

Lines Matching refs:error

80 	int			error;  in xfs_rmap_update()  local
91 error = xfs_btree_update(cur, &rec); in xfs_rmap_update()
92 if (error) in xfs_rmap_update()
94 cur->bc_ag.agno, error, _RET_IP_); in xfs_rmap_update()
95 return error; in xfs_rmap_update()
108 int error; in xfs_rmap_insert() local
113 error = xfs_rmap_lookup_eq(rcur, agbno, len, owner, offset, flags, &i); in xfs_rmap_insert()
114 if (error) in xfs_rmap_insert()
117 error = -EFSCORRUPTED; in xfs_rmap_insert()
126 error = xfs_btree_insert(rcur, &i); in xfs_rmap_insert()
127 if (error) in xfs_rmap_insert()
130 error = -EFSCORRUPTED; in xfs_rmap_insert()
134 if (error) in xfs_rmap_insert()
136 rcur->bc_ag.agno, error, _RET_IP_); in xfs_rmap_insert()
137 return error; in xfs_rmap_insert()
150 int error; in xfs_rmap_delete() local
155 error = xfs_rmap_lookup_eq(rcur, agbno, len, owner, offset, flags, &i); in xfs_rmap_delete()
156 if (error) in xfs_rmap_delete()
159 error = -EFSCORRUPTED; in xfs_rmap_delete()
163 error = xfs_btree_delete(rcur, &i); in xfs_rmap_delete()
164 if (error) in xfs_rmap_delete()
167 error = -EFSCORRUPTED; in xfs_rmap_delete()
171 if (error) in xfs_rmap_delete()
173 rcur->bc_ag.agno, error, _RET_IP_); in xfs_rmap_delete()
174 return error; in xfs_rmap_delete()
202 int error; in xfs_rmap_get_rec() local
204 error = xfs_btree_get_rec(cur, &rec, stat); in xfs_rmap_get_rec()
205 if (error || !*stat) in xfs_rmap_get_rec()
206 return error; in xfs_rmap_get_rec()
295 int error; in xfs_rmap_find_left_neighbor() local
317 error = xfs_rmap_query_range(cur, &info.high, &info.high, in xfs_rmap_find_left_neighbor()
319 if (error == -ECANCELED) in xfs_rmap_find_left_neighbor()
320 error = 0; in xfs_rmap_find_left_neighbor()
326 return error; in xfs_rmap_find_left_neighbor()
373 int error; in xfs_rmap_lookup_le_range() local
389 error = xfs_rmap_query_range(cur, &info.high, &info.high, in xfs_rmap_lookup_le_range()
391 if (error == -ECANCELED) in xfs_rmap_lookup_le_range()
392 error = 0; in xfs_rmap_lookup_le_range()
398 return error; in xfs_rmap_lookup_le_range()
415 int error = 0; in xfs_rmap_free_check_owner() local
424 error = -EFSCORRUPTED; in xfs_rmap_free_check_owner()
430 error = -EFSCORRUPTED; in xfs_rmap_free_check_owner()
441 error = -EFSCORRUPTED; in xfs_rmap_free_check_owner()
446 error = -EFSCORRUPTED; in xfs_rmap_free_check_owner()
451 error = -EFSCORRUPTED; in xfs_rmap_free_check_owner()
457 return error; in xfs_rmap_free_check_owner()
489 int error = 0; in xfs_rmap_unmap() local
509 error = xfs_rmap_lookup_le(cur, bno, len, owner, offset, flags, &i); in xfs_rmap_unmap()
510 if (error) in xfs_rmap_unmap()
513 error = -EFSCORRUPTED; in xfs_rmap_unmap()
517 error = xfs_rmap_get_rec(cur, &ltrec, &i); in xfs_rmap_unmap()
518 if (error) in xfs_rmap_unmap()
521 error = -EFSCORRUPTED; in xfs_rmap_unmap()
541 error = -EFSCORRUPTED; in xfs_rmap_unmap()
558 error = xfs_btree_increment(cur, 0, &i); in xfs_rmap_unmap()
559 if (error) in xfs_rmap_unmap()
563 error = xfs_rmap_get_rec(cur, &rtrec, &i); in xfs_rmap_unmap()
564 if (error) in xfs_rmap_unmap()
567 error = -EFSCORRUPTED; in xfs_rmap_unmap()
579 error = -EFSCORRUPTED; in xfs_rmap_unmap()
584 error = xfs_rmap_free_check_owner(mp, ltoff, &ltrec, len, owner, in xfs_rmap_unmap()
586 if (error) in xfs_rmap_unmap()
595 error = xfs_btree_delete(cur, &i); in xfs_rmap_unmap()
596 if (error) in xfs_rmap_unmap()
599 error = -EFSCORRUPTED; in xfs_rmap_unmap()
617 error = xfs_rmap_update(cur, &ltrec); in xfs_rmap_unmap()
618 if (error) in xfs_rmap_unmap()
632 error = xfs_rmap_update(cur, &ltrec); in xfs_rmap_unmap()
633 if (error) in xfs_rmap_unmap()
652 error = xfs_rmap_update(cur, &ltrec); in xfs_rmap_unmap()
653 if (error) in xfs_rmap_unmap()
656 error = xfs_btree_increment(cur, 0, &i); in xfs_rmap_unmap()
657 if (error) in xfs_rmap_unmap()
675 error = xfs_btree_insert(cur, &i); in xfs_rmap_unmap()
676 if (error) in xfs_rmap_unmap()
684 if (error) in xfs_rmap_unmap()
686 error, _RET_IP_); in xfs_rmap_unmap()
687 return error; in xfs_rmap_unmap()
704 int error; in xfs_rmap_free() local
711 error = xfs_rmap_unmap(cur, bno, len, false, oinfo); in xfs_rmap_free()
713 xfs_btree_del_cursor(cur, error); in xfs_rmap_free()
714 return error; in xfs_rmap_free()
763 int error = 0; in xfs_rmap_map() local
785 error = xfs_rmap_lookup_le(cur, bno, len, owner, offset, flags, in xfs_rmap_map()
787 if (error) in xfs_rmap_map()
790 error = xfs_rmap_get_rec(cur, &ltrec, &have_lt); in xfs_rmap_map()
791 if (error) in xfs_rmap_map()
794 error = -EFSCORRUPTED; in xfs_rmap_map()
809 error = -EFSCORRUPTED; in xfs_rmap_map()
818 error = xfs_btree_increment(cur, 0, &have_gt); in xfs_rmap_map()
819 if (error) in xfs_rmap_map()
822 error = xfs_rmap_get_rec(cur, &gtrec, &have_gt); in xfs_rmap_map()
823 if (error) in xfs_rmap_map()
826 error = -EFSCORRUPTED; in xfs_rmap_map()
830 error = -EFSCORRUPTED; in xfs_rmap_map()
879 error = xfs_btree_delete(cur, &i); in xfs_rmap_map()
880 if (error) in xfs_rmap_map()
883 error = -EFSCORRUPTED; in xfs_rmap_map()
889 error = xfs_btree_decrement(cur, 0, &have_gt); in xfs_rmap_map()
890 if (error) in xfs_rmap_map()
892 error = xfs_rmap_update(cur, &ltrec); in xfs_rmap_map()
893 if (error) in xfs_rmap_map()
911 error = xfs_rmap_update(cur, &gtrec); in xfs_rmap_map()
912 if (error) in xfs_rmap_map()
926 error = xfs_btree_insert(cur, &i); in xfs_rmap_map()
927 if (error) in xfs_rmap_map()
930 error = -EFSCORRUPTED; in xfs_rmap_map()
938 if (error) in xfs_rmap_map()
940 error, _RET_IP_); in xfs_rmap_map()
941 return error; in xfs_rmap_map()
958 int error; in xfs_rmap_alloc() local
964 error = xfs_rmap_map(cur, bno, len, false, oinfo); in xfs_rmap_alloc()
966 xfs_btree_del_cursor(cur, error); in xfs_rmap_alloc()
967 return error; in xfs_rmap_alloc()
1006 int error; in xfs_rmap_convert() local
1021 error = xfs_rmap_lookup_le(cur, bno, len, owner, offset, oldext, &i); in xfs_rmap_convert()
1022 if (error) in xfs_rmap_convert()
1025 error = -EFSCORRUPTED; in xfs_rmap_convert()
1029 error = xfs_rmap_get_rec(cur, &PREV, &i); in xfs_rmap_convert()
1030 if (error) in xfs_rmap_convert()
1033 error = -EFSCORRUPTED; in xfs_rmap_convert()
1060 error = xfs_btree_decrement(cur, 0, &i); in xfs_rmap_convert()
1061 if (error) in xfs_rmap_convert()
1065 error = xfs_rmap_get_rec(cur, &LEFT, &i); in xfs_rmap_convert()
1066 if (error) in xfs_rmap_convert()
1069 error = -EFSCORRUPTED; in xfs_rmap_convert()
1075 error = -EFSCORRUPTED; in xfs_rmap_convert()
1093 error = xfs_btree_increment(cur, 0, &i); in xfs_rmap_convert()
1094 if (error) in xfs_rmap_convert()
1097 error = -EFSCORRUPTED; in xfs_rmap_convert()
1100 error = xfs_btree_increment(cur, 0, &i); in xfs_rmap_convert()
1101 if (error) in xfs_rmap_convert()
1105 error = xfs_rmap_get_rec(cur, &RIGHT, &i); in xfs_rmap_convert()
1106 if (error) in xfs_rmap_convert()
1109 error = -EFSCORRUPTED; in xfs_rmap_convert()
1113 error = -EFSCORRUPTED; in xfs_rmap_convert()
1139 error = xfs_rmap_lookup_le(cur, bno, len, owner, offset, oldext, &i); in xfs_rmap_convert()
1140 if (error) in xfs_rmap_convert()
1143 error = -EFSCORRUPTED; in xfs_rmap_convert()
1158 error = xfs_btree_increment(cur, 0, &i); in xfs_rmap_convert()
1159 if (error) in xfs_rmap_convert()
1162 error = -EFSCORRUPTED; in xfs_rmap_convert()
1169 error = xfs_btree_delete(cur, &i); in xfs_rmap_convert()
1170 if (error) in xfs_rmap_convert()
1173 error = -EFSCORRUPTED; in xfs_rmap_convert()
1176 error = xfs_btree_decrement(cur, 0, &i); in xfs_rmap_convert()
1177 if (error) in xfs_rmap_convert()
1180 error = -EFSCORRUPTED; in xfs_rmap_convert()
1187 error = xfs_btree_delete(cur, &i); in xfs_rmap_convert()
1188 if (error) in xfs_rmap_convert()
1191 error = -EFSCORRUPTED; in xfs_rmap_convert()
1194 error = xfs_btree_decrement(cur, 0, &i); in xfs_rmap_convert()
1195 if (error) in xfs_rmap_convert()
1198 error = -EFSCORRUPTED; in xfs_rmap_convert()
1203 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1204 if (error) in xfs_rmap_convert()
1217 error = xfs_btree_delete(cur, &i); in xfs_rmap_convert()
1218 if (error) in xfs_rmap_convert()
1221 error = -EFSCORRUPTED; in xfs_rmap_convert()
1224 error = xfs_btree_decrement(cur, 0, &i); in xfs_rmap_convert()
1225 if (error) in xfs_rmap_convert()
1228 error = -EFSCORRUPTED; in xfs_rmap_convert()
1233 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1234 if (error) in xfs_rmap_convert()
1243 error = xfs_btree_increment(cur, 0, &i); in xfs_rmap_convert()
1244 if (error) in xfs_rmap_convert()
1247 error = -EFSCORRUPTED; in xfs_rmap_convert()
1254 error = xfs_btree_delete(cur, &i); in xfs_rmap_convert()
1255 if (error) in xfs_rmap_convert()
1258 error = -EFSCORRUPTED; in xfs_rmap_convert()
1261 error = xfs_btree_decrement(cur, 0, &i); in xfs_rmap_convert()
1262 if (error) in xfs_rmap_convert()
1265 error = -EFSCORRUPTED; in xfs_rmap_convert()
1271 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1272 if (error) in xfs_rmap_convert()
1284 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1285 if (error) in xfs_rmap_convert()
1298 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1299 if (error) in xfs_rmap_convert()
1301 error = xfs_btree_decrement(cur, 0, &i); in xfs_rmap_convert()
1302 if (error) in xfs_rmap_convert()
1306 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1307 if (error) in xfs_rmap_convert()
1320 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1321 if (error) in xfs_rmap_convert()
1331 error = xfs_btree_insert(cur, &i); in xfs_rmap_convert()
1332 if (error) in xfs_rmap_convert()
1335 error = -EFSCORRUPTED; in xfs_rmap_convert()
1347 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1348 if (error) in xfs_rmap_convert()
1350 error = xfs_btree_increment(cur, 0, &i); in xfs_rmap_convert()
1351 if (error) in xfs_rmap_convert()
1357 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1358 if (error) in xfs_rmap_convert()
1369 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1370 if (error) in xfs_rmap_convert()
1372 error = xfs_rmap_lookup_eq(cur, bno, len, owner, offset, in xfs_rmap_convert()
1374 if (error) in xfs_rmap_convert()
1377 error = -EFSCORRUPTED; in xfs_rmap_convert()
1388 error = xfs_btree_insert(cur, &i); in xfs_rmap_convert()
1389 if (error) in xfs_rmap_convert()
1392 error = -EFSCORRUPTED; in xfs_rmap_convert()
1410 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1411 if (error) in xfs_rmap_convert()
1421 error = xfs_btree_insert(cur, &i); in xfs_rmap_convert()
1422 if (error) in xfs_rmap_convert()
1425 error = -EFSCORRUPTED; in xfs_rmap_convert()
1433 error = xfs_rmap_lookup_eq(cur, bno, len, owner, offset, in xfs_rmap_convert()
1435 if (error) in xfs_rmap_convert()
1438 error = -EFSCORRUPTED; in xfs_rmap_convert()
1446 error = xfs_btree_insert(cur, &i); in xfs_rmap_convert()
1447 if (error) in xfs_rmap_convert()
1450 error = -EFSCORRUPTED; in xfs_rmap_convert()
1471 if (error) in xfs_rmap_convert()
1473 cur->bc_ag.agno, error, _RET_IP_); in xfs_rmap_convert()
1474 return error; in xfs_rmap_convert()
1502 int error; in xfs_rmap_convert_shared() local
1517 error = xfs_rmap_lookup_le_range(cur, bno, owner, offset, oldext, in xfs_rmap_convert_shared()
1519 if (error) in xfs_rmap_convert_shared()
1522 error = -EFSCORRUPTED; in xfs_rmap_convert_shared()
1541 error = xfs_rmap_find_left_neighbor(cur, bno, owner, offset, newext, in xfs_rmap_convert_shared()
1543 if (error) in xfs_rmap_convert_shared()
1550 error = -EFSCORRUPTED; in xfs_rmap_convert_shared()
1558 error = xfs_rmap_lookup_eq(cur, bno + len, len, owner, offset + len, in xfs_rmap_convert_shared()
1560 if (error) in xfs_rmap_convert_shared()
1564 error = xfs_rmap_get_rec(cur, &RIGHT, &i); in xfs_rmap_convert_shared()
1565 if (error) in xfs_rmap_convert_shared()
1568 error = -EFSCORRUPTED; in xfs_rmap_convert_shared()
1572 error = -EFSCORRUPTED; in xfs_rmap_convert_shared()
1605 error = xfs_rmap_delete(cur, RIGHT.rm_startblock, in xfs_rmap_convert_shared()
1608 if (error) in xfs_rmap_convert_shared()
1610 error = xfs_rmap_delete(cur, PREV.rm_startblock, in xfs_rmap_convert_shared()
1613 if (error) in xfs_rmap_convert_shared()
1616 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1619 if (error) in xfs_rmap_convert_shared()
1622 error = -EFSCORRUPTED; in xfs_rmap_convert_shared()
1626 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1627 if (error) in xfs_rmap_convert_shared()
1636 error = xfs_rmap_delete(cur, PREV.rm_startblock, in xfs_rmap_convert_shared()
1639 if (error) in xfs_rmap_convert_shared()
1642 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1645 if (error) in xfs_rmap_convert_shared()
1648 error = -EFSCORRUPTED; in xfs_rmap_convert_shared()
1652 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1653 if (error) in xfs_rmap_convert_shared()
1662 error = xfs_rmap_delete(cur, RIGHT.rm_startblock, in xfs_rmap_convert_shared()
1665 if (error) in xfs_rmap_convert_shared()
1668 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1671 if (error) in xfs_rmap_convert_shared()
1674 error = -EFSCORRUPTED; in xfs_rmap_convert_shared()
1679 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1680 if (error) in xfs_rmap_convert_shared()
1691 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1694 if (error) in xfs_rmap_convert_shared()
1697 error = -EFSCORRUPTED; in xfs_rmap_convert_shared()
1701 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1702 if (error) in xfs_rmap_convert_shared()
1712 error = xfs_rmap_delete(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1715 if (error) in xfs_rmap_convert_shared()
1720 error = xfs_rmap_insert(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1723 if (error) in xfs_rmap_convert_shared()
1726 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1729 if (error) in xfs_rmap_convert_shared()
1732 error = -EFSCORRUPTED; in xfs_rmap_convert_shared()
1736 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1737 if (error) in xfs_rmap_convert_shared()
1747 error = xfs_rmap_delete(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1750 if (error) in xfs_rmap_convert_shared()
1755 error = xfs_rmap_insert(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1758 if (error) in xfs_rmap_convert_shared()
1760 error = xfs_rmap_insert(cur, bno, len, owner, offset, newext); in xfs_rmap_convert_shared()
1761 if (error) in xfs_rmap_convert_shared()
1771 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1774 if (error) in xfs_rmap_convert_shared()
1777 error = -EFSCORRUPTED; in xfs_rmap_convert_shared()
1781 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1782 if (error) in xfs_rmap_convert_shared()
1785 error = xfs_rmap_delete(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1788 if (error) in xfs_rmap_convert_shared()
1793 error = xfs_rmap_insert(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1796 if (error) in xfs_rmap_convert_shared()
1806 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1809 if (error) in xfs_rmap_convert_shared()
1812 error = -EFSCORRUPTED; in xfs_rmap_convert_shared()
1816 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1817 if (error) in xfs_rmap_convert_shared()
1819 error = xfs_rmap_insert(cur, bno, len, owner, offset, newext); in xfs_rmap_convert_shared()
1820 if (error) in xfs_rmap_convert_shared()
1837 error = xfs_rmap_insert(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1840 if (error) in xfs_rmap_convert_shared()
1844 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1847 if (error) in xfs_rmap_convert_shared()
1850 error = -EFSCORRUPTED; in xfs_rmap_convert_shared()
1854 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1855 if (error) in xfs_rmap_convert_shared()
1863 error = xfs_rmap_insert(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1866 if (error) in xfs_rmap_convert_shared()
1886 if (error) in xfs_rmap_convert_shared()
1888 cur->bc_ag.agno, error, _RET_IP_); in xfs_rmap_convert_shared()
1889 return error; in xfs_rmap_convert_shared()
1917 int error = 0; in xfs_rmap_unmap_shared() local
1934 error = xfs_rmap_lookup_le_range(cur, bno, owner, offset, flags, in xfs_rmap_unmap_shared()
1936 if (error) in xfs_rmap_unmap_shared()
1939 error = -EFSCORRUPTED; in xfs_rmap_unmap_shared()
1949 error = -EFSCORRUPTED; in xfs_rmap_unmap_shared()
1955 error = -EFSCORRUPTED; in xfs_rmap_unmap_shared()
1963 error = -EFSCORRUPTED; in xfs_rmap_unmap_shared()
1969 error = -EFSCORRUPTED; in xfs_rmap_unmap_shared()
1973 error = -EFSCORRUPTED; in xfs_rmap_unmap_shared()
1979 error = xfs_rmap_delete(cur, ltrec.rm_startblock, in xfs_rmap_unmap_shared()
1982 if (error) in xfs_rmap_unmap_shared()
1997 error = xfs_rmap_delete(cur, ltrec.rm_startblock, in xfs_rmap_unmap_shared()
2000 if (error) in xfs_rmap_unmap_shared()
2007 error = xfs_rmap_insert(cur, ltrec.rm_startblock, in xfs_rmap_unmap_shared()
2010 if (error) in xfs_rmap_unmap_shared()
2023 error = xfs_rmap_lookup_eq(cur, ltrec.rm_startblock, in xfs_rmap_unmap_shared()
2026 if (error) in xfs_rmap_unmap_shared()
2029 error = -EFSCORRUPTED; in xfs_rmap_unmap_shared()
2033 error = xfs_rmap_update(cur, &ltrec); in xfs_rmap_unmap_shared()
2034 if (error) in xfs_rmap_unmap_shared()
2052 error = xfs_rmap_lookup_eq(cur, ltrec.rm_startblock, in xfs_rmap_unmap_shared()
2055 if (error) in xfs_rmap_unmap_shared()
2058 error = -EFSCORRUPTED; in xfs_rmap_unmap_shared()
2062 error = xfs_rmap_update(cur, &ltrec); in xfs_rmap_unmap_shared()
2063 if (error) in xfs_rmap_unmap_shared()
2067 error = xfs_rmap_insert(cur, bno + len, in xfs_rmap_unmap_shared()
2071 if (error) in xfs_rmap_unmap_shared()
2078 if (error) in xfs_rmap_unmap_shared()
2080 cur->bc_ag.agno, error, _RET_IP_); in xfs_rmap_unmap_shared()
2081 return error; in xfs_rmap_unmap_shared()
2106 int error = 0; in xfs_rmap_map_shared() local
2119 error = xfs_rmap_find_left_neighbor(cur, bno, owner, offset, flags, in xfs_rmap_map_shared()
2121 if (error) in xfs_rmap_map_shared()
2128 error = xfs_rmap_lookup_eq(cur, bno + len, len, owner, offset + len, in xfs_rmap_map_shared()
2130 if (error) in xfs_rmap_map_shared()
2133 error = xfs_rmap_get_rec(cur, &gtrec, &have_gt); in xfs_rmap_map_shared()
2134 if (error) in xfs_rmap_map_shared()
2137 error = -EFSCORRUPTED; in xfs_rmap_map_shared()
2175 error = xfs_rmap_delete(cur, gtrec.rm_startblock, in xfs_rmap_map_shared()
2178 if (error) in xfs_rmap_map_shared()
2183 error = xfs_rmap_lookup_eq(cur, ltrec.rm_startblock, in xfs_rmap_map_shared()
2186 if (error) in xfs_rmap_map_shared()
2189 error = -EFSCORRUPTED; in xfs_rmap_map_shared()
2193 error = xfs_rmap_update(cur, &ltrec); in xfs_rmap_map_shared()
2194 if (error) in xfs_rmap_map_shared()
2209 error = xfs_rmap_delete(cur, gtrec.rm_startblock, in xfs_rmap_map_shared()
2212 if (error) in xfs_rmap_map_shared()
2219 error = xfs_rmap_insert(cur, gtrec.rm_startblock, in xfs_rmap_map_shared()
2222 if (error) in xfs_rmap_map_shared()
2229 error = xfs_rmap_insert(cur, bno, len, owner, offset, flags); in xfs_rmap_map_shared()
2230 if (error) in xfs_rmap_map_shared()
2237 if (error) in xfs_rmap_map_shared()
2239 cur->bc_ag.agno, error, _RET_IP_); in xfs_rmap_map_shared()
2240 return error; in xfs_rmap_map_shared()
2285 int error; in xfs_rmap_query_range_helper() local
2287 error = xfs_rmap_btrec_to_irec(rec, &irec); in xfs_rmap_query_range_helper()
2288 if (error) in xfs_rmap_query_range_helper()
2289 return error; in xfs_rmap_query_range_helper()
2333 int error) in xfs_rmap_finish_one_cleanup() argument
2340 xfs_btree_del_cursor(rcur, error); in xfs_rmap_finish_one_cleanup()
2341 if (error) in xfs_rmap_finish_one_cleanup()
2367 int error = 0; in xfs_rmap_finish_one() local
2400 error = xfs_free_extent_fix_freelist(tp, agno, &agbp); in xfs_rmap_finish_one()
2401 if (error) in xfs_rmap_finish_one()
2402 return error; in xfs_rmap_finish_one()
2408 error = -ENOMEM; in xfs_rmap_finish_one()
2421 error = xfs_rmap_map(rcur, bno, blockcount, unwritten, &oinfo); in xfs_rmap_finish_one()
2424 error = xfs_rmap_map_shared(rcur, bno, blockcount, unwritten, in xfs_rmap_finish_one()
2429 error = xfs_rmap_unmap(rcur, bno, blockcount, unwritten, in xfs_rmap_finish_one()
2433 error = xfs_rmap_unmap_shared(rcur, bno, blockcount, unwritten, in xfs_rmap_finish_one()
2437 error = xfs_rmap_convert(rcur, bno, blockcount, !unwritten, in xfs_rmap_finish_one()
2441 error = xfs_rmap_convert_shared(rcur, bno, blockcount, in xfs_rmap_finish_one()
2446 error = -EFSCORRUPTED; in xfs_rmap_finish_one()
2448 return error; in xfs_rmap_finish_one()
2453 return error; in xfs_rmap_finish_one()
2674 int error; in xfs_rmap_record_exists() local
2680 error = xfs_rmap_lookup_le(cur, bno, len, owner, offset, flags, in xfs_rmap_record_exists()
2682 if (error) in xfs_rmap_record_exists()
2683 return error; in xfs_rmap_record_exists()
2689 error = xfs_rmap_get_rec(cur, &irec, &has_record); in xfs_rmap_record_exists()
2690 if (error) in xfs_rmap_record_exists()
2691 return error; in xfs_rmap_record_exists()
2738 int error; in xfs_rmap_has_other_keys() local
2747 error = xfs_rmap_query_range(cur, &low, &high, in xfs_rmap_has_other_keys()
2749 if (error == -ECANCELED) { in xfs_rmap_has_other_keys()
2754 return error; in xfs_rmap_has_other_keys()