Lines Matching defs:error

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