Lines Matching refs:gtrec
958 struct xfs_rmap_irec gtrec; in xfs_rmap_map() local
1012 error = xfs_rmap_get_rec(cur, >rec, &have_gt); in xfs_rmap_map()
1020 if (XFS_IS_CORRUPT(mp, bno + len > gtrec.rm_startblock)) { in xfs_rmap_map()
1026 gtrec.rm_startblock, gtrec.rm_blockcount, in xfs_rmap_map()
1027 gtrec.rm_owner, gtrec.rm_offset, in xfs_rmap_map()
1028 gtrec.rm_flags); in xfs_rmap_map()
1029 if (!xfs_rmap_is_mergeable(>rec, owner, flags)) in xfs_rmap_map()
1051 bno + len == gtrec.rm_startblock && in xfs_rmap_map()
1052 (ignore_off || offset + len == gtrec.rm_offset) && in xfs_rmap_map()
1054 gtrec.rm_blockcount <= XFS_RMAP_LEN_MAX) { in xfs_rmap_map()
1064 ltrec.rm_blockcount += gtrec.rm_blockcount; in xfs_rmap_map()
1065 trace_xfs_rmap_delete(cur, gtrec.rm_startblock, in xfs_rmap_map()
1066 gtrec.rm_blockcount, gtrec.rm_owner, in xfs_rmap_map()
1067 gtrec.rm_offset, gtrec.rm_flags); in xfs_rmap_map()
1086 bno + len == gtrec.rm_startblock && in xfs_rmap_map()
1087 (ignore_off || offset + len == gtrec.rm_offset)) { in xfs_rmap_map()
1097 gtrec.rm_startblock = bno; in xfs_rmap_map()
1098 gtrec.rm_blockcount += len; in xfs_rmap_map()
1100 gtrec.rm_offset = offset; in xfs_rmap_map()
1101 error = xfs_rmap_update(cur, >rec); in xfs_rmap_map()
2307 struct xfs_rmap_irec gtrec; in xfs_rmap_map_shared() local
2336 error = xfs_rmap_get_rec(cur, >rec, &have_gt); in xfs_rmap_map_shared()
2345 gtrec.rm_startblock, gtrec.rm_blockcount, in xfs_rmap_map_shared()
2346 gtrec.rm_owner, gtrec.rm_offset, in xfs_rmap_map_shared()
2347 gtrec.rm_flags); in xfs_rmap_map_shared()
2349 if (!xfs_rmap_is_mergeable(>rec, owner, flags)) in xfs_rmap_map_shared()
2367 bno + len == gtrec.rm_startblock && in xfs_rmap_map_shared()
2368 offset + len == gtrec.rm_offset) { in xfs_rmap_map_shared()
2378 ltrec.rm_blockcount += gtrec.rm_blockcount; in xfs_rmap_map_shared()
2379 error = xfs_rmap_delete(cur, gtrec.rm_startblock, in xfs_rmap_map_shared()
2380 gtrec.rm_blockcount, gtrec.rm_owner, in xfs_rmap_map_shared()
2381 gtrec.rm_offset, gtrec.rm_flags); in xfs_rmap_map_shared()
2402 bno + len == gtrec.rm_startblock && in xfs_rmap_map_shared()
2403 offset + len == gtrec.rm_offset) { in xfs_rmap_map_shared()
2414 error = xfs_rmap_delete(cur, gtrec.rm_startblock, in xfs_rmap_map_shared()
2415 gtrec.rm_blockcount, gtrec.rm_owner, in xfs_rmap_map_shared()
2416 gtrec.rm_offset, gtrec.rm_flags); in xfs_rmap_map_shared()
2421 gtrec.rm_startblock = bno; in xfs_rmap_map_shared()
2422 gtrec.rm_blockcount += len; in xfs_rmap_map_shared()
2423 gtrec.rm_offset = offset; in xfs_rmap_map_shared()
2424 error = xfs_rmap_insert(cur, gtrec.rm_startblock, in xfs_rmap_map_shared()
2425 gtrec.rm_blockcount, gtrec.rm_owner, in xfs_rmap_map_shared()
2426 gtrec.rm_offset, gtrec.rm_flags); in xfs_rmap_map_shared()