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()
213 struct xfs_btree_cur *cur, in xfs_rmap_get_rec() argument
217 struct xfs_mount *mp = cur->bc_mp; in xfs_rmap_get_rec()
218 struct xfs_perag *pag = cur->bc_ag.pag; in xfs_rmap_get_rec()
222 error = xfs_btree_get_rec(cur, &rec, stat); in xfs_rmap_get_rec()
268 struct xfs_btree_cur *cur, in xfs_rmap_find_left_neighbor_helper() argument
274 trace_xfs_rmap_find_left_neighbor_candidate(cur->bc_mp, in xfs_rmap_find_left_neighbor_helper()
275 cur->bc_ag.pag->pag_agno, rec->rm_startblock, in xfs_rmap_find_left_neighbor_helper()
297 struct xfs_btree_cur *cur, in xfs_rmap_find_left_neighbor() argument
325 trace_xfs_rmap_find_left_neighbor_query(cur->bc_mp, in xfs_rmap_find_left_neighbor()
326 cur->bc_ag.pag->pag_agno, bno, 0, owner, offset, flags); in xfs_rmap_find_left_neighbor()
344 error = xfs_rmap_lookup_le(cur, bno, owner, offset, flags, irec, in xfs_rmap_find_left_neighbor()
349 error = xfs_rmap_find_left_neighbor_helper(cur, irec, &info); in xfs_rmap_find_left_neighbor()
351 error = xfs_rmap_query_range(cur, &info.high, &info.high, in xfs_rmap_find_left_neighbor()
357 trace_xfs_rmap_find_left_neighbor_result(cur->bc_mp, in xfs_rmap_find_left_neighbor()
358 cur->bc_ag.pag->pag_agno, irec->rm_startblock, in xfs_rmap_find_left_neighbor()
367 struct xfs_btree_cur *cur, in xfs_rmap_lookup_le_range_helper() argument
373 trace_xfs_rmap_lookup_le_range_candidate(cur->bc_mp, in xfs_rmap_lookup_le_range_helper()
374 cur->bc_ag.pag->pag_agno, rec->rm_startblock, in xfs_rmap_lookup_le_range_helper()
398 struct xfs_btree_cur *cur, in xfs_rmap_lookup_le_range() argument
421 trace_xfs_rmap_lookup_le_range(cur->bc_mp, cur->bc_ag.pag->pag_agno, in xfs_rmap_lookup_le_range()
440 error = xfs_rmap_lookup_le(cur, bno, owner, offset, flags, irec, in xfs_rmap_lookup_le_range()
445 error = xfs_rmap_lookup_le_range_helper(cur, irec, &info); in xfs_rmap_lookup_le_range()
447 error = xfs_rmap_query_range(cur, &info.high, &info.high, in xfs_rmap_lookup_le_range()
453 trace_xfs_rmap_lookup_le_range_result(cur->bc_mp, in xfs_rmap_lookup_le_range()
454 cur->bc_ag.pag->pag_agno, irec->rm_startblock, in xfs_rmap_lookup_le_range()
539 struct xfs_btree_cur *cur, in xfs_rmap_unmap() argument
545 struct xfs_mount *mp = cur->bc_mp; in xfs_rmap_unmap()
560 trace_xfs_rmap_unmap(mp, cur->bc_ag.pag->pag_agno, bno, len, in xfs_rmap_unmap()
568 error = xfs_rmap_lookup_le(cur, bno, owner, offset, flags, &ltrec, &i); in xfs_rmap_unmap()
576 trace_xfs_rmap_lookup_le_range_result(cur->bc_mp, in xfs_rmap_unmap()
577 cur->bc_ag.pag->pag_agno, ltrec.rm_startblock, in xfs_rmap_unmap()
610 error = xfs_btree_increment(cur, 0, &i); in xfs_rmap_unmap()
615 error = xfs_rmap_get_rec(cur, &rtrec, &i); in xfs_rmap_unmap()
643 trace_xfs_rmap_delete(mp, cur->bc_ag.pag->pag_agno, in xfs_rmap_unmap()
647 error = xfs_btree_delete(cur, &i); in xfs_rmap_unmap()
669 error = xfs_rmap_update(cur, &ltrec); in xfs_rmap_unmap()
684 error = xfs_rmap_update(cur, &ltrec); in xfs_rmap_unmap()
704 error = xfs_rmap_update(cur, &ltrec); in xfs_rmap_unmap()
708 error = xfs_btree_increment(cur, 0, &i); in xfs_rmap_unmap()
712 cur->bc_rec.r.rm_startblock = bno + len; in xfs_rmap_unmap()
713 cur->bc_rec.r.rm_blockcount = orig_len - len - in xfs_rmap_unmap()
715 cur->bc_rec.r.rm_owner = ltrec.rm_owner; in xfs_rmap_unmap()
717 cur->bc_rec.r.rm_offset = 0; in xfs_rmap_unmap()
719 cur->bc_rec.r.rm_offset = offset + len; in xfs_rmap_unmap()
720 cur->bc_rec.r.rm_flags = flags; in xfs_rmap_unmap()
721 trace_xfs_rmap_insert(mp, cur->bc_ag.pag->pag_agno, in xfs_rmap_unmap()
722 cur->bc_rec.r.rm_startblock, in xfs_rmap_unmap()
723 cur->bc_rec.r.rm_blockcount, in xfs_rmap_unmap()
724 cur->bc_rec.r.rm_owner, in xfs_rmap_unmap()
725 cur->bc_rec.r.rm_offset, in xfs_rmap_unmap()
726 cur->bc_rec.r.rm_flags); in xfs_rmap_unmap()
727 error = xfs_btree_insert(cur, &i); in xfs_rmap_unmap()
733 trace_xfs_rmap_unmap_done(mp, cur->bc_ag.pag->pag_agno, bno, len, in xfs_rmap_unmap()
737 trace_xfs_rmap_unmap_error(mp, cur->bc_ag.pag->pag_agno, in xfs_rmap_unmap()
755 struct xfs_btree_cur *cur; in xfs_rmap_free() local
761 cur = xfs_rmapbt_init_cursor(mp, tp, agbp, pag); in xfs_rmap_free()
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()
804 struct xfs_btree_cur *cur, in xfs_rmap_map() argument
810 struct xfs_mount *mp = cur->bc_mp; in xfs_rmap_map()
828 trace_xfs_rmap_map(mp, cur->bc_ag.pag->pag_agno, bno, len, in xfs_rmap_map()
837 error = xfs_rmap_lookup_le(cur, bno, owner, offset, flags, &ltrec, in xfs_rmap_map()
842 trace_xfs_rmap_lookup_le_range_result(cur->bc_mp, in xfs_rmap_map()
843 cur->bc_ag.pag->pag_agno, ltrec.rm_startblock, in xfs_rmap_map()
863 error = xfs_btree_increment(cur, 0, &have_gt); in xfs_rmap_map()
867 error = xfs_rmap_get_rec(cur, &gtrec, &have_gt); in xfs_rmap_map()
878 trace_xfs_rmap_find_right_neighbor_result(cur->bc_mp, in xfs_rmap_map()
879 cur->bc_ag.pag->pag_agno, gtrec.rm_startblock, in xfs_rmap_map()
918 trace_xfs_rmap_delete(mp, cur->bc_ag.pag->pag_agno, in xfs_rmap_map()
924 error = xfs_btree_delete(cur, &i); in xfs_rmap_map()
934 error = xfs_btree_decrement(cur, 0, &have_gt); in xfs_rmap_map()
937 error = xfs_rmap_update(cur, &ltrec); in xfs_rmap_map()
956 error = xfs_rmap_update(cur, &gtrec); in xfs_rmap_map()
964 cur->bc_rec.r.rm_startblock = bno; in xfs_rmap_map()
965 cur->bc_rec.r.rm_blockcount = len; in xfs_rmap_map()
966 cur->bc_rec.r.rm_owner = owner; in xfs_rmap_map()
967 cur->bc_rec.r.rm_offset = offset; in xfs_rmap_map()
968 cur->bc_rec.r.rm_flags = flags; in xfs_rmap_map()
969 trace_xfs_rmap_insert(mp, cur->bc_ag.pag->pag_agno, bno, len, in xfs_rmap_map()
971 error = xfs_btree_insert(cur, &i); in xfs_rmap_map()
980 trace_xfs_rmap_map_done(mp, cur->bc_ag.pag->pag_agno, bno, len, in xfs_rmap_map()
984 trace_xfs_rmap_map_error(mp, cur->bc_ag.pag->pag_agno, in xfs_rmap_map()
1002 struct xfs_btree_cur *cur; in xfs_rmap_alloc() local
1008 cur = xfs_rmapbt_init_cursor(mp, tp, agbp, pag); in xfs_rmap_alloc()
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()
1033 struct xfs_btree_cur *cur, in xfs_rmap_convert() argument
1039 struct xfs_mount *mp = cur->bc_mp; in xfs_rmap_convert()
1058 trace_xfs_rmap_convert(mp, cur->bc_ag.pag->pag_agno, bno, len, in xfs_rmap_convert()
1066 error = xfs_rmap_lookup_le(cur, bno, owner, offset, oldext, &PREV, &i); in xfs_rmap_convert()
1074 trace_xfs_rmap_lookup_le_range_result(cur->bc_mp, in xfs_rmap_convert()
1075 cur->bc_ag.pag->pag_agno, PREV.rm_startblock, in xfs_rmap_convert()
1098 error = xfs_btree_decrement(cur, 0, &i); in xfs_rmap_convert()
1103 error = xfs_rmap_get_rec(cur, &LEFT, &i); in xfs_rmap_convert()
1116 trace_xfs_rmap_find_left_neighbor_result(cur->bc_mp, in xfs_rmap_convert()
1117 cur->bc_ag.pag->pag_agno, LEFT.rm_startblock, in xfs_rmap_convert()
1131 error = xfs_btree_increment(cur, 0, &i); in xfs_rmap_convert()
1138 error = xfs_btree_increment(cur, 0, &i); in xfs_rmap_convert()
1143 error = xfs_rmap_get_rec(cur, &RIGHT, &i); in xfs_rmap_convert()
1154 trace_xfs_rmap_find_right_neighbor_result(cur->bc_mp, in xfs_rmap_convert()
1155 cur->bc_ag.pag->pag_agno, RIGHT.rm_startblock, in xfs_rmap_convert()
1173 trace_xfs_rmap_convert_state(mp, cur->bc_ag.pag->pag_agno, state, in xfs_rmap_convert()
1177 error = xfs_rmap_lookup_le(cur, bno, owner, offset, oldext, NULL, &i); in xfs_rmap_convert()
1196 error = xfs_btree_increment(cur, 0, &i); in xfs_rmap_convert()
1203 trace_xfs_rmap_delete(mp, cur->bc_ag.pag->pag_agno, in xfs_rmap_convert()
1207 error = xfs_btree_delete(cur, &i); in xfs_rmap_convert()
1214 error = xfs_btree_decrement(cur, 0, &i); in xfs_rmap_convert()
1221 trace_xfs_rmap_delete(mp, cur->bc_ag.pag->pag_agno, in xfs_rmap_convert()
1225 error = xfs_btree_delete(cur, &i); in xfs_rmap_convert()
1232 error = xfs_btree_decrement(cur, 0, &i); in xfs_rmap_convert()
1241 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1251 trace_xfs_rmap_delete(mp, cur->bc_ag.pag->pag_agno, in xfs_rmap_convert()
1255 error = xfs_btree_delete(cur, &i); in xfs_rmap_convert()
1262 error = xfs_btree_decrement(cur, 0, &i); in xfs_rmap_convert()
1271 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1281 error = xfs_btree_increment(cur, 0, &i); in xfs_rmap_convert()
1288 trace_xfs_rmap_delete(mp, cur->bc_ag.pag->pag_agno, in xfs_rmap_convert()
1292 error = xfs_btree_delete(cur, &i); in xfs_rmap_convert()
1299 error = xfs_btree_decrement(cur, 0, &i); in xfs_rmap_convert()
1309 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1322 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1336 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1339 error = xfs_btree_decrement(cur, 0, &i); in xfs_rmap_convert()
1344 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1358 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1366 cur->bc_rec.r = NEW; in xfs_rmap_convert()
1367 trace_xfs_rmap_insert(mp, cur->bc_ag.pag->pag_agno, bno, in xfs_rmap_convert()
1369 error = xfs_btree_insert(cur, &i); in xfs_rmap_convert()
1385 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1388 error = xfs_btree_increment(cur, 0, &i); in xfs_rmap_convert()
1395 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1407 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1410 error = xfs_rmap_lookup_eq(cur, bno, len, owner, offset, in xfs_rmap_convert()
1423 cur->bc_rec.r = NEW; in xfs_rmap_convert()
1424 trace_xfs_rmap_insert(mp, cur->bc_ag.pag->pag_agno, bno, in xfs_rmap_convert()
1426 error = xfs_btree_insert(cur, &i); in xfs_rmap_convert()
1448 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1454 cur->bc_rec.r = NEW; in xfs_rmap_convert()
1455 trace_xfs_rmap_insert(mp, cur->bc_ag.pag->pag_agno, in xfs_rmap_convert()
1459 error = xfs_btree_insert(cur, &i); in xfs_rmap_convert()
1471 error = xfs_rmap_lookup_eq(cur, bno, len, owner, offset, in xfs_rmap_convert()
1480 cur->bc_rec.r.rm_flags &= ~XFS_RMAP_UNWRITTEN; in xfs_rmap_convert()
1481 cur->bc_rec.r.rm_flags |= newext; in xfs_rmap_convert()
1482 trace_xfs_rmap_insert(mp, cur->bc_ag.pag->pag_agno, bno, len, in xfs_rmap_convert()
1484 error = xfs_btree_insert(cur, &i); in xfs_rmap_convert()
1506 trace_xfs_rmap_convert_done(mp, cur->bc_ag.pag->pag_agno, bno, len, in xfs_rmap_convert()
1510 trace_xfs_rmap_convert_error(cur->bc_mp, in xfs_rmap_convert()
1511 cur->bc_ag.pag->pag_agno, error, _RET_IP_); in xfs_rmap_convert()
1522 struct xfs_btree_cur *cur, in xfs_rmap_convert_shared() argument
1528 struct xfs_mount *mp = cur->bc_mp; in xfs_rmap_convert_shared()
1547 trace_xfs_rmap_convert(mp, cur->bc_ag.pag->pag_agno, bno, len, in xfs_rmap_convert_shared()
1555 error = xfs_rmap_lookup_le_range(cur, bno, owner, offset, oldext, in xfs_rmap_convert_shared()
1579 error = xfs_rmap_find_left_neighbor(cur, bno, owner, offset, newext, in xfs_rmap_convert_shared()
1596 error = xfs_rmap_lookup_eq(cur, bno + len, len, owner, offset + len, in xfs_rmap_convert_shared()
1602 error = xfs_rmap_get_rec(cur, &RIGHT, &i); in xfs_rmap_convert_shared()
1613 trace_xfs_rmap_find_right_neighbor_result(cur->bc_mp, in xfs_rmap_convert_shared()
1614 cur->bc_ag.pag->pag_agno, RIGHT.rm_startblock, in xfs_rmap_convert_shared()
1630 trace_xfs_rmap_convert_state(mp, cur->bc_ag.pag->pag_agno, state, in xfs_rmap_convert_shared()
1643 error = xfs_rmap_delete(cur, RIGHT.rm_startblock, in xfs_rmap_convert_shared()
1648 error = xfs_rmap_delete(cur, PREV.rm_startblock, in xfs_rmap_convert_shared()
1654 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1664 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1674 error = xfs_rmap_delete(cur, PREV.rm_startblock, in xfs_rmap_convert_shared()
1680 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1690 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1700 error = xfs_rmap_delete(cur, RIGHT.rm_startblock, in xfs_rmap_convert_shared()
1706 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1717 error = xfs_rmap_update(cur, &NEW); 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()
1750 error = xfs_rmap_delete(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1758 error = xfs_rmap_insert(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1764 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1774 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1785 error = xfs_rmap_delete(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1793 error = xfs_rmap_insert(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1798 error = xfs_rmap_insert(cur, bno, len, owner, offset, newext); in xfs_rmap_convert_shared()
1809 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1819 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1823 error = xfs_rmap_delete(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1831 error = xfs_rmap_insert(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1844 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1854 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1857 error = xfs_rmap_insert(cur, bno, len, owner, offset, newext); in xfs_rmap_convert_shared()
1875 error = xfs_rmap_insert(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1882 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1892 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1901 error = xfs_rmap_insert(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1921 trace_xfs_rmap_convert_done(mp, cur->bc_ag.pag->pag_agno, bno, len, in xfs_rmap_convert_shared()
1925 trace_xfs_rmap_convert_error(cur->bc_mp, in xfs_rmap_convert_shared()
1926 cur->bc_ag.pag->pag_agno, error, _RET_IP_); in xfs_rmap_convert_shared()
1946 struct xfs_btree_cur *cur, in xfs_rmap_unmap_shared() argument
1952 struct xfs_mount *mp = cur->bc_mp; in xfs_rmap_unmap_shared()
1964 trace_xfs_rmap_unmap(mp, cur->bc_ag.pag->pag_agno, bno, len, in xfs_rmap_unmap_shared()
1972 error = xfs_rmap_lookup_le_range(cur, bno, owner, offset, flags, in xfs_rmap_unmap_shared()
2017 error = xfs_rmap_delete(cur, ltrec.rm_startblock, in xfs_rmap_unmap_shared()
2035 error = xfs_rmap_delete(cur, ltrec.rm_startblock, in xfs_rmap_unmap_shared()
2045 error = xfs_rmap_insert(cur, ltrec.rm_startblock, in xfs_rmap_unmap_shared()
2061 error = xfs_rmap_lookup_eq(cur, ltrec.rm_startblock, in xfs_rmap_unmap_shared()
2071 error = xfs_rmap_update(cur, &ltrec); in xfs_rmap_unmap_shared()
2090 error = xfs_rmap_lookup_eq(cur, ltrec.rm_startblock, in xfs_rmap_unmap_shared()
2100 error = xfs_rmap_update(cur, &ltrec); in xfs_rmap_unmap_shared()
2105 error = xfs_rmap_insert(cur, bno + len, in xfs_rmap_unmap_shared()
2113 trace_xfs_rmap_unmap_done(mp, cur->bc_ag.pag->pag_agno, bno, len, in xfs_rmap_unmap_shared()
2117 trace_xfs_rmap_unmap_error(cur->bc_mp, in xfs_rmap_unmap_shared()
2118 cur->bc_ag.pag->pag_agno, error, _RET_IP_); in xfs_rmap_unmap_shared()
2133 struct xfs_btree_cur *cur, in xfs_rmap_map_shared() argument
2139 struct xfs_mount *mp = cur->bc_mp; in xfs_rmap_map_shared()
2153 trace_xfs_rmap_map(mp, cur->bc_ag.pag->pag_agno, bno, len, in xfs_rmap_map_shared()
2157 error = xfs_rmap_find_left_neighbor(cur, bno, owner, offset, flags, in xfs_rmap_map_shared()
2166 error = xfs_rmap_lookup_eq(cur, bno + len, len, owner, offset + len, in xfs_rmap_map_shared()
2171 error = xfs_rmap_get_rec(cur, &gtrec, &have_gt); in xfs_rmap_map_shared()
2178 trace_xfs_rmap_find_right_neighbor_result(cur->bc_mp, in xfs_rmap_map_shared()
2179 cur->bc_ag.pag->pag_agno, gtrec.rm_startblock, in xfs_rmap_map_shared()
2213 error = xfs_rmap_delete(cur, gtrec.rm_startblock, in xfs_rmap_map_shared()
2221 error = xfs_rmap_lookup_eq(cur, ltrec.rm_startblock, in xfs_rmap_map_shared()
2231 error = xfs_rmap_update(cur, &ltrec); in xfs_rmap_map_shared()
2247 error = xfs_rmap_delete(cur, gtrec.rm_startblock, in xfs_rmap_map_shared()
2257 error = xfs_rmap_insert(cur, gtrec.rm_startblock, in xfs_rmap_map_shared()
2267 error = xfs_rmap_insert(cur, bno, len, owner, offset, flags); in xfs_rmap_map_shared()
2272 trace_xfs_rmap_map_done(mp, cur->bc_ag.pag->pag_agno, bno, len, in xfs_rmap_map_shared()
2276 trace_xfs_rmap_map_error(cur->bc_mp, in xfs_rmap_map_shared()
2277 cur->bc_ag.pag->pag_agno, error, _RET_IP_); in xfs_rmap_map_shared()
2284 struct xfs_btree_cur *cur, in xfs_rmap_map_raw() argument
2298 return xfs_rmap_map(cur, rmap->rm_startblock, in xfs_rmap_map_raw()
2303 return xfs_rmap_map_shared(cur, rmap->rm_startblock, in xfs_rmap_map_raw()
2317 struct xfs_btree_cur *cur, in xfs_rmap_query_range_helper() argument
2328 return query->fn(cur, &irec, query->priv); in xfs_rmap_query_range_helper()
2334 struct xfs_btree_cur *cur, in xfs_rmap_query_range() argument
2348 return xfs_btree_query_range(cur, &low_brec, &high_brec, in xfs_rmap_query_range()
2355 struct xfs_btree_cur *cur, in xfs_rmap_query_all() argument
2363 return xfs_btree_query_all(cur, xfs_rmap_query_range_helper, &query); in xfs_rmap_query_all()
2672 struct xfs_btree_cur *cur, in xfs_rmap_has_record() argument
2685 return xfs_btree_has_record(cur, &low, &high, exists); in xfs_rmap_has_record()
2697 struct xfs_btree_cur *cur, in xfs_rmap_record_exists() argument
2714 error = xfs_rmap_lookup_le(cur, bno, owner, offset, flags, &irec, in xfs_rmap_record_exists()
2737 struct xfs_btree_cur *cur, in xfs_rmap_has_other_keys_helper() argument
2755 struct xfs_btree_cur *cur, in xfs_rmap_has_other_keys() argument
2773 error = xfs_rmap_query_range(cur, &low, &high, in xfs_rmap_has_other_keys()