Lines Matching refs:rm_startblock

46 	cur->bc_rec.r.rm_startblock = bno;  in xfs_rmap_lookup_le()
79 cur->bc_rec.r.rm_startblock = bno; in xfs_rmap_lookup_eq()
101 irec->rm_startblock, irec->rm_blockcount, in xfs_rmap_update()
104 rec.rmap.rm_startblock = cpu_to_be32(irec->rm_startblock); in xfs_rmap_update()
139 rcur->bc_rec.r.rm_startblock = agbno; in xfs_rmap_insert()
201 irec->rm_startblock = be32_to_cpu(rec->rmap.rm_startblock); in xfs_rmap_btrec_to_irec()
222 if (irec->rm_startblock <= XFS_AGFL_BLOCK(mp)) { in xfs_rmap_check_irec()
229 if (!xfs_verify_agbext(cur->bc_ag.pag, irec->rm_startblock, in xfs_rmap_check_irec()
278 irec->rm_owner, irec->rm_flags, irec->rm_startblock, in xfs_rmap_complain_bad_rec()
324 cur->bc_ag.pag->pag_agno, rec->rm_startblock, in xfs_rmap_find_left_neighbor_helper()
361 info.high.rm_startblock = bno - 1; in xfs_rmap_find_left_neighbor()
407 cur->bc_ag.pag->pag_agno, irec->rm_startblock, in xfs_rmap_find_left_neighbor()
423 cur->bc_ag.pag->pag_agno, rec->rm_startblock, in xfs_rmap_lookup_le_range_helper()
459 info.high.rm_startblock = bno; in xfs_rmap_lookup_le_range()
503 cur->bc_ag.pag->pag_agno, irec->rm_startblock, in xfs_rmap_lookup_le_range()
626 cur->bc_ag.pag->pag_agno, ltrec.rm_startblock, in xfs_rmap_unmap()
641 ltrec.rm_startblock + ltrec.rm_blockcount)) { in xfs_rmap_unmap()
656 ltrec.rm_startblock + ltrec.rm_blockcount <= bno) { in xfs_rmap_unmap()
671 if (rtrec.rm_startblock >= bno + len) in xfs_rmap_unmap()
677 ltrec.rm_startblock > bno || in xfs_rmap_unmap()
678 ltrec.rm_startblock + ltrec.rm_blockcount < in xfs_rmap_unmap()
690 if (ltrec.rm_startblock == bno && ltrec.rm_blockcount == len) { in xfs_rmap_unmap()
693 ltrec.rm_startblock, ltrec.rm_blockcount, in xfs_rmap_unmap()
703 } else if (ltrec.rm_startblock == bno) { in xfs_rmap_unmap()
714 ltrec.rm_startblock += len; in xfs_rmap_unmap()
721 } else if (ltrec.rm_startblock + ltrec.rm_blockcount == bno + len) { in xfs_rmap_unmap()
752 ltrec.rm_blockcount = bno - ltrec.rm_startblock; in xfs_rmap_unmap()
761 cur->bc_rec.r.rm_startblock = bno + len; in xfs_rmap_unmap()
771 cur->bc_rec.r.rm_startblock, in xfs_rmap_unmap()
892 cur->bc_ag.pag->pag_agno, ltrec.rm_startblock, in xfs_rmap_map()
902 ltrec.rm_startblock + ltrec.rm_blockcount > bno)) { in xfs_rmap_map()
923 if (XFS_IS_CORRUPT(mp, bno + len > gtrec.rm_startblock)) { in xfs_rmap_map()
928 cur->bc_ag.pag->pag_agno, gtrec.rm_startblock, in xfs_rmap_map()
940 ltrec.rm_startblock + ltrec.rm_blockcount == bno && in xfs_rmap_map()
953 bno + len == gtrec.rm_startblock && in xfs_rmap_map()
968 gtrec.rm_startblock, in xfs_rmap_map()
990 bno + len == gtrec.rm_startblock && in xfs_rmap_map()
1001 gtrec.rm_startblock = bno; in xfs_rmap_map()
1013 cur->bc_rec.r.rm_startblock = bno; in xfs_rmap_map()
1124 cur->bc_ag.pag->pag_agno, PREV.rm_startblock, in xfs_rmap_convert()
1160 LEFT.rm_startblock + LEFT.rm_blockcount > in xfs_rmap_convert()
1166 cur->bc_ag.pag->pag_agno, LEFT.rm_startblock, in xfs_rmap_convert()
1169 if (LEFT.rm_startblock + LEFT.rm_blockcount == bno && in xfs_rmap_convert()
1199 if (XFS_IS_CORRUPT(mp, bno + len > RIGHT.rm_startblock)) { in xfs_rmap_convert()
1204 cur->bc_ag.pag->pag_agno, RIGHT.rm_startblock, in xfs_rmap_convert()
1207 if (bno + len == RIGHT.rm_startblock && in xfs_rmap_convert()
1253 RIGHT.rm_startblock, RIGHT.rm_blockcount, in xfs_rmap_convert()
1271 PREV.rm_startblock, PREV.rm_blockcount, in xfs_rmap_convert()
1301 PREV.rm_startblock, PREV.rm_blockcount, in xfs_rmap_convert()
1338 RIGHT.rm_startblock, RIGHT.rm_blockcount, in xfs_rmap_convert()
1383 NEW.rm_startblock += len; in xfs_rmap_convert()
1404 NEW.rm_startblock += len; in xfs_rmap_convert()
1410 NEW.rm_startblock = bno; in xfs_rmap_convert()
1442 NEW.rm_startblock = bno; in xfs_rmap_convert()
1467 NEW.rm_startblock = bno; in xfs_rmap_convert()
1491 NEW.rm_startblock = bno + len; in xfs_rmap_convert()
1505 NEW.rm_startblock, NEW.rm_blockcount, in xfs_rmap_convert()
1635 LEFT.rm_startblock + LEFT.rm_blockcount > in xfs_rmap_convert_shared()
1658 if (XFS_IS_CORRUPT(mp, bno + len > RIGHT.rm_startblock)) { in xfs_rmap_convert_shared()
1663 cur->bc_ag.pag->pag_agno, RIGHT.rm_startblock, 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()
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()
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()
1778 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1799 error = xfs_rmap_delete(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1805 NEW.rm_startblock += len; 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()
1834 error = xfs_rmap_delete(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1840 NEW.rm_startblock += len; in xfs_rmap_convert_shared()
1842 error = xfs_rmap_insert(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1858 error = xfs_rmap_lookup_eq(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1872 error = xfs_rmap_delete(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
1878 NEW.rm_startblock = bno; 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()
1918 NEW.rm_startblock = bno + len; 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()
1945 NEW.rm_startblock = bno; in xfs_rmap_convert_shared()
1950 error = xfs_rmap_insert(cur, NEW.rm_startblock, in xfs_rmap_convert_shared()
2033 ltrec.rm_startblock > bno || in xfs_rmap_unmap_shared()
2034 ltrec.rm_startblock + ltrec.rm_blockcount < in xfs_rmap_unmap_shared()
2064 if (ltrec.rm_startblock == bno && ltrec.rm_blockcount == len) { in xfs_rmap_unmap_shared()
2066 error = xfs_rmap_delete(cur, ltrec.rm_startblock, in xfs_rmap_unmap_shared()
2071 } else if (ltrec.rm_startblock == bno) { in xfs_rmap_unmap_shared()
2084 error = xfs_rmap_delete(cur, ltrec.rm_startblock, in xfs_rmap_unmap_shared()
2091 ltrec.rm_startblock += len; in xfs_rmap_unmap_shared()
2094 error = xfs_rmap_insert(cur, ltrec.rm_startblock, in xfs_rmap_unmap_shared()
2099 } else if (ltrec.rm_startblock + ltrec.rm_blockcount == bno + len) { in xfs_rmap_unmap_shared()
2110 error = xfs_rmap_lookup_eq(cur, ltrec.rm_startblock, in xfs_rmap_unmap_shared()
2139 error = xfs_rmap_lookup_eq(cur, ltrec.rm_startblock, in xfs_rmap_unmap_shared()
2148 ltrec.rm_blockcount = bno - ltrec.rm_startblock; in xfs_rmap_unmap_shared()
2228 cur->bc_ag.pag->pag_agno, gtrec.rm_startblock, in xfs_rmap_map_shared()
2237 ltrec.rm_startblock + ltrec.rm_blockcount == bno && in xfs_rmap_map_shared()
2250 bno + len == 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()
2284 bno + len == gtrec.rm_startblock && in xfs_rmap_map_shared()
2296 error = xfs_rmap_delete(cur, gtrec.rm_startblock, in xfs_rmap_map_shared()
2303 gtrec.rm_startblock = bno; in xfs_rmap_map_shared()
2306 error = xfs_rmap_insert(cur, gtrec.rm_startblock, in xfs_rmap_map_shared()
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()
2692 if (a->rm_startblock < b->rm_startblock) in xfs_rmap_compare()
2694 else if (a->rm_startblock > b->rm_startblock) in xfs_rmap_compare()
2721 .rmap.rm_startblock = cpu_to_be32(-1U), in xfs_rmap_has_records()
2727 low.r.rm_startblock = bno; in xfs_rmap_has_records()
2729 high.r.rm_startblock = bno + len - 1; in xfs_rmap_has_records()
2775 roc->low.rm_startblock = bno; in xfs_rmap_ownercount_init()
2777 roc->high.rm_startblock = bno + len - 1; in xfs_rmap_ownercount_init()
2780 roc->good.rm_startblock = bno; in xfs_rmap_ownercount_init()
2807 delta = (int64_t)roc->good.rm_startblock - check.rm_startblock; in xfs_rmap_count_owners_helper()
2809 check.rm_startblock += delta; in xfs_rmap_count_owners_helper()
2816 delta = (check.rm_startblock + check.rm_blockcount) - in xfs_rmap_count_owners_helper()
2817 (roc->good.rm_startblock + roc->good.rm_blockcount); in xfs_rmap_count_owners_helper()
2824 if (check.rm_startblock == roc->good.rm_startblock && in xfs_rmap_count_owners_helper()