• Home
  • Raw
  • Download

Lines Matching refs:gtrec

762 	struct xfs_rmap_irec		gtrec;  in xfs_rmap_map()  local
824 error = xfs_rmap_get_rec(cur, &gtrec, &have_gt); in xfs_rmap_map()
831 if (XFS_IS_CORRUPT(mp, bno + len > gtrec.rm_startblock)) { in xfs_rmap_map()
836 cur->bc_ag.pag->pag_agno, gtrec.rm_startblock, in xfs_rmap_map()
837 gtrec.rm_blockcount, gtrec.rm_owner, in xfs_rmap_map()
838 gtrec.rm_offset, gtrec.rm_flags); in xfs_rmap_map()
839 if (!xfs_rmap_is_mergeable(&gtrec, owner, flags)) in xfs_rmap_map()
861 bno + len == gtrec.rm_startblock && in xfs_rmap_map()
862 (ignore_off || offset + len == gtrec.rm_offset) && in xfs_rmap_map()
864 gtrec.rm_blockcount <= XFS_RMAP_LEN_MAX) { in xfs_rmap_map()
874 ltrec.rm_blockcount += gtrec.rm_blockcount; in xfs_rmap_map()
876 gtrec.rm_startblock, in xfs_rmap_map()
877 gtrec.rm_blockcount, in xfs_rmap_map()
878 gtrec.rm_owner, in xfs_rmap_map()
879 gtrec.rm_offset, in xfs_rmap_map()
880 gtrec.rm_flags); in xfs_rmap_map()
898 bno + len == gtrec.rm_startblock && in xfs_rmap_map()
899 (ignore_off || offset + len == gtrec.rm_offset)) { in xfs_rmap_map()
909 gtrec.rm_startblock = bno; in xfs_rmap_map()
910 gtrec.rm_blockcount += len; in xfs_rmap_map()
912 gtrec.rm_offset = offset; in xfs_rmap_map()
913 error = xfs_rmap_update(cur, &gtrec); in xfs_rmap_map()
2105 struct xfs_rmap_irec gtrec; in xfs_rmap_map_shared() local
2135 error = xfs_rmap_get_rec(cur, &gtrec, &have_gt); in xfs_rmap_map_shared()
2143 cur->bc_ag.pag->pag_agno, gtrec.rm_startblock, in xfs_rmap_map_shared()
2144 gtrec.rm_blockcount, gtrec.rm_owner, in xfs_rmap_map_shared()
2145 gtrec.rm_offset, gtrec.rm_flags); in xfs_rmap_map_shared()
2147 if (!xfs_rmap_is_mergeable(&gtrec, owner, flags)) in xfs_rmap_map_shared()
2165 bno + len == gtrec.rm_startblock && in xfs_rmap_map_shared()
2166 offset + len == gtrec.rm_offset) { in xfs_rmap_map_shared()
2176 ltrec.rm_blockcount += gtrec.rm_blockcount; in xfs_rmap_map_shared()
2177 error = xfs_rmap_delete(cur, gtrec.rm_startblock, in xfs_rmap_map_shared()
2178 gtrec.rm_blockcount, gtrec.rm_owner, in xfs_rmap_map_shared()
2179 gtrec.rm_offset, gtrec.rm_flags); in xfs_rmap_map_shared()
2199 bno + len == gtrec.rm_startblock && in xfs_rmap_map_shared()
2200 offset + len == gtrec.rm_offset) { in xfs_rmap_map_shared()
2211 error = xfs_rmap_delete(cur, gtrec.rm_startblock, in xfs_rmap_map_shared()
2212 gtrec.rm_blockcount, gtrec.rm_owner, in xfs_rmap_map_shared()
2213 gtrec.rm_offset, gtrec.rm_flags); in xfs_rmap_map_shared()
2218 gtrec.rm_startblock = bno; in xfs_rmap_map_shared()
2219 gtrec.rm_blockcount += len; in xfs_rmap_map_shared()
2220 gtrec.rm_offset = offset; in xfs_rmap_map_shared()
2221 error = xfs_rmap_insert(cur, gtrec.rm_startblock, in xfs_rmap_map_shared()
2222 gtrec.rm_blockcount, gtrec.rm_owner, in xfs_rmap_map_shared()
2223 gtrec.rm_offset, gtrec.rm_flags); in xfs_rmap_map_shared()