Lines Matching refs:cur

35 	struct xfs_btree_cur	*cur,  in xfs_rmap_lookup_le()  argument
46 cur->bc_rec.r.rm_startblock = bno; in xfs_rmap_lookup_le()
47 cur->bc_rec.r.rm_blockcount = 0; in xfs_rmap_lookup_le()
48 cur->bc_rec.r.rm_owner = owner; in xfs_rmap_lookup_le()
49 cur->bc_rec.r.rm_offset = offset; in xfs_rmap_lookup_le()
50 cur->bc_rec.r.rm_flags = flags; in xfs_rmap_lookup_le()
52 error = xfs_btree_lookup(cur, XFS_LOOKUP_LE, stat); in xfs_rmap_lookup_le()
56 error = xfs_rmap_get_rec(cur, irec, &get_stat); in xfs_rmap_lookup_le()
71 struct xfs_btree_cur *cur, in xfs_rmap_lookup_eq() argument
79 cur->bc_rec.r.rm_startblock = bno; in xfs_rmap_lookup_eq()
80 cur->bc_rec.r.rm_blockcount = len; in xfs_rmap_lookup_eq()
81 cur->bc_rec.r.rm_owner = owner; in xfs_rmap_lookup_eq()
82 cur->bc_rec.r.rm_offset = offset; in xfs_rmap_lookup_eq()
83 cur->bc_rec.r.rm_flags = flags; in xfs_rmap_lookup_eq()
84 return xfs_btree_lookup(cur, XFS_LOOKUP_EQ, stat); in xfs_rmap_lookup_eq()
94 struct xfs_btree_cur *cur, in xfs_rmap_update() argument
100 trace_xfs_rmap_update(cur->bc_mp, cur->bc_ag.pag->pag_agno, in xfs_rmap_update()
109 error = xfs_btree_update(cur, &rec); in xfs_rmap_update()
111 trace_xfs_rmap_update_error(cur->bc_mp, in xfs_rmap_update()
112 cur->bc_ag.pag->pag_agno, error, _RET_IP_); in xfs_rmap_update()
211 struct xfs_btree_cur *cur, in xfs_rmap_check_irec() argument
214 struct xfs_mount *mp = cur->bc_mp; in xfs_rmap_check_irec()
229 if (!xfs_verify_agbext(cur->bc_ag.pag, irec->rm_startblock, in xfs_rmap_check_irec()
267 struct xfs_btree_cur *cur, in xfs_rmap_complain_bad_rec() argument
271 struct xfs_mount *mp = cur->bc_mp; in xfs_rmap_complain_bad_rec()
275 cur->bc_ag.pag->pag_agno, fa); in xfs_rmap_complain_bad_rec()
288 struct xfs_btree_cur *cur, in xfs_rmap_get_rec() argument
296 error = xfs_btree_get_rec(cur, &rec, stat); in xfs_rmap_get_rec()
302 fa = xfs_rmap_check_irec(cur, irec); in xfs_rmap_get_rec()
304 return xfs_rmap_complain_bad_rec(cur, fa, irec); in xfs_rmap_get_rec()
317 struct xfs_btree_cur *cur, in xfs_rmap_find_left_neighbor_helper() argument
323 trace_xfs_rmap_find_left_neighbor_candidate(cur->bc_mp, in xfs_rmap_find_left_neighbor_helper()
324 cur->bc_ag.pag->pag_agno, rec->rm_startblock, in xfs_rmap_find_left_neighbor_helper()
346 struct xfs_btree_cur *cur, in xfs_rmap_find_left_neighbor() argument
374 trace_xfs_rmap_find_left_neighbor_query(cur->bc_mp, in xfs_rmap_find_left_neighbor()
375 cur->bc_ag.pag->pag_agno, bno, 0, owner, offset, flags); in xfs_rmap_find_left_neighbor()
393 error = xfs_rmap_lookup_le(cur, bno, owner, offset, flags, irec, in xfs_rmap_find_left_neighbor()
398 error = xfs_rmap_find_left_neighbor_helper(cur, irec, &info); in xfs_rmap_find_left_neighbor()
400 error = xfs_rmap_query_range(cur, &info.high, &info.high, in xfs_rmap_find_left_neighbor()
406 trace_xfs_rmap_find_left_neighbor_result(cur->bc_mp, in xfs_rmap_find_left_neighbor()
407 cur->bc_ag.pag->pag_agno, irec->rm_startblock, in xfs_rmap_find_left_neighbor()
416 struct xfs_btree_cur *cur, in xfs_rmap_lookup_le_range_helper() argument
422 trace_xfs_rmap_lookup_le_range_candidate(cur->bc_mp, in xfs_rmap_lookup_le_range_helper()
423 cur->bc_ag.pag->pag_agno, rec->rm_startblock, in xfs_rmap_lookup_le_range_helper()
447 struct xfs_btree_cur *cur, in xfs_rmap_lookup_le_range() argument
470 trace_xfs_rmap_lookup_le_range(cur->bc_mp, cur->bc_ag.pag->pag_agno, in xfs_rmap_lookup_le_range()
489 error = xfs_rmap_lookup_le(cur, bno, owner, offset, flags, irec, in xfs_rmap_lookup_le_range()
494 error = xfs_rmap_lookup_le_range_helper(cur, irec, &info); in xfs_rmap_lookup_le_range()
496 error = xfs_rmap_query_range(cur, &info.high, &info.high, in xfs_rmap_lookup_le_range()
502 trace_xfs_rmap_lookup_le_range_result(cur->bc_mp, in xfs_rmap_lookup_le_range()
503 cur->bc_ag.pag->pag_agno, irec->rm_startblock, in xfs_rmap_lookup_le_range()
588 struct xfs_btree_cur *cur, in xfs_rmap_unmap() argument
594 struct xfs_mount *mp = cur->bc_mp; in xfs_rmap_unmap()
609 trace_xfs_rmap_unmap(mp, cur->bc_ag.pag->pag_agno, bno, len, in xfs_rmap_unmap()
617 error = xfs_rmap_lookup_le(cur, bno, owner, offset, flags, &ltrec, &i); in xfs_rmap_unmap()
625 trace_xfs_rmap_lookup_le_range_result(cur->bc_mp, in xfs_rmap_unmap()
626 cur->bc_ag.pag->pag_agno, ltrec.rm_startblock, in xfs_rmap_unmap()
659 error = xfs_btree_increment(cur, 0, &i); in xfs_rmap_unmap()
664 error = xfs_rmap_get_rec(cur, &rtrec, &i); in xfs_rmap_unmap()
692 trace_xfs_rmap_delete(mp, cur->bc_ag.pag->pag_agno, in xfs_rmap_unmap()
696 error = xfs_btree_delete(cur, &i); in xfs_rmap_unmap()
718 error = xfs_rmap_update(cur, &ltrec); in xfs_rmap_unmap()
733 error = xfs_rmap_update(cur, &ltrec); in xfs_rmap_unmap()
753 error = xfs_rmap_update(cur, &ltrec); in xfs_rmap_unmap()
757 error = xfs_btree_increment(cur, 0, &i); in xfs_rmap_unmap()
761 cur->bc_rec.r.rm_startblock = bno + len; in xfs_rmap_unmap()
762 cur->bc_rec.r.rm_blockcount = orig_len - len - in xfs_rmap_unmap()
764 cur->bc_rec.r.rm_owner = ltrec.rm_owner; in xfs_rmap_unmap()
766 cur->bc_rec.r.rm_offset = 0; in xfs_rmap_unmap()
768 cur->bc_rec.r.rm_offset = offset + len; in xfs_rmap_unmap()
769 cur->bc_rec.r.rm_flags = flags; in xfs_rmap_unmap()
770 trace_xfs_rmap_insert(mp, cur->bc_ag.pag->pag_agno, in xfs_rmap_unmap()
771 cur->bc_rec.r.rm_startblock, in xfs_rmap_unmap()
772 cur->bc_rec.r.rm_blockcount, in xfs_rmap_unmap()
773 cur->bc_rec.r.rm_owner, in xfs_rmap_unmap()
774 cur->bc_rec.r.rm_offset, in xfs_rmap_unmap()
775 cur->bc_rec.r.rm_flags); in xfs_rmap_unmap()
776 error = xfs_btree_insert(cur, &i); in xfs_rmap_unmap()
782 trace_xfs_rmap_unmap_done(mp, cur->bc_ag.pag->pag_agno, bno, len, in xfs_rmap_unmap()
786 trace_xfs_rmap_unmap_error(mp, cur->bc_ag.pag->pag_agno, in xfs_rmap_unmap()
804 struct xfs_btree_cur *cur; in xfs_rmap_free() local
810 cur = xfs_rmapbt_init_cursor(mp, tp, agbp, pag); in xfs_rmap_free()
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()
853 struct xfs_btree_cur *cur, in xfs_rmap_map() argument
859 struct xfs_mount *mp = cur->bc_mp; in xfs_rmap_map()
877 trace_xfs_rmap_map(mp, cur->bc_ag.pag->pag_agno, bno, len, in xfs_rmap_map()
886 error = xfs_rmap_lookup_le(cur, bno, owner, offset, flags, &ltrec, in xfs_rmap_map()
891 trace_xfs_rmap_lookup_le_range_result(cur->bc_mp, in xfs_rmap_map()
892 cur->bc_ag.pag->pag_agno, ltrec.rm_startblock, in xfs_rmap_map()
912 error = xfs_btree_increment(cur, 0, &have_gt); in xfs_rmap_map()
916 error = xfs_rmap_get_rec(cur, &gtrec, &have_gt); in xfs_rmap_map()
927 trace_xfs_rmap_find_right_neighbor_result(cur->bc_mp, in xfs_rmap_map()
928 cur->bc_ag.pag->pag_agno, gtrec.rm_startblock, in xfs_rmap_map()
967 trace_xfs_rmap_delete(mp, cur->bc_ag.pag->pag_agno, in xfs_rmap_map()
973 error = xfs_btree_delete(cur, &i); in xfs_rmap_map()
983 error = xfs_btree_decrement(cur, 0, &have_gt); in xfs_rmap_map()
986 error = xfs_rmap_update(cur, &ltrec); in xfs_rmap_map()
1005 error = xfs_rmap_update(cur, &gtrec); in xfs_rmap_map()
1013 cur->bc_rec.r.rm_startblock = bno; in xfs_rmap_map()
1014 cur->bc_rec.r.rm_blockcount = len; in xfs_rmap_map()
1015 cur->bc_rec.r.rm_owner = owner; in xfs_rmap_map()
1016 cur->bc_rec.r.rm_offset = offset; in xfs_rmap_map()
1017 cur->bc_rec.r.rm_flags = flags; in xfs_rmap_map()
1018 trace_xfs_rmap_insert(mp, cur->bc_ag.pag->pag_agno, bno, len, in xfs_rmap_map()
1020 error = xfs_btree_insert(cur, &i); in xfs_rmap_map()
1029 trace_xfs_rmap_map_done(mp, cur->bc_ag.pag->pag_agno, bno, len, in xfs_rmap_map()
1033 trace_xfs_rmap_map_error(mp, cur->bc_ag.pag->pag_agno, in xfs_rmap_map()
1051 struct xfs_btree_cur *cur; in xfs_rmap_alloc() local
1057 cur = xfs_rmapbt_init_cursor(mp, tp, agbp, pag); in xfs_rmap_alloc()
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()
1082 struct xfs_btree_cur *cur, in xfs_rmap_convert() argument
1088 struct xfs_mount *mp = cur->bc_mp; in xfs_rmap_convert()
1107 trace_xfs_rmap_convert(mp, cur->bc_ag.pag->pag_agno, bno, len, in xfs_rmap_convert()
1115 error = xfs_rmap_lookup_le(cur, bno, owner, offset, oldext, &PREV, &i); in xfs_rmap_convert()
1123 trace_xfs_rmap_lookup_le_range_result(cur->bc_mp, in xfs_rmap_convert()
1124 cur->bc_ag.pag->pag_agno, PREV.rm_startblock, in xfs_rmap_convert()
1147 error = xfs_btree_decrement(cur, 0, &i); in xfs_rmap_convert()
1152 error = xfs_rmap_get_rec(cur, &LEFT, &i); in xfs_rmap_convert()
1165 trace_xfs_rmap_find_left_neighbor_result(cur->bc_mp, in xfs_rmap_convert()
1166 cur->bc_ag.pag->pag_agno, LEFT.rm_startblock, in xfs_rmap_convert()
1180 error = xfs_btree_increment(cur, 0, &i); in xfs_rmap_convert()
1187 error = xfs_btree_increment(cur, 0, &i); in xfs_rmap_convert()
1192 error = xfs_rmap_get_rec(cur, &RIGHT, &i); in xfs_rmap_convert()
1203 trace_xfs_rmap_find_right_neighbor_result(cur->bc_mp, in xfs_rmap_convert()
1204 cur->bc_ag.pag->pag_agno, RIGHT.rm_startblock, in xfs_rmap_convert()
1222 trace_xfs_rmap_convert_state(mp, cur->bc_ag.pag->pag_agno, state, in xfs_rmap_convert()
1226 error = xfs_rmap_lookup_le(cur, bno, owner, offset, oldext, NULL, &i); in xfs_rmap_convert()
1245 error = xfs_btree_increment(cur, 0, &i); in xfs_rmap_convert()
1252 trace_xfs_rmap_delete(mp, cur->bc_ag.pag->pag_agno, in xfs_rmap_convert()
1256 error = xfs_btree_delete(cur, &i); in xfs_rmap_convert()
1263 error = xfs_btree_decrement(cur, 0, &i); in xfs_rmap_convert()
1270 trace_xfs_rmap_delete(mp, cur->bc_ag.pag->pag_agno, in xfs_rmap_convert()
1274 error = xfs_btree_delete(cur, &i); in xfs_rmap_convert()
1281 error = xfs_btree_decrement(cur, 0, &i); in xfs_rmap_convert()
1290 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1300 trace_xfs_rmap_delete(mp, cur->bc_ag.pag->pag_agno, in xfs_rmap_convert()
1304 error = xfs_btree_delete(cur, &i); in xfs_rmap_convert()
1311 error = xfs_btree_decrement(cur, 0, &i); in xfs_rmap_convert()
1320 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1330 error = xfs_btree_increment(cur, 0, &i); in xfs_rmap_convert()
1337 trace_xfs_rmap_delete(mp, cur->bc_ag.pag->pag_agno, in xfs_rmap_convert()
1341 error = xfs_btree_delete(cur, &i); in xfs_rmap_convert()
1348 error = xfs_btree_decrement(cur, 0, &i); in xfs_rmap_convert()
1358 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1371 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1385 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1388 error = xfs_btree_decrement(cur, 0, &i); in xfs_rmap_convert()
1393 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1407 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1415 cur->bc_rec.r = NEW; in xfs_rmap_convert()
1416 trace_xfs_rmap_insert(mp, cur->bc_ag.pag->pag_agno, bno, in xfs_rmap_convert()
1418 error = xfs_btree_insert(cur, &i); in xfs_rmap_convert()
1434 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1437 error = xfs_btree_increment(cur, 0, &i); in xfs_rmap_convert()
1444 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1456 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1459 error = xfs_rmap_lookup_eq(cur, bno, len, owner, offset, in xfs_rmap_convert()
1472 cur->bc_rec.r = NEW; in xfs_rmap_convert()
1473 trace_xfs_rmap_insert(mp, cur->bc_ag.pag->pag_agno, bno, in xfs_rmap_convert()
1475 error = xfs_btree_insert(cur, &i); in xfs_rmap_convert()
1497 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1503 cur->bc_rec.r = NEW; in xfs_rmap_convert()
1504 trace_xfs_rmap_insert(mp, cur->bc_ag.pag->pag_agno, in xfs_rmap_convert()
1508 error = xfs_btree_insert(cur, &i); in xfs_rmap_convert()
1520 error = xfs_rmap_lookup_eq(cur, bno, len, owner, offset, in xfs_rmap_convert()
1529 cur->bc_rec.r.rm_flags &= ~XFS_RMAP_UNWRITTEN; in xfs_rmap_convert()
1530 cur->bc_rec.r.rm_flags |= newext; in xfs_rmap_convert()
1531 trace_xfs_rmap_insert(mp, cur->bc_ag.pag->pag_agno, bno, len, in xfs_rmap_convert()
1533 error = xfs_btree_insert(cur, &i); in xfs_rmap_convert()
1555 trace_xfs_rmap_convert_done(mp, cur->bc_ag.pag->pag_agno, bno, len, in xfs_rmap_convert()
1559 trace_xfs_rmap_convert_error(cur->bc_mp, in xfs_rmap_convert()
1560 cur->bc_ag.pag->pag_agno, error, _RET_IP_); in xfs_rmap_convert()
1571 struct xfs_btree_cur *cur, in xfs_rmap_convert_shared() argument
1577 struct xfs_mount *mp = cur->bc_mp; in xfs_rmap_convert_shared()
1596 trace_xfs_rmap_convert(mp, cur->bc_ag.pag->pag_agno, bno, len, in xfs_rmap_convert_shared()
1604 error = xfs_rmap_lookup_le_range(cur, bno, owner, offset, oldext, in xfs_rmap_convert_shared()
1628 error = xfs_rmap_find_left_neighbor(cur, bno, owner, offset, newext, in xfs_rmap_convert_shared()
1645 error = xfs_rmap_lookup_eq(cur, bno + len, len, owner, offset + len, in xfs_rmap_convert_shared()
1651 error = xfs_rmap_get_rec(cur, &RIGHT, &i); in xfs_rmap_convert_shared()
1662 trace_xfs_rmap_find_right_neighbor_result(cur->bc_mp, in xfs_rmap_convert_shared()
1663 cur->bc_ag.pag->pag_agno, RIGHT.rm_startblock, in xfs_rmap_convert_shared()
1679 trace_xfs_rmap_convert_state(mp, cur->bc_ag.pag->pag_agno, state, in xfs_rmap_convert_shared()
1692 error = xfs_rmap_delete(cur, RIGHT.rm_startblock, in xfs_rmap_convert_shared()
1697 error = xfs_rmap_delete(cur, PREV.rm_startblock, in xfs_rmap_convert_shared()
1703 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1713 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1723 error = xfs_rmap_delete(cur, PREV.rm_startblock, in xfs_rmap_convert_shared()
1729 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1739 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1749 error = xfs_rmap_delete(cur, RIGHT.rm_startblock, in xfs_rmap_convert_shared()
1755 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1766 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1778 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1788 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1799 error = xfs_rmap_delete(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1807 error = xfs_rmap_insert(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1813 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1823 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1834 error = xfs_rmap_delete(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1842 error = xfs_rmap_insert(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1847 error = xfs_rmap_insert(cur, bno, len, owner, offset, newext); in xfs_rmap_convert_shared()
1858 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1868 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1872 error = xfs_rmap_delete(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1880 error = xfs_rmap_insert(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1893 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1903 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1906 error = xfs_rmap_insert(cur, bno, len, owner, offset, newext); in xfs_rmap_convert_shared()
1924 error = xfs_rmap_insert(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1931 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1941 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1950 error = xfs_rmap_insert(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1970 trace_xfs_rmap_convert_done(mp, cur->bc_ag.pag->pag_agno, bno, len, in xfs_rmap_convert_shared()
1974 trace_xfs_rmap_convert_error(cur->bc_mp, in xfs_rmap_convert_shared()
1975 cur->bc_ag.pag->pag_agno, error, _RET_IP_); in xfs_rmap_convert_shared()
1995 struct xfs_btree_cur *cur, in xfs_rmap_unmap_shared() argument
2001 struct xfs_mount *mp = cur->bc_mp; in xfs_rmap_unmap_shared()
2013 trace_xfs_rmap_unmap(mp, cur->bc_ag.pag->pag_agno, bno, len, in xfs_rmap_unmap_shared()
2021 error = xfs_rmap_lookup_le_range(cur, bno, owner, offset, flags, in xfs_rmap_unmap_shared()
2066 error = xfs_rmap_delete(cur, ltrec.rm_startblock, in xfs_rmap_unmap_shared()
2084 error = xfs_rmap_delete(cur, ltrec.rm_startblock, in xfs_rmap_unmap_shared()
2094 error = xfs_rmap_insert(cur, ltrec.rm_startblock, in xfs_rmap_unmap_shared()
2110 error = xfs_rmap_lookup_eq(cur, ltrec.rm_startblock, in xfs_rmap_unmap_shared()
2120 error = xfs_rmap_update(cur, &ltrec); in xfs_rmap_unmap_shared()
2139 error = xfs_rmap_lookup_eq(cur, ltrec.rm_startblock, in xfs_rmap_unmap_shared()
2149 error = xfs_rmap_update(cur, &ltrec); in xfs_rmap_unmap_shared()
2154 error = xfs_rmap_insert(cur, bno + len, in xfs_rmap_unmap_shared()
2162 trace_xfs_rmap_unmap_done(mp, cur->bc_ag.pag->pag_agno, bno, len, in xfs_rmap_unmap_shared()
2166 trace_xfs_rmap_unmap_error(cur->bc_mp, in xfs_rmap_unmap_shared()
2167 cur->bc_ag.pag->pag_agno, error, _RET_IP_); in xfs_rmap_unmap_shared()
2182 struct xfs_btree_cur *cur, in xfs_rmap_map_shared() argument
2188 struct xfs_mount *mp = cur->bc_mp; in xfs_rmap_map_shared()
2202 trace_xfs_rmap_map(mp, cur->bc_ag.pag->pag_agno, bno, len, in xfs_rmap_map_shared()
2206 error = xfs_rmap_find_left_neighbor(cur, bno, owner, offset, flags, in xfs_rmap_map_shared()
2215 error = xfs_rmap_lookup_eq(cur, bno + len, len, owner, offset + len, in xfs_rmap_map_shared()
2220 error = xfs_rmap_get_rec(cur, &gtrec, &have_gt); in xfs_rmap_map_shared()
2227 trace_xfs_rmap_find_right_neighbor_result(cur->bc_mp, in xfs_rmap_map_shared()
2228 cur->bc_ag.pag->pag_agno, gtrec.rm_startblock, in xfs_rmap_map_shared()
2262 error = xfs_rmap_delete(cur, gtrec.rm_startblock, in xfs_rmap_map_shared()
2270 error = xfs_rmap_lookup_eq(cur, ltrec.rm_startblock, in xfs_rmap_map_shared()
2280 error = xfs_rmap_update(cur, &ltrec); in xfs_rmap_map_shared()
2296 error = xfs_rmap_delete(cur, gtrec.rm_startblock, in xfs_rmap_map_shared()
2306 error = xfs_rmap_insert(cur, gtrec.rm_startblock, in xfs_rmap_map_shared()
2316 error = xfs_rmap_insert(cur, bno, len, owner, offset, flags); in xfs_rmap_map_shared()
2321 trace_xfs_rmap_map_done(mp, cur->bc_ag.pag->pag_agno, bno, len, in xfs_rmap_map_shared()
2325 trace_xfs_rmap_map_error(cur->bc_mp, in xfs_rmap_map_shared()
2326 cur->bc_ag.pag->pag_agno, error, _RET_IP_); in xfs_rmap_map_shared()
2333 struct xfs_btree_cur *cur, in xfs_rmap_map_raw() argument
2347 return xfs_rmap_map(cur, rmap->rm_startblock, in xfs_rmap_map_raw()
2352 return xfs_rmap_map_shared(cur, rmap->rm_startblock, in xfs_rmap_map_raw()
2366 struct xfs_btree_cur *cur, in xfs_rmap_query_range_helper() argument
2376 fa = xfs_rmap_check_irec(cur, &irec); in xfs_rmap_query_range_helper()
2378 return xfs_rmap_complain_bad_rec(cur, fa, &irec); in xfs_rmap_query_range_helper()
2380 return query->fn(cur, &irec, query->priv); in xfs_rmap_query_range_helper()
2386 struct xfs_btree_cur *cur, in xfs_rmap_query_range() argument
2396 return xfs_btree_query_range(cur, &low_brec, &high_brec, in xfs_rmap_query_range()
2403 struct xfs_btree_cur *cur, in xfs_rmap_query_all() argument
2411 return xfs_btree_query_all(cur, xfs_rmap_query_range_helper, &query); in xfs_rmap_query_all()
2715 struct xfs_btree_cur *cur, in xfs_rmap_has_records() argument
2731 return xfs_btree_has_records(cur, &low, &high, &mask, outcome); in xfs_rmap_has_records()
2793 struct xfs_btree_cur *cur, in xfs_rmap_count_owners_helper() argument
2832 if (xfs_rmap_shareable(cur->bc_mp, &roc->good) ^ in xfs_rmap_count_owners_helper()
2833 xfs_rmap_shareable(cur->bc_mp, &check)) in xfs_rmap_count_owners_helper()
2846 struct xfs_btree_cur *cur, in xfs_rmap_count_owners() argument
2856 error = xfs_rmap_query_range(cur, &roc.low, &roc.high, in xfs_rmap_count_owners()
2877 struct xfs_btree_cur *cur, in xfs_rmap_has_other_keys() argument
2890 error = xfs_rmap_query_range(cur, &roc.low, &roc.high, in xfs_rmap_has_other_keys()