Lines Matching refs:gtrec
760 struct xfs_rmap_irec gtrec; in xfs_rmap_map() local
822 error = xfs_rmap_get_rec(cur, >rec, &have_gt); in xfs_rmap_map()
829 if (XFS_IS_CORRUPT(mp, bno + len > gtrec.rm_startblock)) { in xfs_rmap_map()
834 cur->bc_ag.agno, gtrec.rm_startblock, in xfs_rmap_map()
835 gtrec.rm_blockcount, gtrec.rm_owner, in xfs_rmap_map()
836 gtrec.rm_offset, gtrec.rm_flags); in xfs_rmap_map()
837 if (!xfs_rmap_is_mergeable(>rec, owner, flags)) in xfs_rmap_map()
859 bno + len == gtrec.rm_startblock && in xfs_rmap_map()
860 (ignore_off || offset + len == gtrec.rm_offset) && in xfs_rmap_map()
862 gtrec.rm_blockcount <= XFS_RMAP_LEN_MAX) { in xfs_rmap_map()
872 ltrec.rm_blockcount += gtrec.rm_blockcount; in xfs_rmap_map()
874 gtrec.rm_startblock, in xfs_rmap_map()
875 gtrec.rm_blockcount, in xfs_rmap_map()
876 gtrec.rm_owner, in xfs_rmap_map()
877 gtrec.rm_offset, in xfs_rmap_map()
878 gtrec.rm_flags); in xfs_rmap_map()
896 bno + len == gtrec.rm_startblock && in xfs_rmap_map()
897 (ignore_off || offset + len == gtrec.rm_offset)) { in xfs_rmap_map()
907 gtrec.rm_startblock = bno; in xfs_rmap_map()
908 gtrec.rm_blockcount += len; in xfs_rmap_map()
910 gtrec.rm_offset = offset; in xfs_rmap_map()
911 error = xfs_rmap_update(cur, >rec); in xfs_rmap_map()
2103 struct xfs_rmap_irec gtrec; in xfs_rmap_map_shared() local
2133 error = xfs_rmap_get_rec(cur, >rec, &have_gt); in xfs_rmap_map_shared()
2141 cur->bc_ag.agno, gtrec.rm_startblock, in xfs_rmap_map_shared()
2142 gtrec.rm_blockcount, gtrec.rm_owner, in xfs_rmap_map_shared()
2143 gtrec.rm_offset, gtrec.rm_flags); in xfs_rmap_map_shared()
2145 if (!xfs_rmap_is_mergeable(>rec, owner, flags)) in xfs_rmap_map_shared()
2163 bno + len == gtrec.rm_startblock && in xfs_rmap_map_shared()
2164 offset + len == gtrec.rm_offset) { in xfs_rmap_map_shared()
2174 ltrec.rm_blockcount += gtrec.rm_blockcount; in xfs_rmap_map_shared()
2175 error = xfs_rmap_delete(cur, gtrec.rm_startblock, in xfs_rmap_map_shared()
2176 gtrec.rm_blockcount, gtrec.rm_owner, in xfs_rmap_map_shared()
2177 gtrec.rm_offset, gtrec.rm_flags); in xfs_rmap_map_shared()
2197 bno + len == gtrec.rm_startblock && in xfs_rmap_map_shared()
2198 offset + len == gtrec.rm_offset) { in xfs_rmap_map_shared()
2209 error = xfs_rmap_delete(cur, gtrec.rm_startblock, in xfs_rmap_map_shared()
2210 gtrec.rm_blockcount, gtrec.rm_owner, in xfs_rmap_map_shared()
2211 gtrec.rm_offset, gtrec.rm_flags); in xfs_rmap_map_shared()
2216 gtrec.rm_startblock = bno; in xfs_rmap_map_shared()
2217 gtrec.rm_blockcount += len; in xfs_rmap_map_shared()
2218 gtrec.rm_offset = offset; in xfs_rmap_map_shared()
2219 error = xfs_rmap_insert(cur, gtrec.rm_startblock, in xfs_rmap_map_shared()
2220 gtrec.rm_blockcount, gtrec.rm_owner, in xfs_rmap_map_shared()
2221 gtrec.rm_offset, gtrec.rm_flags); in xfs_rmap_map_shared()