Lines Matching full:error

44 	int			error;  in xfs_rmap_lookup_le()  local
52 error = xfs_btree_lookup(cur, XFS_LOOKUP_LE, stat); in xfs_rmap_lookup_le()
53 if (error || !(*stat) || !irec) in xfs_rmap_lookup_le()
54 return error; in xfs_rmap_lookup_le()
56 error = xfs_rmap_get_rec(cur, irec, &get_stat); in xfs_rmap_lookup_le()
57 if (error) in xfs_rmap_lookup_le()
58 return error; in xfs_rmap_lookup_le()
90 * This either works (return 0) or gets an EFSCORRUPTED error.
98 int error; in xfs_rmap_update() local
109 error = xfs_btree_update(cur, &rec); in xfs_rmap_update()
110 if (error) in xfs_rmap_update()
112 cur->bc_ag.pag->pag_agno, error, _RET_IP_); in xfs_rmap_update()
113 return error; in xfs_rmap_update()
126 int error; in xfs_rmap_insert() local
131 error = xfs_rmap_lookup_eq(rcur, agbno, len, owner, offset, flags, &i); in xfs_rmap_insert()
132 if (error) in xfs_rmap_insert()
135 error = -EFSCORRUPTED; in xfs_rmap_insert()
144 error = xfs_btree_insert(rcur, &i); in xfs_rmap_insert()
145 if (error) in xfs_rmap_insert()
148 error = -EFSCORRUPTED; in xfs_rmap_insert()
152 if (error) in xfs_rmap_insert()
154 rcur->bc_ag.pag->pag_agno, error, _RET_IP_); in xfs_rmap_insert()
155 return error; in xfs_rmap_insert()
168 int error; in xfs_rmap_delete() local
173 error = xfs_rmap_lookup_eq(rcur, agbno, len, owner, offset, flags, &i); in xfs_rmap_delete()
174 if (error) in xfs_rmap_delete()
177 error = -EFSCORRUPTED; in xfs_rmap_delete()
181 error = xfs_btree_delete(rcur, &i); in xfs_rmap_delete()
182 if (error) in xfs_rmap_delete()
185 error = -EFSCORRUPTED; in xfs_rmap_delete()
189 if (error) in xfs_rmap_delete()
191 rcur->bc_ag.pag->pag_agno, error, _RET_IP_); in xfs_rmap_delete()
192 return error; in xfs_rmap_delete()
294 int error; in xfs_rmap_get_rec() local
296 error = xfs_btree_get_rec(cur, &rec, stat); in xfs_rmap_get_rec()
297 if (error || !*stat) in xfs_rmap_get_rec()
298 return error; in xfs_rmap_get_rec()
356 int error; in xfs_rmap_find_left_neighbor() local
393 error = xfs_rmap_lookup_le(cur, bno, owner, offset, flags, irec, in xfs_rmap_find_left_neighbor()
395 if (error) in xfs_rmap_find_left_neighbor()
396 return error; in xfs_rmap_find_left_neighbor()
398 error = xfs_rmap_find_left_neighbor_helper(cur, irec, &info); in xfs_rmap_find_left_neighbor()
399 if (!error) in xfs_rmap_find_left_neighbor()
400 error = xfs_rmap_query_range(cur, &info.high, &info.high, in xfs_rmap_find_left_neighbor()
402 if (error != -ECANCELED) in xfs_rmap_find_left_neighbor()
403 return error; in xfs_rmap_find_left_neighbor()
457 int error; in xfs_rmap_lookup_le_range() local
489 error = xfs_rmap_lookup_le(cur, bno, owner, offset, flags, irec, in xfs_rmap_lookup_le_range()
491 if (error) in xfs_rmap_lookup_le_range()
492 return error; in xfs_rmap_lookup_le_range()
494 error = xfs_rmap_lookup_le_range_helper(cur, irec, &info); in xfs_rmap_lookup_le_range()
495 if (!error) in xfs_rmap_lookup_le_range()
496 error = xfs_rmap_query_range(cur, &info.high, &info.high, in xfs_rmap_lookup_le_range()
498 if (error != -ECANCELED) in xfs_rmap_lookup_le_range()
499 return error; in xfs_rmap_lookup_le_range()
523 int error = 0; in xfs_rmap_free_check_owner() local
532 error = -EFSCORRUPTED; in xfs_rmap_free_check_owner()
538 error = -EFSCORRUPTED; in xfs_rmap_free_check_owner()
549 error = -EFSCORRUPTED; in xfs_rmap_free_check_owner()
554 error = -EFSCORRUPTED; in xfs_rmap_free_check_owner()
559 error = -EFSCORRUPTED; in xfs_rmap_free_check_owner()
565 return error; in xfs_rmap_free_check_owner()
597 int error = 0; in xfs_rmap_unmap() local
617 error = xfs_rmap_lookup_le(cur, bno, owner, offset, flags, &ltrec, &i); in xfs_rmap_unmap()
618 if (error) in xfs_rmap_unmap()
621 error = -EFSCORRUPTED; in xfs_rmap_unmap()
642 error = -EFSCORRUPTED; in xfs_rmap_unmap()
659 error = xfs_btree_increment(cur, 0, &i); in xfs_rmap_unmap()
660 if (error) in xfs_rmap_unmap()
664 error = xfs_rmap_get_rec(cur, &rtrec, &i); in xfs_rmap_unmap()
665 if (error) in xfs_rmap_unmap()
668 error = -EFSCORRUPTED; in xfs_rmap_unmap()
680 error = -EFSCORRUPTED; in xfs_rmap_unmap()
685 error = xfs_rmap_free_check_owner(mp, ltoff, &ltrec, len, owner, in xfs_rmap_unmap()
687 if (error) in xfs_rmap_unmap()
696 error = xfs_btree_delete(cur, &i); in xfs_rmap_unmap()
697 if (error) in xfs_rmap_unmap()
700 error = -EFSCORRUPTED; in xfs_rmap_unmap()
718 error = xfs_rmap_update(cur, &ltrec); in xfs_rmap_unmap()
719 if (error) in xfs_rmap_unmap()
733 error = xfs_rmap_update(cur, &ltrec); in xfs_rmap_unmap()
734 if (error) in xfs_rmap_unmap()
753 error = xfs_rmap_update(cur, &ltrec); in xfs_rmap_unmap()
754 if (error) in xfs_rmap_unmap()
757 error = xfs_btree_increment(cur, 0, &i); in xfs_rmap_unmap()
758 if (error) in xfs_rmap_unmap()
776 error = xfs_btree_insert(cur, &i); in xfs_rmap_unmap()
777 if (error) in xfs_rmap_unmap()
785 if (error) in xfs_rmap_unmap()
787 error, _RET_IP_); in xfs_rmap_unmap()
788 return error; in xfs_rmap_unmap()
805 int error; in xfs_rmap_free() local
812 error = xfs_rmap_unmap(cur, bno, len, false, oinfo); in xfs_rmap_free()
814 xfs_btree_del_cursor(cur, error); in xfs_rmap_free()
815 return error; in xfs_rmap_free()
864 int error = 0; in xfs_rmap_map() local
886 error = xfs_rmap_lookup_le(cur, bno, owner, offset, flags, &ltrec, in xfs_rmap_map()
888 if (error) in xfs_rmap_map()
903 error = -EFSCORRUPTED; in xfs_rmap_map()
912 error = xfs_btree_increment(cur, 0, &have_gt); in xfs_rmap_map()
913 if (error) in xfs_rmap_map()
916 error = xfs_rmap_get_rec(cur, &gtrec, &have_gt); in xfs_rmap_map()
917 if (error) in xfs_rmap_map()
920 error = -EFSCORRUPTED; in xfs_rmap_map()
924 error = -EFSCORRUPTED; in xfs_rmap_map()
973 error = xfs_btree_delete(cur, &i); in xfs_rmap_map()
974 if (error) in xfs_rmap_map()
977 error = -EFSCORRUPTED; in xfs_rmap_map()
983 error = xfs_btree_decrement(cur, 0, &have_gt); in xfs_rmap_map()
984 if (error) in xfs_rmap_map()
986 error = xfs_rmap_update(cur, &ltrec); in xfs_rmap_map()
987 if (error) in xfs_rmap_map()
1005 error = xfs_rmap_update(cur, &gtrec); in xfs_rmap_map()
1006 if (error) in xfs_rmap_map()
1020 error = xfs_btree_insert(cur, &i); in xfs_rmap_map()
1021 if (error) in xfs_rmap_map()
1024 error = -EFSCORRUPTED; in xfs_rmap_map()
1032 if (error) in xfs_rmap_map()
1034 error, _RET_IP_); in xfs_rmap_map()
1035 return error; in xfs_rmap_map()
1052 int error; in xfs_rmap_alloc() local
1058 error = xfs_rmap_map(cur, bno, len, false, oinfo); in xfs_rmap_alloc()
1060 xfs_btree_del_cursor(cur, error); in xfs_rmap_alloc()
1061 return error; in xfs_rmap_alloc()
1100 int error; in xfs_rmap_convert() local
1115 error = xfs_rmap_lookup_le(cur, bno, owner, offset, oldext, &PREV, &i); in xfs_rmap_convert()
1116 if (error) in xfs_rmap_convert()
1119 error = -EFSCORRUPTED; in xfs_rmap_convert()
1147 error = xfs_btree_decrement(cur, 0, &i); in xfs_rmap_convert()
1148 if (error) in xfs_rmap_convert()
1152 error = xfs_rmap_get_rec(cur, &LEFT, &i); in xfs_rmap_convert()
1153 if (error) in xfs_rmap_convert()
1156 error = -EFSCORRUPTED; in xfs_rmap_convert()
1162 error = -EFSCORRUPTED; in xfs_rmap_convert()
1180 error = xfs_btree_increment(cur, 0, &i); in xfs_rmap_convert()
1181 if (error) in xfs_rmap_convert()
1184 error = -EFSCORRUPTED; in xfs_rmap_convert()
1187 error = xfs_btree_increment(cur, 0, &i); in xfs_rmap_convert()
1188 if (error) in xfs_rmap_convert()
1192 error = xfs_rmap_get_rec(cur, &RIGHT, &i); in xfs_rmap_convert()
1193 if (error) in xfs_rmap_convert()
1196 error = -EFSCORRUPTED; in xfs_rmap_convert()
1200 error = -EFSCORRUPTED; in xfs_rmap_convert()
1226 error = xfs_rmap_lookup_le(cur, bno, owner, offset, oldext, NULL, &i); in xfs_rmap_convert()
1227 if (error) in xfs_rmap_convert()
1230 error = -EFSCORRUPTED; in xfs_rmap_convert()
1245 error = xfs_btree_increment(cur, 0, &i); in xfs_rmap_convert()
1246 if (error) in xfs_rmap_convert()
1249 error = -EFSCORRUPTED; in xfs_rmap_convert()
1256 error = xfs_btree_delete(cur, &i); in xfs_rmap_convert()
1257 if (error) in xfs_rmap_convert()
1260 error = -EFSCORRUPTED; in xfs_rmap_convert()
1263 error = xfs_btree_decrement(cur, 0, &i); in xfs_rmap_convert()
1264 if (error) in xfs_rmap_convert()
1267 error = -EFSCORRUPTED; in xfs_rmap_convert()
1274 error = xfs_btree_delete(cur, &i); in xfs_rmap_convert()
1275 if (error) in xfs_rmap_convert()
1278 error = -EFSCORRUPTED; in xfs_rmap_convert()
1281 error = xfs_btree_decrement(cur, 0, &i); in xfs_rmap_convert()
1282 if (error) in xfs_rmap_convert()
1285 error = -EFSCORRUPTED; in xfs_rmap_convert()
1290 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1291 if (error) in xfs_rmap_convert()
1304 error = xfs_btree_delete(cur, &i); in xfs_rmap_convert()
1305 if (error) in xfs_rmap_convert()
1308 error = -EFSCORRUPTED; in xfs_rmap_convert()
1311 error = xfs_btree_decrement(cur, 0, &i); in xfs_rmap_convert()
1312 if (error) in xfs_rmap_convert()
1315 error = -EFSCORRUPTED; in xfs_rmap_convert()
1320 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1321 if (error) in xfs_rmap_convert()
1330 error = xfs_btree_increment(cur, 0, &i); in xfs_rmap_convert()
1331 if (error) in xfs_rmap_convert()
1334 error = -EFSCORRUPTED; in xfs_rmap_convert()
1341 error = xfs_btree_delete(cur, &i); in xfs_rmap_convert()
1342 if (error) in xfs_rmap_convert()
1345 error = -EFSCORRUPTED; in xfs_rmap_convert()
1348 error = xfs_btree_decrement(cur, 0, &i); in xfs_rmap_convert()
1349 if (error) in xfs_rmap_convert()
1352 error = -EFSCORRUPTED; in xfs_rmap_convert()
1358 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1359 if (error) in xfs_rmap_convert()
1371 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1372 if (error) in xfs_rmap_convert()
1385 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1386 if (error) in xfs_rmap_convert()
1388 error = xfs_btree_decrement(cur, 0, &i); in xfs_rmap_convert()
1389 if (error) in xfs_rmap_convert()
1393 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1394 if (error) in xfs_rmap_convert()
1407 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1408 if (error) in xfs_rmap_convert()
1418 error = xfs_btree_insert(cur, &i); in xfs_rmap_convert()
1419 if (error) in xfs_rmap_convert()
1422 error = -EFSCORRUPTED; in xfs_rmap_convert()
1434 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1435 if (error) in xfs_rmap_convert()
1437 error = xfs_btree_increment(cur, 0, &i); in xfs_rmap_convert()
1438 if (error) in xfs_rmap_convert()
1444 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1445 if (error) in xfs_rmap_convert()
1456 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1457 if (error) in xfs_rmap_convert()
1459 error = xfs_rmap_lookup_eq(cur, bno, len, owner, offset, in xfs_rmap_convert()
1461 if (error) in xfs_rmap_convert()
1464 error = -EFSCORRUPTED; in xfs_rmap_convert()
1475 error = xfs_btree_insert(cur, &i); in xfs_rmap_convert()
1476 if (error) in xfs_rmap_convert()
1479 error = -EFSCORRUPTED; in xfs_rmap_convert()
1497 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1498 if (error) in xfs_rmap_convert()
1508 error = xfs_btree_insert(cur, &i); in xfs_rmap_convert()
1509 if (error) in xfs_rmap_convert()
1512 error = -EFSCORRUPTED; in xfs_rmap_convert()
1520 error = xfs_rmap_lookup_eq(cur, bno, len, owner, offset, in xfs_rmap_convert()
1522 if (error) in xfs_rmap_convert()
1525 error = -EFSCORRUPTED; in xfs_rmap_convert()
1533 error = xfs_btree_insert(cur, &i); in xfs_rmap_convert()
1534 if (error) in xfs_rmap_convert()
1537 error = -EFSCORRUPTED; in xfs_rmap_convert()
1558 if (error) in xfs_rmap_convert()
1560 cur->bc_ag.pag->pag_agno, error, _RET_IP_); in xfs_rmap_convert()
1561 return error; in xfs_rmap_convert()
1589 int error; in xfs_rmap_convert_shared() local
1604 error = xfs_rmap_lookup_le_range(cur, bno, owner, offset, oldext, in xfs_rmap_convert_shared()
1606 if (error) in xfs_rmap_convert_shared()
1609 error = -EFSCORRUPTED; in xfs_rmap_convert_shared()
1628 error = xfs_rmap_find_left_neighbor(cur, bno, owner, offset, newext, in xfs_rmap_convert_shared()
1630 if (error) in xfs_rmap_convert_shared()
1637 error = -EFSCORRUPTED; in xfs_rmap_convert_shared()
1645 error = xfs_rmap_lookup_eq(cur, bno + len, len, owner, offset + len, in xfs_rmap_convert_shared()
1647 if (error) in xfs_rmap_convert_shared()
1651 error = xfs_rmap_get_rec(cur, &RIGHT, &i); in xfs_rmap_convert_shared()
1652 if (error) in xfs_rmap_convert_shared()
1655 error = -EFSCORRUPTED; in xfs_rmap_convert_shared()
1659 error = -EFSCORRUPTED; in xfs_rmap_convert_shared()
1692 error = xfs_rmap_delete(cur, RIGHT.rm_startblock, in xfs_rmap_convert_shared()
1695 if (error) in xfs_rmap_convert_shared()
1697 error = xfs_rmap_delete(cur, PREV.rm_startblock, in xfs_rmap_convert_shared()
1700 if (error) in xfs_rmap_convert_shared()
1703 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1706 if (error) in xfs_rmap_convert_shared()
1709 error = -EFSCORRUPTED; in xfs_rmap_convert_shared()
1713 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1714 if (error) in xfs_rmap_convert_shared()
1723 error = xfs_rmap_delete(cur, PREV.rm_startblock, in xfs_rmap_convert_shared()
1726 if (error) in xfs_rmap_convert_shared()
1729 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1732 if (error) in xfs_rmap_convert_shared()
1735 error = -EFSCORRUPTED; in xfs_rmap_convert_shared()
1739 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1740 if (error) in xfs_rmap_convert_shared()
1749 error = xfs_rmap_delete(cur, RIGHT.rm_startblock, in xfs_rmap_convert_shared()
1752 if (error) in xfs_rmap_convert_shared()
1755 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1758 if (error) in xfs_rmap_convert_shared()
1761 error = -EFSCORRUPTED; in xfs_rmap_convert_shared()
1766 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1767 if (error) in xfs_rmap_convert_shared()
1778 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1781 if (error) in xfs_rmap_convert_shared()
1784 error = -EFSCORRUPTED; in xfs_rmap_convert_shared()
1788 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1789 if (error) in xfs_rmap_convert_shared()
1799 error = xfs_rmap_delete(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1802 if (error) in xfs_rmap_convert_shared()
1807 error = xfs_rmap_insert(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1810 if (error) in xfs_rmap_convert_shared()
1813 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1816 if (error) in xfs_rmap_convert_shared()
1819 error = -EFSCORRUPTED; in xfs_rmap_convert_shared()
1823 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1824 if (error) in xfs_rmap_convert_shared()
1834 error = xfs_rmap_delete(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1837 if (error) in xfs_rmap_convert_shared()
1842 error = xfs_rmap_insert(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1845 if (error) in xfs_rmap_convert_shared()
1847 error = xfs_rmap_insert(cur, bno, len, owner, offset, newext); in xfs_rmap_convert_shared()
1848 if (error) in xfs_rmap_convert_shared()
1858 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1861 if (error) in xfs_rmap_convert_shared()
1864 error = -EFSCORRUPTED; in xfs_rmap_convert_shared()
1868 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1869 if (error) in xfs_rmap_convert_shared()
1872 error = xfs_rmap_delete(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1875 if (error) in xfs_rmap_convert_shared()
1880 error = xfs_rmap_insert(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1883 if (error) in xfs_rmap_convert_shared()
1893 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1896 if (error) in xfs_rmap_convert_shared()
1899 error = -EFSCORRUPTED; in xfs_rmap_convert_shared()
1903 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1904 if (error) in xfs_rmap_convert_shared()
1906 error = xfs_rmap_insert(cur, bno, len, owner, offset, newext); in xfs_rmap_convert_shared()
1907 if (error) in xfs_rmap_convert_shared()
1924 error = xfs_rmap_insert(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1927 if (error) in xfs_rmap_convert_shared()
1931 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1934 if (error) in xfs_rmap_convert_shared()
1937 error = -EFSCORRUPTED; in xfs_rmap_convert_shared()
1941 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1942 if (error) in xfs_rmap_convert_shared()
1950 error = xfs_rmap_insert(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1953 if (error) in xfs_rmap_convert_shared()
1973 if (error) in xfs_rmap_convert_shared()
1975 cur->bc_ag.pag->pag_agno, error, _RET_IP_); in xfs_rmap_convert_shared()
1976 return error; in xfs_rmap_convert_shared()
2004 int error = 0; in xfs_rmap_unmap_shared() local
2021 error = xfs_rmap_lookup_le_range(cur, bno, owner, offset, flags, in xfs_rmap_unmap_shared()
2023 if (error) in xfs_rmap_unmap_shared()
2026 error = -EFSCORRUPTED; in xfs_rmap_unmap_shared()
2036 error = -EFSCORRUPTED; in xfs_rmap_unmap_shared()
2042 error = -EFSCORRUPTED; in xfs_rmap_unmap_shared()
2050 error = -EFSCORRUPTED; in xfs_rmap_unmap_shared()
2056 error = -EFSCORRUPTED; in xfs_rmap_unmap_shared()
2060 error = -EFSCORRUPTED; in xfs_rmap_unmap_shared()
2066 error = xfs_rmap_delete(cur, ltrec.rm_startblock, in xfs_rmap_unmap_shared()
2069 if (error) in xfs_rmap_unmap_shared()
2084 error = xfs_rmap_delete(cur, ltrec.rm_startblock, in xfs_rmap_unmap_shared()
2087 if (error) in xfs_rmap_unmap_shared()
2094 error = xfs_rmap_insert(cur, ltrec.rm_startblock, in xfs_rmap_unmap_shared()
2097 if (error) in xfs_rmap_unmap_shared()
2110 error = xfs_rmap_lookup_eq(cur, ltrec.rm_startblock, in xfs_rmap_unmap_shared()
2113 if (error) in xfs_rmap_unmap_shared()
2116 error = -EFSCORRUPTED; in xfs_rmap_unmap_shared()
2120 error = xfs_rmap_update(cur, &ltrec); in xfs_rmap_unmap_shared()
2121 if (error) in xfs_rmap_unmap_shared()
2139 error = xfs_rmap_lookup_eq(cur, ltrec.rm_startblock, in xfs_rmap_unmap_shared()
2142 if (error) in xfs_rmap_unmap_shared()
2145 error = -EFSCORRUPTED; in xfs_rmap_unmap_shared()
2149 error = xfs_rmap_update(cur, &ltrec); in xfs_rmap_unmap_shared()
2150 if (error) in xfs_rmap_unmap_shared()
2154 error = xfs_rmap_insert(cur, bno + len, in xfs_rmap_unmap_shared()
2158 if (error) in xfs_rmap_unmap_shared()
2165 if (error) in xfs_rmap_unmap_shared()
2167 cur->bc_ag.pag->pag_agno, error, _RET_IP_); in xfs_rmap_unmap_shared()
2168 return error; in xfs_rmap_unmap_shared()
2193 int error = 0; in xfs_rmap_map_shared() local
2206 error = xfs_rmap_find_left_neighbor(cur, bno, owner, offset, flags, in xfs_rmap_map_shared()
2208 if (error) in xfs_rmap_map_shared()
2215 error = xfs_rmap_lookup_eq(cur, bno + len, len, owner, offset + len, in xfs_rmap_map_shared()
2217 if (error) in xfs_rmap_map_shared()
2220 error = xfs_rmap_get_rec(cur, &gtrec, &have_gt); in xfs_rmap_map_shared()
2221 if (error) in xfs_rmap_map_shared()
2224 error = -EFSCORRUPTED; in xfs_rmap_map_shared()
2262 error = xfs_rmap_delete(cur, gtrec.rm_startblock, in xfs_rmap_map_shared()
2265 if (error) in xfs_rmap_map_shared()
2270 error = xfs_rmap_lookup_eq(cur, ltrec.rm_startblock, in xfs_rmap_map_shared()
2273 if (error) in xfs_rmap_map_shared()
2276 error = -EFSCORRUPTED; in xfs_rmap_map_shared()
2280 error = xfs_rmap_update(cur, &ltrec); in xfs_rmap_map_shared()
2281 if (error) in xfs_rmap_map_shared()
2296 error = xfs_rmap_delete(cur, gtrec.rm_startblock, in xfs_rmap_map_shared()
2299 if (error) in xfs_rmap_map_shared()
2306 error = xfs_rmap_insert(cur, gtrec.rm_startblock, in xfs_rmap_map_shared()
2309 if (error) in xfs_rmap_map_shared()
2316 error = xfs_rmap_insert(cur, bno, len, owner, offset, flags); in xfs_rmap_map_shared()
2317 if (error) in xfs_rmap_map_shared()
2324 if (error) in xfs_rmap_map_shared()
2326 cur->bc_ag.pag->pag_agno, error, _RET_IP_); in xfs_rmap_map_shared()
2327 return error; in xfs_rmap_map_shared()
2419 int error) in xfs_rmap_finish_one_cleanup() argument
2426 xfs_btree_del_cursor(rcur, error); in xfs_rmap_finish_one_cleanup()
2427 if (error) in xfs_rmap_finish_one_cleanup()
2447 int error = 0; in xfs_rmap_finish_one() local
2478 error = xfs_free_extent_fix_freelist(tp, ri->ri_pag, &agbp); in xfs_rmap_finish_one()
2479 if (error) in xfs_rmap_finish_one()
2480 return error; in xfs_rmap_finish_one()
2496 error = xfs_rmap_map(rcur, bno, ri->ri_bmap.br_blockcount, in xfs_rmap_finish_one()
2500 error = xfs_rmap_map_shared(rcur, bno, in xfs_rmap_finish_one()
2505 error = xfs_rmap_unmap(rcur, bno, ri->ri_bmap.br_blockcount, in xfs_rmap_finish_one()
2509 error = xfs_rmap_unmap_shared(rcur, bno, in xfs_rmap_finish_one()
2513 error = xfs_rmap_convert(rcur, bno, ri->ri_bmap.br_blockcount, in xfs_rmap_finish_one()
2517 error = xfs_rmap_convert_shared(rcur, bno, in xfs_rmap_finish_one()
2522 error = -EFSCORRUPTED; in xfs_rmap_finish_one()
2525 return error; in xfs_rmap_finish_one()
2853 int error; in xfs_rmap_count_owners() local
2856 error = xfs_rmap_query_range(cur, &roc.low, &roc.high, in xfs_rmap_count_owners()
2858 if (error) in xfs_rmap_count_owners()
2859 return error; in xfs_rmap_count_owners()
2885 int error; in xfs_rmap_has_other_keys() local
2890 error = xfs_rmap_query_range(cur, &roc.low, &roc.high, in xfs_rmap_has_other_keys()
2892 if (error == -ECANCELED) { in xfs_rmap_has_other_keys()
2896 if (error) in xfs_rmap_has_other_keys()
2897 return error; in xfs_rmap_has_other_keys()