Lines Matching refs:rm_startblock

50 	cur->bc_rec.r.rm_startblock = bno;  in xfs_rmap_lookup_le()
85 cur->bc_rec.r.rm_startblock = bno; in xfs_rmap_lookup_eq()
106 trace_xfs_rmap_update(cur, irec->rm_startblock, irec->rm_blockcount, in xfs_rmap_update()
109 rec.rmap.rm_startblock = cpu_to_be32(irec->rm_startblock); in xfs_rmap_update()
143 rcur->bc_rec.r.rm_startblock = agbno; in xfs_rmap_insert()
205 irec->rm_startblock = be32_to_cpu(rec->rmap.rm_startblock); in xfs_rmap_btrec_to_irec()
226 if (irec->rm_startblock <= XFS_AGFL_BLOCK(mp)) { in xfs_rmap_check_irec()
233 if (!xfs_verify_agbext(pag, irec->rm_startblock, in xfs_rmap_check_irec()
283 if (irec->rm_startblock != 0) in xfs_rtrmap_check_meta_irec()
291 if (!xfs_verify_rgbext(rtg, irec->rm_startblock, in xfs_rtrmap_check_meta_irec()
311 if (!xfs_verify_rgbext(rtg, irec->rm_startblock, irec->rm_blockcount)) in xfs_rtrmap_check_inode_irec()
364 irec->rm_owner, irec->rm_flags, irec->rm_startblock, in xfs_rmap_complain_bad_rec()
410 trace_xfs_rmap_find_left_neighbor_candidate(cur, rec->rm_startblock, in xfs_rmap_find_left_neighbor_helper()
447 info.high.rm_startblock = bno - 1; in xfs_rmap_find_left_neighbor()
492 trace_xfs_rmap_find_left_neighbor_result(cur, irec->rm_startblock, in xfs_rmap_find_left_neighbor()
507 trace_xfs_rmap_lookup_le_range_candidate(cur, rec->rm_startblock, in xfs_rmap_lookup_le_range_helper()
543 info.high.rm_startblock = bno; in xfs_rmap_lookup_le_range()
585 trace_xfs_rmap_lookup_le_range_result(cur, irec->rm_startblock, in xfs_rmap_lookup_le_range()
713 trace_xfs_rmap_lookup_le_range_result(cur, ltrec.rm_startblock, in xfs_rmap_unmap()
728 ltrec.rm_startblock + ltrec.rm_blockcount)) { in xfs_rmap_unmap()
744 ltrec.rm_startblock + ltrec.rm_blockcount <= bno) { in xfs_rmap_unmap()
760 if (rtrec.rm_startblock >= bno + len) in xfs_rmap_unmap()
766 ltrec.rm_startblock > bno || in xfs_rmap_unmap()
767 ltrec.rm_startblock + ltrec.rm_blockcount < in xfs_rmap_unmap()
780 if (ltrec.rm_startblock == bno && ltrec.rm_blockcount == len) { in xfs_rmap_unmap()
782 trace_xfs_rmap_delete(cur, ltrec.rm_startblock, in xfs_rmap_unmap()
793 } else if (ltrec.rm_startblock == bno) { in xfs_rmap_unmap()
804 ltrec.rm_startblock += len; in xfs_rmap_unmap()
811 } else if (ltrec.rm_startblock + ltrec.rm_blockcount == bno + len) { in xfs_rmap_unmap()
842 ltrec.rm_blockcount = bno - ltrec.rm_startblock; in xfs_rmap_unmap()
851 cur->bc_rec.r.rm_startblock = bno + len; in xfs_rmap_unmap()
860 trace_xfs_rmap_insert(cur, cur->bc_rec.r.rm_startblock, in xfs_rmap_unmap()
1058 trace_xfs_rmap_lookup_le_range_result(cur, ltrec.rm_startblock, in xfs_rmap_map()
1068 ltrec.rm_startblock + ltrec.rm_blockcount > bno)) { in xfs_rmap_map()
1091 if (XFS_IS_CORRUPT(mp, bno + len > gtrec.rm_startblock)) { in xfs_rmap_map()
1097 gtrec.rm_startblock, gtrec.rm_blockcount, in xfs_rmap_map()
1109 ltrec.rm_startblock + ltrec.rm_blockcount == bno && in xfs_rmap_map()
1122 bno + len == gtrec.rm_startblock && in xfs_rmap_map()
1136 trace_xfs_rmap_delete(cur, gtrec.rm_startblock, in xfs_rmap_map()
1157 bno + len == gtrec.rm_startblock && in xfs_rmap_map()
1168 gtrec.rm_startblock = bno; in xfs_rmap_map()
1180 cur->bc_rec.r.rm_startblock = bno; in xfs_rmap_map()
1290 trace_xfs_rmap_lookup_le_range_result(cur, PREV.rm_startblock, in xfs_rmap_convert()
1327 LEFT.rm_startblock + LEFT.rm_blockcount > in xfs_rmap_convert()
1334 LEFT.rm_startblock, LEFT.rm_blockcount, in xfs_rmap_convert()
1336 if (LEFT.rm_startblock + LEFT.rm_blockcount == bno && in xfs_rmap_convert()
1368 if (XFS_IS_CORRUPT(mp, bno + len > RIGHT.rm_startblock)) { in xfs_rmap_convert()
1374 RIGHT.rm_startblock, RIGHT.rm_blockcount, in xfs_rmap_convert()
1377 if (bno + len == RIGHT.rm_startblock && in xfs_rmap_convert()
1423 trace_xfs_rmap_delete(cur, RIGHT.rm_startblock, in xfs_rmap_convert()
1442 trace_xfs_rmap_delete(cur, PREV.rm_startblock, in xfs_rmap_convert()
1473 trace_xfs_rmap_delete(cur, PREV.rm_startblock, in xfs_rmap_convert()
1512 trace_xfs_rmap_delete(cur, RIGHT.rm_startblock, in xfs_rmap_convert()
1559 NEW.rm_startblock += len; in xfs_rmap_convert()
1580 NEW.rm_startblock += len; in xfs_rmap_convert()
1586 NEW.rm_startblock = bno; in xfs_rmap_convert()
1618 NEW.rm_startblock = bno; in xfs_rmap_convert()
1644 NEW.rm_startblock = bno; in xfs_rmap_convert()
1668 NEW.rm_startblock = bno + len; in xfs_rmap_convert()
1681 trace_xfs_rmap_insert(cur, NEW.rm_startblock, in xfs_rmap_convert()
1811 LEFT.rm_startblock + LEFT.rm_blockcount > in xfs_rmap_convert_shared()
1836 if (XFS_IS_CORRUPT(mp, bno + len > RIGHT.rm_startblock)) { in xfs_rmap_convert_shared()
1842 RIGHT.rm_startblock, RIGHT.rm_blockcount, in xfs_rmap_convert_shared()
1870 error = xfs_rmap_delete(cur, RIGHT.rm_startblock, in xfs_rmap_convert_shared()
1875 error = xfs_rmap_delete(cur, PREV.rm_startblock, in xfs_rmap_convert_shared()
1881 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1902 error = xfs_rmap_delete(cur, PREV.rm_startblock, in xfs_rmap_convert_shared()
1908 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1929 error = xfs_rmap_delete(cur, RIGHT.rm_startblock, in xfs_rmap_convert_shared()
1935 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1959 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1981 error = xfs_rmap_delete(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1987 NEW.rm_startblock += len; in xfs_rmap_convert_shared()
1989 error = xfs_rmap_insert(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1995 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
2017 error = xfs_rmap_delete(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
2023 NEW.rm_startblock += len; in xfs_rmap_convert_shared()
2025 error = xfs_rmap_insert(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
2041 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
2056 error = xfs_rmap_delete(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
2062 NEW.rm_startblock = bno; in xfs_rmap_convert_shared()
2064 error = xfs_rmap_insert(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
2077 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
2103 NEW.rm_startblock = bno + len; in xfs_rmap_convert_shared()
2109 error = xfs_rmap_insert(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
2116 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
2131 NEW.rm_startblock = bno; in xfs_rmap_convert_shared()
2136 error = xfs_rmap_insert(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
2217 ltrec.rm_startblock > bno || in xfs_rmap_unmap_shared()
2218 ltrec.rm_startblock + ltrec.rm_blockcount < in xfs_rmap_unmap_shared()
2253 if (ltrec.rm_startblock == bno && ltrec.rm_blockcount == len) { in xfs_rmap_unmap_shared()
2255 error = xfs_rmap_delete(cur, ltrec.rm_startblock, in xfs_rmap_unmap_shared()
2260 } else if (ltrec.rm_startblock == bno) { in xfs_rmap_unmap_shared()
2273 error = xfs_rmap_delete(cur, ltrec.rm_startblock, in xfs_rmap_unmap_shared()
2280 ltrec.rm_startblock += len; in xfs_rmap_unmap_shared()
2283 error = xfs_rmap_insert(cur, ltrec.rm_startblock, in xfs_rmap_unmap_shared()
2288 } else if (ltrec.rm_startblock + ltrec.rm_blockcount == bno + len) { in xfs_rmap_unmap_shared()
2299 error = xfs_rmap_lookup_eq(cur, ltrec.rm_startblock, in xfs_rmap_unmap_shared()
2329 error = xfs_rmap_lookup_eq(cur, ltrec.rm_startblock, in xfs_rmap_unmap_shared()
2339 ltrec.rm_blockcount = bno - ltrec.rm_startblock; in xfs_rmap_unmap_shared()
2417 gtrec.rm_startblock, gtrec.rm_blockcount, in xfs_rmap_map_shared()
2426 ltrec.rm_startblock + ltrec.rm_blockcount == bno && in xfs_rmap_map_shared()
2439 bno + len == gtrec.rm_startblock && in xfs_rmap_map_shared()
2451 error = xfs_rmap_delete(cur, gtrec.rm_startblock, in xfs_rmap_map_shared()
2459 error = xfs_rmap_lookup_eq(cur, ltrec.rm_startblock, in xfs_rmap_map_shared()
2474 bno + len == gtrec.rm_startblock && in xfs_rmap_map_shared()
2486 error = xfs_rmap_delete(cur, gtrec.rm_startblock, in xfs_rmap_map_shared()
2493 gtrec.rm_startblock = bno; in xfs_rmap_map_shared()
2496 error = xfs_rmap_insert(cur, gtrec.rm_startblock, in xfs_rmap_map_shared()
2532 return xfs_rmap_map(cur, rmap->rm_startblock, in xfs_rmap_map_raw()
2537 return xfs_rmap_map_shared(cur, rmap->rm_startblock, in xfs_rmap_map_raw()
2888 if (a->rm_startblock < b->rm_startblock) in xfs_rmap_compare()
2890 else if (a->rm_startblock > b->rm_startblock) in xfs_rmap_compare()
2917 .rmap.rm_startblock = cpu_to_be32(-1U), in xfs_rmap_has_records()
2923 low.r.rm_startblock = bno; in xfs_rmap_has_records()
2925 high.r.rm_startblock = bno + len - 1; in xfs_rmap_has_records()
2971 roc->low.rm_startblock = bno; in xfs_rmap_ownercount_init()
2973 roc->high.rm_startblock = bno + len - 1; in xfs_rmap_ownercount_init()
2976 roc->good.rm_startblock = bno; in xfs_rmap_ownercount_init()
3003 delta = (int64_t)roc->good.rm_startblock - check.rm_startblock; in xfs_rmap_count_owners_helper()
3005 check.rm_startblock += delta; in xfs_rmap_count_owners_helper()
3012 delta = (check.rm_startblock + check.rm_blockcount) - in xfs_rmap_count_owners_helper()
3013 (roc->good.rm_startblock + roc->good.rm_blockcount); in xfs_rmap_count_owners_helper()
3020 if (check.rm_startblock == roc->good.rm_startblock && in xfs_rmap_count_owners_helper()