Lines Matching refs:rm_blockcount
47 cur->bc_rec.r.rm_blockcount = len; in xfs_rmap_lookup_le()
69 cur->bc_rec.r.rm_blockcount = len; in xfs_rmap_lookup_eq()
90 irec->rm_startblock, irec->rm_blockcount, in xfs_rmap_update()
94 rec.rmap.rm_blockcount = cpu_to_be32(irec->rm_blockcount); in xfs_rmap_update()
126 rcur->bc_rec.r.rm_blockcount = len; in xfs_rmap_insert()
180 irec->rm_blockcount = be32_to_cpu(rec->rmap.rm_blockcount); in xfs_rmap_btrec_to_irec()
207 if (irec->rm_blockcount == 0) in xfs_rmap_get_rec()
212 if (irec->rm_blockcount != XFS_AGFL_BLOCK(mp) + 1) in xfs_rmap_get_rec()
219 irec->rm_startblock + irec->rm_blockcount) in xfs_rmap_get_rec()
222 irec->rm_startblock + irec->rm_blockcount - 1)) in xfs_rmap_get_rec()
239 irec->rm_blockcount); in xfs_rmap_get_rec()
260 rec->rm_blockcount, rec->rm_owner, rec->rm_offset, in xfs_rmap_find_left_neighbor_helper()
267 rec->rm_offset + rec->rm_blockcount - 1 != info->high.rm_offset) in xfs_rmap_find_left_neighbor_helper()
306 info.high.rm_blockcount = 0; in xfs_rmap_find_left_neighbor()
320 irec->rm_blockcount, irec->rm_owner, in xfs_rmap_find_left_neighbor()
336 rec->rm_blockcount, rec->rm_owner, rec->rm_offset, in xfs_rmap_lookup_le_range_helper()
344 rec->rm_offset + rec->rm_blockcount <= info->high.rm_offset)) in xfs_rmap_lookup_le_range_helper()
378 info.high.rm_blockcount = 0; in xfs_rmap_lookup_le_range()
392 irec->rm_blockcount, irec->rm_owner, in xfs_rmap_lookup_le_range()
433 ltoff + rec->rm_blockcount >= offset + len, in xfs_rmap_free_check_owner()
501 ltrec.rm_blockcount, ltrec.rm_owner, in xfs_rmap_unmap()
514 ltrec.rm_blockcount, out_error); in xfs_rmap_unmap()
526 ltrec.rm_startblock + ltrec.rm_blockcount <= bno) { in xfs_rmap_unmap()
544 ltrec.rm_startblock + ltrec.rm_blockcount >= in xfs_rmap_unmap()
553 if (ltrec.rm_startblock == bno && ltrec.rm_blockcount == len) { in xfs_rmap_unmap()
556 ltrec.rm_startblock, ltrec.rm_blockcount, in xfs_rmap_unmap()
575 ltrec.rm_blockcount -= len; in xfs_rmap_unmap()
581 } else if (ltrec.rm_startblock + ltrec.rm_blockcount == bno + len) { in xfs_rmap_unmap()
592 ltrec.rm_blockcount -= len; in xfs_rmap_unmap()
610 xfs_extlen_t orig_len = ltrec.rm_blockcount; in xfs_rmap_unmap()
612 ltrec.rm_blockcount = bno - ltrec.rm_startblock; in xfs_rmap_unmap()
622 cur->bc_rec.r.rm_blockcount = orig_len - len - in xfs_rmap_unmap()
623 ltrec.rm_blockcount; in xfs_rmap_unmap()
632 cur->bc_rec.r.rm_blockcount, in xfs_rmap_unmap()
757 ltrec.rm_blockcount, ltrec.rm_owner, in xfs_rmap_map()
766 ltrec.rm_startblock + ltrec.rm_blockcount <= bno, out_error); in xfs_rmap_map()
785 gtrec.rm_blockcount, gtrec.rm_owner, in xfs_rmap_map()
796 ltrec.rm_startblock + ltrec.rm_blockcount == bno && in xfs_rmap_map()
797 (ignore_off || ltrec.rm_offset + ltrec.rm_blockcount == offset)) { in xfs_rmap_map()
807 ltrec.rm_blockcount += len; in xfs_rmap_map()
811 (unsigned long)ltrec.rm_blockcount + len + in xfs_rmap_map()
812 gtrec.rm_blockcount <= XFS_RMAP_LEN_MAX) { in xfs_rmap_map()
822 ltrec.rm_blockcount += gtrec.rm_blockcount; in xfs_rmap_map()
825 gtrec.rm_blockcount, in xfs_rmap_map()
855 gtrec.rm_blockcount += len; in xfs_rmap_map()
867 cur->bc_rec.r.rm_blockcount = len; in xfs_rmap_map()
976 PREV.rm_blockcount, PREV.rm_owner, in xfs_rmap_convert()
980 ASSERT(PREV.rm_offset + PREV.rm_blockcount >= new_endoff); in xfs_rmap_convert()
990 if (PREV.rm_offset + PREV.rm_blockcount == new_endoff) in xfs_rmap_convert()
1008 LEFT.rm_startblock + LEFT.rm_blockcount <= bno, in xfs_rmap_convert()
1012 LEFT.rm_blockcount, LEFT.rm_owner, in xfs_rmap_convert()
1014 if (LEFT.rm_startblock + LEFT.rm_blockcount == bno && in xfs_rmap_convert()
1015 LEFT.rm_offset + LEFT.rm_blockcount == offset && in xfs_rmap_convert()
1042 RIGHT.rm_blockcount, RIGHT.rm_owner, in xfs_rmap_convert()
1055 (unsigned long)LEFT.rm_blockcount + len + in xfs_rmap_convert()
1056 RIGHT.rm_blockcount > XFS_RMAP_LEN_MAX) in xfs_rmap_convert()
1084 RIGHT.rm_startblock, RIGHT.rm_blockcount, in xfs_rmap_convert()
1096 PREV.rm_startblock, PREV.rm_blockcount, in xfs_rmap_convert()
1108 NEW.rm_blockcount += PREV.rm_blockcount + RIGHT.rm_blockcount; in xfs_rmap_convert()
1120 PREV.rm_startblock, PREV.rm_blockcount, in xfs_rmap_convert()
1132 NEW.rm_blockcount += PREV.rm_blockcount; in xfs_rmap_convert()
1148 RIGHT.rm_startblock, RIGHT.rm_blockcount, in xfs_rmap_convert()
1160 NEW.rm_blockcount = len + RIGHT.rm_blockcount; in xfs_rmap_convert()
1188 NEW.rm_blockcount -= len; in xfs_rmap_convert()
1196 NEW.rm_blockcount += len; in xfs_rmap_convert()
1210 NEW.rm_blockcount -= len; in xfs_rmap_convert()
1217 NEW.rm_blockcount = len; in xfs_rmap_convert()
1234 NEW.rm_blockcount -= len; in xfs_rmap_convert()
1244 NEW.rm_blockcount += len; in xfs_rmap_convert()
1256 NEW.rm_blockcount -= len; in xfs_rmap_convert()
1268 NEW.rm_blockcount = len; in xfs_rmap_convert()
1289 NEW.rm_blockcount = PREV.rm_offset + PREV.rm_blockcount - in xfs_rmap_convert()
1297 NEW.rm_blockcount = offset - PREV.rm_offset; in xfs_rmap_convert()
1300 NEW.rm_startblock, NEW.rm_blockcount, in xfs_rmap_convert()
1397 ASSERT(PREV.rm_offset + PREV.rm_blockcount >= new_endoff); in xfs_rmap_convert_shared()
1407 if (PREV.rm_offset + PREV.rm_blockcount == new_endoff) in xfs_rmap_convert_shared()
1418 LEFT.rm_startblock + LEFT.rm_blockcount <= bno, in xfs_rmap_convert_shared()
1439 RIGHT.rm_blockcount, RIGHT.rm_owner, in xfs_rmap_convert_shared()
1450 (unsigned long)LEFT.rm_blockcount + len + in xfs_rmap_convert_shared()
1451 RIGHT.rm_blockcount > XFS_RMAP_LEN_MAX) in xfs_rmap_convert_shared()
1468 RIGHT.rm_blockcount, RIGHT.rm_owner, in xfs_rmap_convert_shared()
1473 PREV.rm_blockcount, PREV.rm_owner, in xfs_rmap_convert_shared()
1479 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
1484 NEW.rm_blockcount += PREV.rm_blockcount + RIGHT.rm_blockcount; in xfs_rmap_convert_shared()
1496 PREV.rm_blockcount, PREV.rm_owner, in xfs_rmap_convert_shared()
1502 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
1507 NEW.rm_blockcount += PREV.rm_blockcount; in xfs_rmap_convert_shared()
1519 RIGHT.rm_blockcount, RIGHT.rm_owner, in xfs_rmap_convert_shared()
1525 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
1530 NEW.rm_blockcount += RIGHT.rm_blockcount; in xfs_rmap_convert_shared()
1545 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
1563 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
1569 NEW.rm_blockcount -= len; in xfs_rmap_convert_shared()
1571 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
1577 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
1582 NEW.rm_blockcount += len; in xfs_rmap_convert_shared()
1595 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
1601 NEW.rm_blockcount -= len; in xfs_rmap_convert_shared()
1603 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
1619 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
1624 NEW.rm_blockcount = offset - NEW.rm_offset; in xfs_rmap_convert_shared()
1630 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
1636 NEW.rm_blockcount += len; in xfs_rmap_convert_shared()
1638 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
1651 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
1656 NEW.rm_blockcount -= len; in xfs_rmap_convert_shared()
1675 NEW.rm_blockcount = PREV.rm_offset + PREV.rm_blockcount - in xfs_rmap_convert_shared()
1679 NEW.rm_blockcount, NEW.rm_owner, NEW.rm_offset, in xfs_rmap_convert_shared()
1686 NEW.rm_blockcount, NEW.rm_owner, in xfs_rmap_convert_shared()
1691 NEW.rm_blockcount = offset - NEW.rm_offset; in xfs_rmap_convert_shared()
1697 NEW.rm_blockcount = len; in xfs_rmap_convert_shared()
1702 NEW.rm_blockcount, NEW.rm_owner, NEW.rm_offset, in xfs_rmap_convert_shared()
1781 ltrec.rm_startblock + ltrec.rm_blockcount >= in xfs_rmap_unmap_shared()
1793 XFS_WANT_CORRUPTED_GOTO(mp, offset <= ltoff + ltrec.rm_blockcount, in xfs_rmap_unmap_shared()
1796 if (ltrec.rm_startblock == bno && ltrec.rm_blockcount == len) { in xfs_rmap_unmap_shared()
1799 ltrec.rm_blockcount, ltrec.rm_owner, in xfs_rmap_unmap_shared()
1817 ltrec.rm_blockcount, ltrec.rm_owner, in xfs_rmap_unmap_shared()
1824 ltrec.rm_blockcount -= len; in xfs_rmap_unmap_shared()
1827 ltrec.rm_blockcount, ltrec.rm_owner, in xfs_rmap_unmap_shared()
1831 } else if (ltrec.rm_startblock + ltrec.rm_blockcount == bno + len) { in xfs_rmap_unmap_shared()
1843 ltrec.rm_blockcount, ltrec.rm_owner, in xfs_rmap_unmap_shared()
1848 ltrec.rm_blockcount -= len; in xfs_rmap_unmap_shared()
1865 xfs_extlen_t orig_len = ltrec.rm_blockcount; in xfs_rmap_unmap_shared()
1869 ltrec.rm_blockcount, ltrec.rm_owner, in xfs_rmap_unmap_shared()
1874 ltrec.rm_blockcount = bno - ltrec.rm_startblock; in xfs_rmap_unmap_shared()
1881 orig_len - len - ltrec.rm_blockcount, in xfs_rmap_unmap_shared()
1952 gtrec.rm_blockcount, gtrec.rm_owner, in xfs_rmap_map_shared()
1960 ltrec.rm_startblock + ltrec.rm_blockcount == bno && in xfs_rmap_map_shared()
1961 ltrec.rm_offset + ltrec.rm_blockcount == offset) { in xfs_rmap_map_shared()
1971 ltrec.rm_blockcount += len; in xfs_rmap_map_shared()
1984 ltrec.rm_blockcount += gtrec.rm_blockcount; in xfs_rmap_map_shared()
1986 gtrec.rm_blockcount, gtrec.rm_owner, in xfs_rmap_map_shared()
1994 ltrec.rm_blockcount, ltrec.rm_owner, in xfs_rmap_map_shared()
2017 gtrec.rm_blockcount, gtrec.rm_owner, in xfs_rmap_map_shared()
2024 gtrec.rm_blockcount += len; in xfs_rmap_map_shared()
2027 gtrec.rm_blockcount, gtrec.rm_owner, in xfs_rmap_map_shared()
2068 rmap->rm_blockcount, in xfs_rmap_map_raw()
2073 rmap->rm_blockcount, in xfs_rmap_map_raw()
2497 irec.rm_startblock + irec.rm_blockcount >= bno + len); in xfs_rmap_record_exists()