• Home
  • Raw
  • Download

Lines Matching refs:cur

31 	struct xfs_btree_cur	*cur,  in xfs_rmap_lookup_le()  argument
39 cur->bc_rec.r.rm_startblock = bno; in xfs_rmap_lookup_le()
40 cur->bc_rec.r.rm_blockcount = len; in xfs_rmap_lookup_le()
41 cur->bc_rec.r.rm_owner = owner; in xfs_rmap_lookup_le()
42 cur->bc_rec.r.rm_offset = offset; in xfs_rmap_lookup_le()
43 cur->bc_rec.r.rm_flags = flags; in xfs_rmap_lookup_le()
44 return xfs_btree_lookup(cur, XFS_LOOKUP_LE, stat); in xfs_rmap_lookup_le()
53 struct xfs_btree_cur *cur, in xfs_rmap_lookup_eq() argument
61 cur->bc_rec.r.rm_startblock = bno; in xfs_rmap_lookup_eq()
62 cur->bc_rec.r.rm_blockcount = len; in xfs_rmap_lookup_eq()
63 cur->bc_rec.r.rm_owner = owner; in xfs_rmap_lookup_eq()
64 cur->bc_rec.r.rm_offset = offset; in xfs_rmap_lookup_eq()
65 cur->bc_rec.r.rm_flags = flags; in xfs_rmap_lookup_eq()
66 return xfs_btree_lookup(cur, XFS_LOOKUP_EQ, stat); in xfs_rmap_lookup_eq()
76 struct xfs_btree_cur *cur, in xfs_rmap_update() argument
82 trace_xfs_rmap_update(cur->bc_mp, cur->bc_private.a.agno, in xfs_rmap_update()
91 error = xfs_btree_update(cur, &rec); in xfs_rmap_update()
93 trace_xfs_rmap_update_error(cur->bc_mp, in xfs_rmap_update()
94 cur->bc_private.a.agno, error, _RET_IP_); in xfs_rmap_update()
183 struct xfs_btree_cur *cur, in xfs_rmap_get_rec() argument
187 struct xfs_mount *mp = cur->bc_mp; in xfs_rmap_get_rec()
188 xfs_agnumber_t agno = cur->bc_private.a.agno; in xfs_rmap_get_rec()
192 error = xfs_btree_get_rec(cur, &rec, stat); in xfs_rmap_get_rec()
244 struct xfs_btree_cur *cur, in xfs_rmap_find_left_neighbor_helper() argument
250 trace_xfs_rmap_find_left_neighbor_candidate(cur->bc_mp, in xfs_rmap_find_left_neighbor_helper()
251 cur->bc_private.a.agno, rec->rm_startblock, in xfs_rmap_find_left_neighbor_helper()
274 struct xfs_btree_cur *cur, in xfs_rmap_find_left_neighbor() argument
302 trace_xfs_rmap_find_left_neighbor_query(cur->bc_mp, in xfs_rmap_find_left_neighbor()
303 cur->bc_private.a.agno, bno, 0, owner, offset, flags); in xfs_rmap_find_left_neighbor()
305 error = xfs_rmap_query_range(cur, &info.high, &info.high, in xfs_rmap_find_left_neighbor()
310 trace_xfs_rmap_find_left_neighbor_result(cur->bc_mp, in xfs_rmap_find_left_neighbor()
311 cur->bc_private.a.agno, irec->rm_startblock, in xfs_rmap_find_left_neighbor()
320 struct xfs_btree_cur *cur, in xfs_rmap_lookup_le_range_helper() argument
326 trace_xfs_rmap_lookup_le_range_candidate(cur->bc_mp, in xfs_rmap_lookup_le_range_helper()
327 cur->bc_private.a.agno, rec->rm_startblock, in xfs_rmap_lookup_le_range_helper()
352 struct xfs_btree_cur *cur, in xfs_rmap_lookup_le_range() argument
375 trace_xfs_rmap_lookup_le_range(cur->bc_mp, in xfs_rmap_lookup_le_range()
376 cur->bc_private.a.agno, bno, 0, owner, offset, flags); in xfs_rmap_lookup_le_range()
377 error = xfs_rmap_query_range(cur, &info.high, &info.high, in xfs_rmap_lookup_le_range()
382 trace_xfs_rmap_lookup_le_range_result(cur->bc_mp, in xfs_rmap_lookup_le_range()
383 cur->bc_private.a.agno, irec->rm_startblock, in xfs_rmap_lookup_le_range()
453 struct xfs_btree_cur *cur, in xfs_rmap_unmap() argument
459 struct xfs_mount *mp = cur->bc_mp; in xfs_rmap_unmap()
474 trace_xfs_rmap_unmap(mp, cur->bc_private.a.agno, bno, len, in xfs_rmap_unmap()
482 error = xfs_rmap_lookup_le(cur, bno, len, owner, offset, flags, &i); in xfs_rmap_unmap()
487 error = xfs_rmap_get_rec(cur, &ltrec, &i); in xfs_rmap_unmap()
491 trace_xfs_rmap_lookup_le_range_result(cur->bc_mp, in xfs_rmap_unmap()
492 cur->bc_private.a.agno, ltrec.rm_startblock, in xfs_rmap_unmap()
521 error = xfs_btree_increment(cur, 0, &i); in xfs_rmap_unmap()
526 error = xfs_rmap_get_rec(cur, &rtrec, &i); in xfs_rmap_unmap()
547 trace_xfs_rmap_delete(mp, cur->bc_private.a.agno, in xfs_rmap_unmap()
551 error = xfs_btree_delete(cur, &i); in xfs_rmap_unmap()
570 error = xfs_rmap_update(cur, &ltrec); in xfs_rmap_unmap()
585 error = xfs_rmap_update(cur, &ltrec); in xfs_rmap_unmap()
605 error = xfs_rmap_update(cur, &ltrec); in xfs_rmap_unmap()
609 error = xfs_btree_increment(cur, 0, &i); in xfs_rmap_unmap()
613 cur->bc_rec.r.rm_startblock = bno + len; in xfs_rmap_unmap()
614 cur->bc_rec.r.rm_blockcount = orig_len - len - in xfs_rmap_unmap()
616 cur->bc_rec.r.rm_owner = ltrec.rm_owner; in xfs_rmap_unmap()
618 cur->bc_rec.r.rm_offset = 0; in xfs_rmap_unmap()
620 cur->bc_rec.r.rm_offset = offset + len; in xfs_rmap_unmap()
621 cur->bc_rec.r.rm_flags = flags; in xfs_rmap_unmap()
622 trace_xfs_rmap_insert(mp, cur->bc_private.a.agno, in xfs_rmap_unmap()
623 cur->bc_rec.r.rm_startblock, in xfs_rmap_unmap()
624 cur->bc_rec.r.rm_blockcount, in xfs_rmap_unmap()
625 cur->bc_rec.r.rm_owner, in xfs_rmap_unmap()
626 cur->bc_rec.r.rm_offset, in xfs_rmap_unmap()
627 cur->bc_rec.r.rm_flags); in xfs_rmap_unmap()
628 error = xfs_btree_insert(cur, &i); in xfs_rmap_unmap()
634 trace_xfs_rmap_unmap_done(mp, cur->bc_private.a.agno, bno, len, in xfs_rmap_unmap()
638 trace_xfs_rmap_unmap_error(mp, cur->bc_private.a.agno, in xfs_rmap_unmap()
656 struct xfs_btree_cur *cur; in xfs_rmap_free() local
662 cur = xfs_rmapbt_init_cursor(mp, tp, agbp, agno); in xfs_rmap_free()
664 error = xfs_rmap_unmap(cur, bno, len, false, oinfo); in xfs_rmap_free()
666 xfs_btree_del_cursor(cur, error); in xfs_rmap_free()
705 struct xfs_btree_cur *cur, in xfs_rmap_map() argument
711 struct xfs_mount *mp = cur->bc_mp; in xfs_rmap_map()
729 trace_xfs_rmap_map(mp, cur->bc_private.a.agno, bno, len, in xfs_rmap_map()
738 error = xfs_rmap_lookup_le(cur, bno, len, owner, offset, flags, in xfs_rmap_map()
743 error = xfs_rmap_get_rec(cur, &ltrec, &have_lt); in xfs_rmap_map()
747 trace_xfs_rmap_lookup_le_range_result(cur->bc_mp, in xfs_rmap_map()
748 cur->bc_private.a.agno, ltrec.rm_startblock, in xfs_rmap_map()
765 error = xfs_btree_increment(cur, 0, &have_gt); in xfs_rmap_map()
769 error = xfs_rmap_get_rec(cur, &gtrec, &have_gt); in xfs_rmap_map()
775 trace_xfs_rmap_find_right_neighbor_result(cur->bc_mp, in xfs_rmap_map()
776 cur->bc_private.a.agno, gtrec.rm_startblock, in xfs_rmap_map()
815 trace_xfs_rmap_delete(mp, cur->bc_private.a.agno, in xfs_rmap_map()
821 error = xfs_btree_delete(cur, &i); in xfs_rmap_map()
828 error = xfs_btree_decrement(cur, 0, &have_gt); in xfs_rmap_map()
831 error = xfs_rmap_update(cur, &ltrec); in xfs_rmap_map()
850 error = xfs_rmap_update(cur, &gtrec); in xfs_rmap_map()
858 cur->bc_rec.r.rm_startblock = bno; in xfs_rmap_map()
859 cur->bc_rec.r.rm_blockcount = len; in xfs_rmap_map()
860 cur->bc_rec.r.rm_owner = owner; in xfs_rmap_map()
861 cur->bc_rec.r.rm_offset = offset; in xfs_rmap_map()
862 cur->bc_rec.r.rm_flags = flags; in xfs_rmap_map()
863 trace_xfs_rmap_insert(mp, cur->bc_private.a.agno, bno, len, in xfs_rmap_map()
865 error = xfs_btree_insert(cur, &i); in xfs_rmap_map()
871 trace_xfs_rmap_map_done(mp, cur->bc_private.a.agno, bno, len, in xfs_rmap_map()
875 trace_xfs_rmap_map_error(mp, cur->bc_private.a.agno, in xfs_rmap_map()
893 struct xfs_btree_cur *cur; in xfs_rmap_alloc() local
899 cur = xfs_rmapbt_init_cursor(mp, tp, agbp, agno); in xfs_rmap_alloc()
900 error = xfs_rmap_map(cur, bno, len, false, oinfo); in xfs_rmap_alloc()
902 xfs_btree_del_cursor(cur, error); in xfs_rmap_alloc()
924 struct xfs_btree_cur *cur, in xfs_rmap_convert() argument
930 struct xfs_mount *mp = cur->bc_mp; in xfs_rmap_convert()
949 trace_xfs_rmap_convert(mp, cur->bc_private.a.agno, bno, len, in xfs_rmap_convert()
957 error = xfs_rmap_lookup_le(cur, bno, len, owner, offset, oldext, &i); in xfs_rmap_convert()
962 error = xfs_rmap_get_rec(cur, &PREV, &i); in xfs_rmap_convert()
966 trace_xfs_rmap_lookup_le_range_result(cur->bc_mp, in xfs_rmap_convert()
967 cur->bc_private.a.agno, PREV.rm_startblock, in xfs_rmap_convert()
990 error = xfs_btree_decrement(cur, 0, &i); in xfs_rmap_convert()
995 error = xfs_rmap_get_rec(cur, &LEFT, &i); in xfs_rmap_convert()
1002 trace_xfs_rmap_find_left_neighbor_result(cur->bc_mp, in xfs_rmap_convert()
1003 cur->bc_private.a.agno, LEFT.rm_startblock, in xfs_rmap_convert()
1017 error = xfs_btree_increment(cur, 0, &i); in xfs_rmap_convert()
1021 error = xfs_btree_increment(cur, 0, &i); in xfs_rmap_convert()
1026 error = xfs_rmap_get_rec(cur, &RIGHT, &i); in xfs_rmap_convert()
1032 trace_xfs_rmap_find_right_neighbor_result(cur->bc_mp, in xfs_rmap_convert()
1033 cur->bc_private.a.agno, RIGHT.rm_startblock, in xfs_rmap_convert()
1051 trace_xfs_rmap_convert_state(mp, cur->bc_private.a.agno, state, in xfs_rmap_convert()
1055 error = xfs_rmap_lookup_le(cur, bno, len, owner, offset, oldext, &i); in xfs_rmap_convert()
1071 error = xfs_btree_increment(cur, 0, &i); in xfs_rmap_convert()
1075 trace_xfs_rmap_delete(mp, cur->bc_private.a.agno, in xfs_rmap_convert()
1079 error = xfs_btree_delete(cur, &i); in xfs_rmap_convert()
1083 error = xfs_btree_decrement(cur, 0, &i); in xfs_rmap_convert()
1087 trace_xfs_rmap_delete(mp, cur->bc_private.a.agno, in xfs_rmap_convert()
1091 error = xfs_btree_delete(cur, &i); in xfs_rmap_convert()
1095 error = xfs_btree_decrement(cur, 0, &i); in xfs_rmap_convert()
1101 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1111 trace_xfs_rmap_delete(mp, cur->bc_private.a.agno, in xfs_rmap_convert()
1115 error = xfs_btree_delete(cur, &i); in xfs_rmap_convert()
1119 error = xfs_btree_decrement(cur, 0, &i); in xfs_rmap_convert()
1125 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1135 error = xfs_btree_increment(cur, 0, &i); in xfs_rmap_convert()
1139 trace_xfs_rmap_delete(mp, cur->bc_private.a.agno, in xfs_rmap_convert()
1143 error = xfs_btree_delete(cur, &i); in xfs_rmap_convert()
1147 error = xfs_btree_decrement(cur, 0, &i); in xfs_rmap_convert()
1154 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1167 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1181 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1184 error = xfs_btree_decrement(cur, 0, &i); in xfs_rmap_convert()
1189 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1203 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1211 cur->bc_rec.r = NEW; in xfs_rmap_convert()
1212 trace_xfs_rmap_insert(mp, cur->bc_private.a.agno, bno, in xfs_rmap_convert()
1214 error = xfs_btree_insert(cur, &i); in xfs_rmap_convert()
1227 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1230 error = xfs_btree_increment(cur, 0, &i); in xfs_rmap_convert()
1237 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1249 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1252 error = xfs_rmap_lookup_eq(cur, bno, len, owner, offset, in xfs_rmap_convert()
1262 cur->bc_rec.r = NEW; in xfs_rmap_convert()
1263 trace_xfs_rmap_insert(mp, cur->bc_private.a.agno, bno, in xfs_rmap_convert()
1265 error = xfs_btree_insert(cur, &i); in xfs_rmap_convert()
1284 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert()
1290 cur->bc_rec.r = NEW; in xfs_rmap_convert()
1291 trace_xfs_rmap_insert(mp, cur->bc_private.a.agno, in xfs_rmap_convert()
1295 error = xfs_btree_insert(cur, &i); in xfs_rmap_convert()
1304 error = xfs_rmap_lookup_eq(cur, bno, len, owner, offset, in xfs_rmap_convert()
1310 cur->bc_rec.r.rm_flags &= ~XFS_RMAP_UNWRITTEN; in xfs_rmap_convert()
1311 cur->bc_rec.r.rm_flags |= newext; in xfs_rmap_convert()
1312 trace_xfs_rmap_insert(mp, cur->bc_private.a.agno, bno, len, in xfs_rmap_convert()
1314 error = xfs_btree_insert(cur, &i); in xfs_rmap_convert()
1333 trace_xfs_rmap_convert_done(mp, cur->bc_private.a.agno, bno, len, in xfs_rmap_convert()
1337 trace_xfs_rmap_convert_error(cur->bc_mp, in xfs_rmap_convert()
1338 cur->bc_private.a.agno, error, _RET_IP_); in xfs_rmap_convert()
1349 struct xfs_btree_cur *cur, in xfs_rmap_convert_shared() argument
1355 struct xfs_mount *mp = cur->bc_mp; in xfs_rmap_convert_shared()
1374 trace_xfs_rmap_convert(mp, cur->bc_private.a.agno, bno, len, in xfs_rmap_convert_shared()
1382 error = xfs_rmap_lookup_le_range(cur, bno, owner, offset, flags, in xfs_rmap_convert_shared()
1403 error = xfs_rmap_find_left_neighbor(cur, bno, owner, offset, newext, in xfs_rmap_convert_shared()
1417 error = xfs_rmap_lookup_eq(cur, bno + len, len, owner, offset + len, in xfs_rmap_convert_shared()
1423 error = xfs_rmap_get_rec(cur, &RIGHT, &i); in xfs_rmap_convert_shared()
1429 trace_xfs_rmap_find_right_neighbor_result(cur->bc_mp, in xfs_rmap_convert_shared()
1430 cur->bc_private.a.agno, RIGHT.rm_startblock, in xfs_rmap_convert_shared()
1446 trace_xfs_rmap_convert_state(mp, cur->bc_private.a.agno, state, in xfs_rmap_convert_shared()
1459 error = xfs_rmap_delete(cur, RIGHT.rm_startblock, in xfs_rmap_convert_shared()
1464 error = xfs_rmap_delete(cur, PREV.rm_startblock, in xfs_rmap_convert_shared()
1470 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1477 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1487 error = xfs_rmap_delete(cur, PREV.rm_startblock, in xfs_rmap_convert_shared()
1493 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1500 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1510 error = xfs_rmap_delete(cur, RIGHT.rm_startblock, in xfs_rmap_convert_shared()
1516 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1524 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1536 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1543 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1554 error = xfs_rmap_delete(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1562 error = xfs_rmap_insert(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1568 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1575 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1586 error = xfs_rmap_delete(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1594 error = xfs_rmap_insert(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1599 error = xfs_rmap_insert(cur, bno, len, owner, offset, newext); in xfs_rmap_convert_shared()
1610 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1617 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1621 error = xfs_rmap_delete(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1629 error = xfs_rmap_insert(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1642 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1649 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1652 error = xfs_rmap_insert(cur, bno, len, owner, offset, newext); in xfs_rmap_convert_shared()
1670 error = xfs_rmap_insert(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1677 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1684 error = xfs_rmap_update(cur, &NEW); in xfs_rmap_convert_shared()
1693 error = xfs_rmap_insert(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1713 trace_xfs_rmap_convert_done(mp, cur->bc_private.a.agno, bno, len, in xfs_rmap_convert_shared()
1717 trace_xfs_rmap_convert_error(cur->bc_mp, in xfs_rmap_convert_shared()
1718 cur->bc_private.a.agno, error, _RET_IP_); in xfs_rmap_convert_shared()
1738 struct xfs_btree_cur *cur, in xfs_rmap_unmap_shared() argument
1744 struct xfs_mount *mp = cur->bc_mp; in xfs_rmap_unmap_shared()
1756 trace_xfs_rmap_unmap(mp, cur->bc_private.a.agno, bno, len, in xfs_rmap_unmap_shared()
1764 error = xfs_rmap_lookup_le_range(cur, bno, owner, offset, flags, in xfs_rmap_unmap_shared()
1790 error = xfs_rmap_delete(cur, ltrec.rm_startblock, in xfs_rmap_unmap_shared()
1808 error = xfs_rmap_delete(cur, ltrec.rm_startblock, in xfs_rmap_unmap_shared()
1818 error = xfs_rmap_insert(cur, ltrec.rm_startblock, in xfs_rmap_unmap_shared()
1834 error = xfs_rmap_lookup_eq(cur, ltrec.rm_startblock, in xfs_rmap_unmap_shared()
1841 error = xfs_rmap_update(cur, &ltrec); in xfs_rmap_unmap_shared()
1860 error = xfs_rmap_lookup_eq(cur, ltrec.rm_startblock, in xfs_rmap_unmap_shared()
1867 error = xfs_rmap_update(cur, &ltrec); in xfs_rmap_unmap_shared()
1872 error = xfs_rmap_insert(cur, bno + len, in xfs_rmap_unmap_shared()
1880 trace_xfs_rmap_unmap_done(mp, cur->bc_private.a.agno, bno, len, in xfs_rmap_unmap_shared()
1884 trace_xfs_rmap_unmap_error(cur->bc_mp, in xfs_rmap_unmap_shared()
1885 cur->bc_private.a.agno, error, _RET_IP_); in xfs_rmap_unmap_shared()
1900 struct xfs_btree_cur *cur, in xfs_rmap_map_shared() argument
1906 struct xfs_mount *mp = cur->bc_mp; in xfs_rmap_map_shared()
1920 trace_xfs_rmap_map(mp, cur->bc_private.a.agno, bno, len, in xfs_rmap_map_shared()
1924 error = xfs_rmap_find_left_neighbor(cur, bno, owner, offset, flags, in xfs_rmap_map_shared()
1933 error = xfs_rmap_lookup_eq(cur, bno + len, len, owner, offset + len, in xfs_rmap_map_shared()
1938 error = xfs_rmap_get_rec(cur, &gtrec, &have_gt); in xfs_rmap_map_shared()
1942 trace_xfs_rmap_find_right_neighbor_result(cur->bc_mp, in xfs_rmap_map_shared()
1943 cur->bc_private.a.agno, gtrec.rm_startblock, in xfs_rmap_map_shared()
1977 error = xfs_rmap_delete(cur, gtrec.rm_startblock, in xfs_rmap_map_shared()
1985 error = xfs_rmap_lookup_eq(cur, ltrec.rm_startblock, in xfs_rmap_map_shared()
1992 error = xfs_rmap_update(cur, &ltrec); in xfs_rmap_map_shared()
2008 error = xfs_rmap_delete(cur, gtrec.rm_startblock, in xfs_rmap_map_shared()
2018 error = xfs_rmap_insert(cur, gtrec.rm_startblock, in xfs_rmap_map_shared()
2028 error = xfs_rmap_insert(cur, bno, len, owner, offset, flags); in xfs_rmap_map_shared()
2033 trace_xfs_rmap_map_done(mp, cur->bc_private.a.agno, bno, len, in xfs_rmap_map_shared()
2037 trace_xfs_rmap_map_error(cur->bc_mp, in xfs_rmap_map_shared()
2038 cur->bc_private.a.agno, error, _RET_IP_); in xfs_rmap_map_shared()
2045 struct xfs_btree_cur *cur, in xfs_rmap_map_raw() argument
2059 return xfs_rmap_map(cur, rmap->rm_startblock, in xfs_rmap_map_raw()
2064 return xfs_rmap_map_shared(cur, rmap->rm_startblock, in xfs_rmap_map_raw()
2078 struct xfs_btree_cur *cur, in xfs_rmap_query_range_helper() argument
2089 return query->fn(cur, &irec, query->priv); in xfs_rmap_query_range_helper()
2095 struct xfs_btree_cur *cur, in xfs_rmap_query_range() argument
2109 return xfs_btree_query_range(cur, &low_brec, &high_brec, in xfs_rmap_query_range()
2116 struct xfs_btree_cur *cur, in xfs_rmap_query_all() argument
2124 return xfs_btree_query_all(cur, xfs_rmap_query_range_helper, &query); in xfs_rmap_query_all()
2428 struct xfs_btree_cur *cur, in xfs_rmap_has_record() argument
2441 return xfs_btree_has_record(cur, &low, &high, exists); in xfs_rmap_has_record()
2453 struct xfs_btree_cur *cur, in xfs_rmap_record_exists() argument
2470 error = xfs_rmap_lookup_le(cur, bno, len, owner, offset, flags, in xfs_rmap_record_exists()
2479 error = xfs_rmap_get_rec(cur, &irec, &has_record); in xfs_rmap_record_exists()
2502 struct xfs_btree_cur *cur, in xfs_rmap_has_other_keys_helper() argument
2521 struct xfs_btree_cur *cur, in xfs_rmap_has_other_keys() argument
2539 error = xfs_rmap_query_range(cur, &low, &high, in xfs_rmap_has_other_keys()