• Home
  • Raw
  • Download

Lines Matching refs:rec

79 	union xfs_btree_rec	rec;  in xfs_rmap_update()  local
86 rec.rmap.rm_startblock = cpu_to_be32(irec->rm_startblock); in xfs_rmap_update()
87 rec.rmap.rm_blockcount = cpu_to_be32(irec->rm_blockcount); in xfs_rmap_update()
88 rec.rmap.rm_owner = cpu_to_be64(irec->rm_owner); in xfs_rmap_update()
89 rec.rmap.rm_offset = cpu_to_be64( in xfs_rmap_update()
91 error = xfs_btree_update(cur, &rec); in xfs_rmap_update()
168 union xfs_btree_rec *rec, in xfs_rmap_btrec_to_irec() argument
171 irec->rm_startblock = be32_to_cpu(rec->rmap.rm_startblock); in xfs_rmap_btrec_to_irec()
172 irec->rm_blockcount = be32_to_cpu(rec->rmap.rm_blockcount); in xfs_rmap_btrec_to_irec()
173 irec->rm_owner = be64_to_cpu(rec->rmap.rm_owner); in xfs_rmap_btrec_to_irec()
174 return xfs_rmap_irec_offset_unpack(be64_to_cpu(rec->rmap.rm_offset), in xfs_rmap_btrec_to_irec()
189 union xfs_btree_rec *rec; in xfs_rmap_get_rec() local
192 error = xfs_btree_get_rec(cur, &rec, stat); in xfs_rmap_get_rec()
196 if (xfs_rmap_btrec_to_irec(rec, irec)) in xfs_rmap_get_rec()
245 struct xfs_rmap_irec *rec, in xfs_rmap_find_left_neighbor_helper() argument
251 cur->bc_private.a.agno, rec->rm_startblock, in xfs_rmap_find_left_neighbor_helper()
252 rec->rm_blockcount, rec->rm_owner, rec->rm_offset, in xfs_rmap_find_left_neighbor_helper()
253 rec->rm_flags); in xfs_rmap_find_left_neighbor_helper()
255 if (rec->rm_owner != info->high.rm_owner) in xfs_rmap_find_left_neighbor_helper()
257 if (!XFS_RMAP_NON_INODE_OWNER(rec->rm_owner) && in xfs_rmap_find_left_neighbor_helper()
258 !(rec->rm_flags & XFS_RMAP_BMBT_BLOCK) && in xfs_rmap_find_left_neighbor_helper()
259 rec->rm_offset + rec->rm_blockcount - 1 != info->high.rm_offset) in xfs_rmap_find_left_neighbor_helper()
262 *info->irec = *rec; in xfs_rmap_find_left_neighbor_helper()
321 struct xfs_rmap_irec *rec, in xfs_rmap_lookup_le_range_helper() argument
327 cur->bc_private.a.agno, rec->rm_startblock, in xfs_rmap_lookup_le_range_helper()
328 rec->rm_blockcount, rec->rm_owner, rec->rm_offset, in xfs_rmap_lookup_le_range_helper()
329 rec->rm_flags); in xfs_rmap_lookup_le_range_helper()
331 if (rec->rm_owner != info->high.rm_owner) in xfs_rmap_lookup_le_range_helper()
333 if (!XFS_RMAP_NON_INODE_OWNER(rec->rm_owner) && in xfs_rmap_lookup_le_range_helper()
334 !(rec->rm_flags & XFS_RMAP_BMBT_BLOCK) && in xfs_rmap_lookup_le_range_helper()
335 (rec->rm_offset > info->high.rm_offset || in xfs_rmap_lookup_le_range_helper()
336 rec->rm_offset + rec->rm_blockcount <= info->high.rm_offset)) in xfs_rmap_lookup_le_range_helper()
339 *info->irec = *rec; in xfs_rmap_lookup_le_range_helper()
397 struct xfs_rmap_irec *rec, in xfs_rmap_free_check_owner() argument
410 (rec->rm_flags & XFS_RMAP_UNWRITTEN), out); in xfs_rmap_free_check_owner()
413 XFS_WANT_CORRUPTED_GOTO(mp, owner == rec->rm_owner, out); in xfs_rmap_free_check_owner()
420 XFS_WANT_CORRUPTED_GOTO(mp, rec->rm_flags & XFS_RMAP_BMBT_BLOCK, in xfs_rmap_free_check_owner()
423 XFS_WANT_CORRUPTED_GOTO(mp, rec->rm_offset <= offset, out); in xfs_rmap_free_check_owner()
425 ltoff + rec->rm_blockcount >= offset + len, in xfs_rmap_free_check_owner()
2079 union xfs_btree_rec *rec, in xfs_rmap_query_range_helper() argument
2086 error = xfs_rmap_btrec_to_irec(rec, &irec); in xfs_rmap_query_range_helper()
2503 struct xfs_rmap_irec *rec, in xfs_rmap_has_other_keys_helper() argument
2508 if (rks->owner == rec->rm_owner && rks->offset == rec->rm_offset && in xfs_rmap_has_other_keys_helper()
2509 ((rks->flags & rec->rm_flags) & XFS_RMAP_KEY_FLAGS) == rks->flags) in xfs_rmap_has_other_keys_helper()