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()
220 int error; in xfs_rmap_get_rec() local
222 error = xfs_btree_get_rec(cur, &rec, stat); in xfs_rmap_get_rec()
223 if (error || !*stat) in xfs_rmap_get_rec()
224 return error; in xfs_rmap_get_rec()
307 int error; in xfs_rmap_find_left_neighbor() local
344 error = xfs_rmap_lookup_le(cur, bno, owner, offset, flags, irec, in xfs_rmap_find_left_neighbor()
346 if (error) in xfs_rmap_find_left_neighbor()
347 return error; in xfs_rmap_find_left_neighbor()
349 error = xfs_rmap_find_left_neighbor_helper(cur, irec, &info); in xfs_rmap_find_left_neighbor()
350 if (!error) in xfs_rmap_find_left_neighbor()
351 error = xfs_rmap_query_range(cur, &info.high, &info.high, in xfs_rmap_find_left_neighbor()
353 if (error != -ECANCELED) in xfs_rmap_find_left_neighbor()
354 return error; in xfs_rmap_find_left_neighbor()
408 int error; in xfs_rmap_lookup_le_range() local
440 error = xfs_rmap_lookup_le(cur, bno, owner, offset, flags, irec, in xfs_rmap_lookup_le_range()
442 if (error) in xfs_rmap_lookup_le_range()
443 return error; in xfs_rmap_lookup_le_range()
445 error = xfs_rmap_lookup_le_range_helper(cur, irec, &info); in xfs_rmap_lookup_le_range()
446 if (!error) in xfs_rmap_lookup_le_range()
447 error = xfs_rmap_query_range(cur, &info.high, &info.high, in xfs_rmap_lookup_le_range()
449 if (error != -ECANCELED) in xfs_rmap_lookup_le_range()
450 return error; in xfs_rmap_lookup_le_range()
474 int error = 0; in xfs_rmap_free_check_owner() local
483 error = -EFSCORRUPTED; in xfs_rmap_free_check_owner()
489 error = -EFSCORRUPTED; in xfs_rmap_free_check_owner()
500 error = -EFSCORRUPTED; in xfs_rmap_free_check_owner()
505 error = -EFSCORRUPTED; in xfs_rmap_free_check_owner()
510 error = -EFSCORRUPTED; in xfs_rmap_free_check_owner()
516 return error; in xfs_rmap_free_check_owner()
548 int error = 0; in xfs_rmap_unmap() local
568 error = xfs_rmap_lookup_le(cur, bno, owner, offset, flags, <rec, &i); in xfs_rmap_unmap()
569 if (error) in xfs_rmap_unmap()
572 error = -EFSCORRUPTED; in xfs_rmap_unmap()
593 error = -EFSCORRUPTED; in xfs_rmap_unmap()
610 error = xfs_btree_increment(cur, 0, &i); in xfs_rmap_unmap()
611 if (error) in xfs_rmap_unmap()
615 error = xfs_rmap_get_rec(cur, &rtrec, &i); in xfs_rmap_unmap()
616 if (error) in xfs_rmap_unmap()
619 error = -EFSCORRUPTED; in xfs_rmap_unmap()
631 error = -EFSCORRUPTED; in xfs_rmap_unmap()
636 error = xfs_rmap_free_check_owner(mp, ltoff, <rec, len, owner, in xfs_rmap_unmap()
638 if (error) in xfs_rmap_unmap()
647 error = xfs_btree_delete(cur, &i); in xfs_rmap_unmap()
648 if (error) in xfs_rmap_unmap()
651 error = -EFSCORRUPTED; in xfs_rmap_unmap()
669 error = xfs_rmap_update(cur, <rec); in xfs_rmap_unmap()
670 if (error) in xfs_rmap_unmap()
684 error = xfs_rmap_update(cur, <rec); in xfs_rmap_unmap()
685 if (error) in xfs_rmap_unmap()
704 error = xfs_rmap_update(cur, <rec); in xfs_rmap_unmap()
705 if (error) in xfs_rmap_unmap()
708 error = xfs_btree_increment(cur, 0, &i); in xfs_rmap_unmap()
709 if (error) in xfs_rmap_unmap()
727 error = xfs_btree_insert(cur, &i); in xfs_rmap_unmap()
728 if (error) in xfs_rmap_unmap()
736 if (error) in xfs_rmap_unmap()
738 error, _RET_IP_); in xfs_rmap_unmap()
739 return error; in xfs_rmap_unmap()
756 int error; in xfs_rmap_free() local
763 error = xfs_rmap_unmap(cur, bno, len, false, oinfo); in xfs_rmap_free()
765 xfs_btree_del_cursor(cur, error); in xfs_rmap_free()
766 return error; in xfs_rmap_free()
815 int error = 0; in xfs_rmap_map() local
837 error = xfs_rmap_lookup_le(cur, bno, owner, offset, flags, <rec, in xfs_rmap_map()
839 if (error) in xfs_rmap_map()
854 error = -EFSCORRUPTED; in xfs_rmap_map()
863 error = xfs_btree_increment(cur, 0, &have_gt); in xfs_rmap_map()
864 if (error) in xfs_rmap_map()
867 error = xfs_rmap_get_rec(cur, >rec, &have_gt); in xfs_rmap_map()
868 if (error) in xfs_rmap_map()
871 error = -EFSCORRUPTED; in xfs_rmap_map()
875 error = -EFSCORRUPTED; in xfs_rmap_map()
924 error = xfs_btree_delete(cur, &i); in xfs_rmap_map()
925 if (error) in xfs_rmap_map()
928 error = -EFSCORRUPTED; in xfs_rmap_map()
934 error = xfs_btree_decrement(cur, 0, &have_gt); in xfs_rmap_map()
935 if (error) in xfs_rmap_map()
937 error = xfs_rmap_update(cur, <rec); in xfs_rmap_map()
938 if (error) in xfs_rmap_map()
956 error = xfs_rmap_update(cur, >rec); in xfs_rmap_map()
957 if (error) in xfs_rmap_map()
971 error = xfs_btree_insert(cur, &i); in xfs_rmap_map()
972 if (error) in xfs_rmap_map()
975 error = -EFSCORRUPTED; in xfs_rmap_map()
983 if (error) in xfs_rmap_map()
985 error, _RET_IP_); in xfs_rmap_map()
986 return error; in xfs_rmap_map()
1003 int error; in xfs_rmap_alloc() local
1009 error = xfs_rmap_map(cur, bno, len, false, oinfo); in xfs_rmap_alloc()
1011 xfs_btree_del_cursor(cur, error); in xfs_rmap_alloc()
1012 return error; in xfs_rmap_alloc()
1051 int error; in xfs_rmap_convert() local
1066 error = xfs_rmap_lookup_le(cur, bno, owner, offset, oldext, &PREV, &i); in xfs_rmap_convert()
1067 if (error) in xfs_rmap_convert()
1070 error = -EFSCORRUPTED; in xfs_rmap_convert()
1098 error = xfs_btree_decrement(cur, 0, &i); in xfs_rmap_convert()
1099 if (error) in xfs_rmap_convert()
1103 error = xfs_rmap_get_rec(cur, &LEFT, &i); in xfs_rmap_convert()
1104 if (error) in xfs_rmap_convert()
1107 error = -EFSCORRUPTED; in xfs_rmap_convert()
1113 error = -EFSCORRUPTED; in xfs_rmap_convert()
1131 error = xfs_btree_increment(cur, 0, &i); in xfs_rmap_convert()
1132 if (error) in xfs_rmap_convert()
1135 error = -EFSCORRUPTED; in xfs_rmap_convert()
1138 error = xfs_btree_increment(cur, 0, &i); in xfs_rmap_convert()
1139 if (error) in xfs_rmap_convert()
1143 error = xfs_rmap_get_rec(cur, &RIGHT, &i); in xfs_rmap_convert()
1144 if (error) in xfs_rmap_convert()
1147 error = -EFSCORRUPTED; in xfs_rmap_convert()
1151 error = -EFSCORRUPTED; in xfs_rmap_convert()
1177 error = xfs_rmap_lookup_le(cur, bno, owner, offset, oldext, NULL, &i); in xfs_rmap_convert()
1178 if (error) in xfs_rmap_convert()
1181 error = -EFSCORRUPTED; in xfs_rmap_convert()
1196 error = xfs_btree_increment(cur, 0, &i); in xfs_rmap_convert()
1197 if (error) in xfs_rmap_convert()
1200 error = -EFSCORRUPTED; in xfs_rmap_convert()
1207 error = xfs_btree_delete(cur, &i); in xfs_rmap_convert()
1208 if (error) in xfs_rmap_convert()
1211 error = -EFSCORRUPTED; in xfs_rmap_convert()
1214 error = xfs_btree_decrement(cur, 0, &i); in xfs_rmap_convert()
1215 if (error) in xfs_rmap_convert()
1218 error = -EFSCORRUPTED; in xfs_rmap_convert()
1225 error = xfs_btree_delete(cur, &i); in xfs_rmap_convert()
1226 if (error) in xfs_rmap_convert()
1229 error = -EFSCORRUPTED; in xfs_rmap_convert()
1232 error = xfs_btree_decrement(cur, 0, &i); in xfs_rmap_convert()
1233 if (error) in xfs_rmap_convert()
1236 error = -EFSCORRUPTED; in xfs_rmap_convert()
1241 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1242 if (error) in xfs_rmap_convert()
1255 error = xfs_btree_delete(cur, &i); in xfs_rmap_convert()
1256 if (error) in xfs_rmap_convert()
1259 error = -EFSCORRUPTED; in xfs_rmap_convert()
1262 error = xfs_btree_decrement(cur, 0, &i); in xfs_rmap_convert()
1263 if (error) in xfs_rmap_convert()
1266 error = -EFSCORRUPTED; in xfs_rmap_convert()
1271 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1272 if (error) in xfs_rmap_convert()
1281 error = xfs_btree_increment(cur, 0, &i); in xfs_rmap_convert()
1282 if (error) in xfs_rmap_convert()
1285 error = -EFSCORRUPTED; in xfs_rmap_convert()
1292 error = xfs_btree_delete(cur, &i); in xfs_rmap_convert()
1293 if (error) in xfs_rmap_convert()
1296 error = -EFSCORRUPTED; in xfs_rmap_convert()
1299 error = xfs_btree_decrement(cur, 0, &i); in xfs_rmap_convert()
1300 if (error) in xfs_rmap_convert()
1303 error = -EFSCORRUPTED; in xfs_rmap_convert()
1309 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1310 if (error) in xfs_rmap_convert()
1322 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1323 if (error) in xfs_rmap_convert()
1336 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1337 if (error) in xfs_rmap_convert()
1339 error = xfs_btree_decrement(cur, 0, &i); in xfs_rmap_convert()
1340 if (error) in xfs_rmap_convert()
1344 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1345 if (error) in xfs_rmap_convert()
1358 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1359 if (error) in xfs_rmap_convert()
1369 error = xfs_btree_insert(cur, &i); in xfs_rmap_convert()
1370 if (error) in xfs_rmap_convert()
1373 error = -EFSCORRUPTED; 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_increment(cur, 0, &i); in xfs_rmap_convert()
1389 if (error) in xfs_rmap_convert()
1395 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1396 if (error) in xfs_rmap_convert()
1407 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1408 if (error) in xfs_rmap_convert()
1410 error = xfs_rmap_lookup_eq(cur, bno, len, owner, offset, in xfs_rmap_convert()
1412 if (error) in xfs_rmap_convert()
1415 error = -EFSCORRUPTED; in xfs_rmap_convert()
1426 error = xfs_btree_insert(cur, &i); in xfs_rmap_convert()
1427 if (error) in xfs_rmap_convert()
1430 error = -EFSCORRUPTED; in xfs_rmap_convert()
1448 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1449 if (error) in xfs_rmap_convert()
1459 error = xfs_btree_insert(cur, &i); in xfs_rmap_convert()
1460 if (error) in xfs_rmap_convert()
1463 error = -EFSCORRUPTED; in xfs_rmap_convert()
1471 error = xfs_rmap_lookup_eq(cur, bno, len, owner, offset, in xfs_rmap_convert()
1473 if (error) in xfs_rmap_convert()
1476 error = -EFSCORRUPTED; in xfs_rmap_convert()
1484 error = xfs_btree_insert(cur, &i); in xfs_rmap_convert()
1485 if (error) in xfs_rmap_convert()
1488 error = -EFSCORRUPTED; in xfs_rmap_convert()
1509 if (error) in xfs_rmap_convert()
1511 cur->bc_ag.pag->pag_agno, error, _RET_IP_); in xfs_rmap_convert()
1512 return error; in xfs_rmap_convert()
1540 int error; in xfs_rmap_convert_shared() local
1555 error = xfs_rmap_lookup_le_range(cur, bno, owner, offset, oldext, in xfs_rmap_convert_shared()
1557 if (error) in xfs_rmap_convert_shared()
1560 error = -EFSCORRUPTED; in xfs_rmap_convert_shared()
1579 error = xfs_rmap_find_left_neighbor(cur, bno, owner, offset, newext, in xfs_rmap_convert_shared()
1581 if (error) in xfs_rmap_convert_shared()
1588 error = -EFSCORRUPTED; in xfs_rmap_convert_shared()
1596 error = xfs_rmap_lookup_eq(cur, bno + len, len, owner, offset + len, in xfs_rmap_convert_shared()
1598 if (error) in xfs_rmap_convert_shared()
1602 error = xfs_rmap_get_rec(cur, &RIGHT, &i); in xfs_rmap_convert_shared()
1603 if (error) in xfs_rmap_convert_shared()
1606 error = -EFSCORRUPTED; in xfs_rmap_convert_shared()
1610 error = -EFSCORRUPTED; in xfs_rmap_convert_shared()
1643 error = xfs_rmap_delete(cur, RIGHT.rm_startblock, in xfs_rmap_convert_shared()
1646 if (error) in xfs_rmap_convert_shared()
1648 error = xfs_rmap_delete(cur, PREV.rm_startblock, in xfs_rmap_convert_shared()
1651 if (error) in xfs_rmap_convert_shared()
1654 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1657 if (error) in xfs_rmap_convert_shared()
1660 error = -EFSCORRUPTED; in xfs_rmap_convert_shared()
1664 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1665 if (error) in xfs_rmap_convert_shared()
1674 error = xfs_rmap_delete(cur, PREV.rm_startblock, in xfs_rmap_convert_shared()
1677 if (error) in xfs_rmap_convert_shared()
1680 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1683 if (error) in xfs_rmap_convert_shared()
1686 error = -EFSCORRUPTED; in xfs_rmap_convert_shared()
1690 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1691 if (error) in xfs_rmap_convert_shared()
1700 error = xfs_rmap_delete(cur, RIGHT.rm_startblock, in xfs_rmap_convert_shared()
1703 if (error) in xfs_rmap_convert_shared()
1706 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1709 if (error) in xfs_rmap_convert_shared()
1712 error = -EFSCORRUPTED; in xfs_rmap_convert_shared()
1717 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1718 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()
1750 error = xfs_rmap_delete(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1753 if (error) in xfs_rmap_convert_shared()
1758 error = xfs_rmap_insert(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1761 if (error) in xfs_rmap_convert_shared()
1764 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1767 if (error) in xfs_rmap_convert_shared()
1770 error = -EFSCORRUPTED; in xfs_rmap_convert_shared()
1774 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1775 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()
1798 error = xfs_rmap_insert(cur, bno, len, owner, offset, newext); in xfs_rmap_convert_shared()
1799 if (error) in xfs_rmap_convert_shared()
1809 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1812 if (error) in xfs_rmap_convert_shared()
1815 error = -EFSCORRUPTED; in xfs_rmap_convert_shared()
1819 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1820 if (error) in xfs_rmap_convert_shared()
1823 error = xfs_rmap_delete(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1826 if (error) in xfs_rmap_convert_shared()
1831 error = xfs_rmap_insert(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1834 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()
1857 error = xfs_rmap_insert(cur, bno, len, owner, offset, newext); in xfs_rmap_convert_shared()
1858 if (error) in xfs_rmap_convert_shared()
1875 error = xfs_rmap_insert(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1878 if (error) in xfs_rmap_convert_shared()
1882 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1885 if (error) in xfs_rmap_convert_shared()
1888 error = -EFSCORRUPTED; in xfs_rmap_convert_shared()
1892 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1893 if (error) in xfs_rmap_convert_shared()
1901 error = xfs_rmap_insert(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1904 if (error) in xfs_rmap_convert_shared()
1924 if (error) in xfs_rmap_convert_shared()
1926 cur->bc_ag.pag->pag_agno, error, _RET_IP_); in xfs_rmap_convert_shared()
1927 return error; in xfs_rmap_convert_shared()
1955 int error = 0; in xfs_rmap_unmap_shared() local
1972 error = xfs_rmap_lookup_le_range(cur, bno, owner, offset, flags, in xfs_rmap_unmap_shared()
1974 if (error) in xfs_rmap_unmap_shared()
1977 error = -EFSCORRUPTED; in xfs_rmap_unmap_shared()
1987 error = -EFSCORRUPTED; in xfs_rmap_unmap_shared()
1993 error = -EFSCORRUPTED; in xfs_rmap_unmap_shared()
2001 error = -EFSCORRUPTED; in xfs_rmap_unmap_shared()
2007 error = -EFSCORRUPTED; in xfs_rmap_unmap_shared()
2011 error = -EFSCORRUPTED; in xfs_rmap_unmap_shared()
2017 error = xfs_rmap_delete(cur, ltrec.rm_startblock, in xfs_rmap_unmap_shared()
2020 if (error) in xfs_rmap_unmap_shared()
2035 error = xfs_rmap_delete(cur, ltrec.rm_startblock, in xfs_rmap_unmap_shared()
2038 if (error) in xfs_rmap_unmap_shared()
2045 error = xfs_rmap_insert(cur, ltrec.rm_startblock, in xfs_rmap_unmap_shared()
2048 if (error) in xfs_rmap_unmap_shared()
2061 error = xfs_rmap_lookup_eq(cur, ltrec.rm_startblock, in xfs_rmap_unmap_shared()
2064 if (error) in xfs_rmap_unmap_shared()
2067 error = -EFSCORRUPTED; in xfs_rmap_unmap_shared()
2071 error = xfs_rmap_update(cur, <rec); in xfs_rmap_unmap_shared()
2072 if (error) in xfs_rmap_unmap_shared()
2090 error = xfs_rmap_lookup_eq(cur, ltrec.rm_startblock, in xfs_rmap_unmap_shared()
2093 if (error) in xfs_rmap_unmap_shared()
2096 error = -EFSCORRUPTED; in xfs_rmap_unmap_shared()
2100 error = xfs_rmap_update(cur, <rec); in xfs_rmap_unmap_shared()
2101 if (error) in xfs_rmap_unmap_shared()
2105 error = xfs_rmap_insert(cur, bno + len, in xfs_rmap_unmap_shared()
2109 if (error) in xfs_rmap_unmap_shared()
2116 if (error) in xfs_rmap_unmap_shared()
2118 cur->bc_ag.pag->pag_agno, error, _RET_IP_); in xfs_rmap_unmap_shared()
2119 return error; in xfs_rmap_unmap_shared()
2144 int error = 0; in xfs_rmap_map_shared() local
2157 error = xfs_rmap_find_left_neighbor(cur, bno, owner, offset, flags, in xfs_rmap_map_shared()
2159 if (error) in xfs_rmap_map_shared()
2166 error = xfs_rmap_lookup_eq(cur, bno + len, len, owner, offset + len, in xfs_rmap_map_shared()
2168 if (error) in xfs_rmap_map_shared()
2171 error = xfs_rmap_get_rec(cur, >rec, &have_gt); in xfs_rmap_map_shared()
2172 if (error) in xfs_rmap_map_shared()
2175 error = -EFSCORRUPTED; in xfs_rmap_map_shared()
2213 error = xfs_rmap_delete(cur, gtrec.rm_startblock, in xfs_rmap_map_shared()
2216 if (error) in xfs_rmap_map_shared()
2221 error = xfs_rmap_lookup_eq(cur, ltrec.rm_startblock, in xfs_rmap_map_shared()
2224 if (error) in xfs_rmap_map_shared()
2227 error = -EFSCORRUPTED; in xfs_rmap_map_shared()
2231 error = xfs_rmap_update(cur, <rec); in xfs_rmap_map_shared()
2232 if (error) in xfs_rmap_map_shared()
2247 error = xfs_rmap_delete(cur, gtrec.rm_startblock, in xfs_rmap_map_shared()
2250 if (error) in xfs_rmap_map_shared()
2257 error = xfs_rmap_insert(cur, gtrec.rm_startblock, in xfs_rmap_map_shared()
2260 if (error) in xfs_rmap_map_shared()
2267 error = xfs_rmap_insert(cur, bno, len, owner, offset, flags); in xfs_rmap_map_shared()
2268 if (error) in xfs_rmap_map_shared()
2275 if (error) in xfs_rmap_map_shared()
2277 cur->bc_ag.pag->pag_agno, error, _RET_IP_); in xfs_rmap_map_shared()
2278 return error; in xfs_rmap_map_shared()
2323 int error; in xfs_rmap_query_range_helper() local
2325 error = xfs_rmap_btrec_to_irec(rec, &irec); in xfs_rmap_query_range_helper()
2326 if (error) in xfs_rmap_query_range_helper()
2327 return error; in xfs_rmap_query_range_helper()
2371 int error) in xfs_rmap_finish_one_cleanup() argument
2378 xfs_btree_del_cursor(rcur, error); in xfs_rmap_finish_one_cleanup()
2379 if (error) in xfs_rmap_finish_one_cleanup()
2406 int error = 0; in xfs_rmap_finish_one() local
2418 error = -EIO; in xfs_rmap_finish_one()
2439 error = xfs_free_extent_fix_freelist(tp, pag, &agbp); in xfs_rmap_finish_one()
2440 if (error) in xfs_rmap_finish_one()
2443 error = -EFSCORRUPTED; in xfs_rmap_finish_one()
2458 error = xfs_rmap_map(rcur, bno, blockcount, unwritten, &oinfo); in xfs_rmap_finish_one()
2461 error = xfs_rmap_map_shared(rcur, bno, blockcount, unwritten, in xfs_rmap_finish_one()
2466 error = xfs_rmap_unmap(rcur, bno, blockcount, unwritten, in xfs_rmap_finish_one()
2470 error = xfs_rmap_unmap_shared(rcur, bno, blockcount, unwritten, in xfs_rmap_finish_one()
2474 error = xfs_rmap_convert(rcur, bno, blockcount, !unwritten, in xfs_rmap_finish_one()
2478 error = xfs_rmap_convert_shared(rcur, bno, blockcount, in xfs_rmap_finish_one()
2483 error = -EFSCORRUPTED; in xfs_rmap_finish_one()
2487 return error; in xfs_rmap_finish_one()
2708 int error; in xfs_rmap_record_exists() local
2714 error = xfs_rmap_lookup_le(cur, bno, owner, offset, flags, &irec, in xfs_rmap_record_exists()
2716 if (error) in xfs_rmap_record_exists()
2717 return error; in xfs_rmap_record_exists()
2764 int error; in xfs_rmap_has_other_keys() local
2773 error = xfs_rmap_query_range(cur, &low, &high, in xfs_rmap_has_other_keys()
2775 if (error == -ECANCELED) { in xfs_rmap_has_other_keys()
2780 return error; in xfs_rmap_has_other_keys()