Lines Matching refs:irec

40 	struct xfs_rmap_irec	*irec,  in xfs_rmap_lookup_le()  argument
53 if (error || !(*stat) || !irec) in xfs_rmap_lookup_le()
56 error = xfs_rmap_get_rec(cur, irec, &get_stat); in xfs_rmap_lookup_le()
95 struct xfs_rmap_irec *irec) in xfs_rmap_update() argument
101 irec->rm_startblock, irec->rm_blockcount, in xfs_rmap_update()
102 irec->rm_owner, irec->rm_offset, irec->rm_flags); in xfs_rmap_update()
104 rec.rmap.rm_startblock = cpu_to_be32(irec->rm_startblock); in xfs_rmap_update()
105 rec.rmap.rm_blockcount = cpu_to_be32(irec->rm_blockcount); in xfs_rmap_update()
106 rec.rmap.rm_owner = cpu_to_be64(irec->rm_owner); in xfs_rmap_update()
108 xfs_rmap_irec_offset_pack(irec)); in xfs_rmap_update()
199 struct xfs_rmap_irec *irec) in xfs_rmap_btrec_to_irec() argument
201 irec->rm_startblock = be32_to_cpu(rec->rmap.rm_startblock); in xfs_rmap_btrec_to_irec()
202 irec->rm_blockcount = be32_to_cpu(rec->rmap.rm_blockcount); in xfs_rmap_btrec_to_irec()
203 irec->rm_owner = be64_to_cpu(rec->rmap.rm_owner); in xfs_rmap_btrec_to_irec()
205 irec); in xfs_rmap_btrec_to_irec()
214 struct xfs_rmap_irec *irec, in xfs_rmap_get_rec() argument
226 if (xfs_rmap_btrec_to_irec(rec, irec)) in xfs_rmap_get_rec()
229 if (irec->rm_blockcount == 0) in xfs_rmap_get_rec()
231 if (irec->rm_startblock <= XFS_AGFL_BLOCK(mp)) { in xfs_rmap_get_rec()
232 if (irec->rm_owner != XFS_RMAP_OWN_FS) in xfs_rmap_get_rec()
234 if (irec->rm_blockcount != XFS_AGFL_BLOCK(mp) + 1) in xfs_rmap_get_rec()
238 if (!xfs_verify_agbext(pag, irec->rm_startblock, in xfs_rmap_get_rec()
239 irec->rm_blockcount)) in xfs_rmap_get_rec()
243 if (!(xfs_verify_ino(mp, irec->rm_owner) || in xfs_rmap_get_rec()
244 (irec->rm_owner <= XFS_RMAP_OWN_FS && in xfs_rmap_get_rec()
245 irec->rm_owner >= XFS_RMAP_OWN_MIN))) in xfs_rmap_get_rec()
255 irec->rm_owner, irec->rm_flags, irec->rm_startblock, in xfs_rmap_get_rec()
256 irec->rm_blockcount); in xfs_rmap_get_rec()
262 struct xfs_rmap_irec *irec; member
286 *info->irec = *rec; in xfs_rmap_find_left_neighbor_helper()
302 struct xfs_rmap_irec *irec, in xfs_rmap_find_left_neighbor() argument
323 info.irec = irec; in xfs_rmap_find_left_neighbor()
344 error = xfs_rmap_lookup_le(cur, bno, owner, offset, flags, irec, in xfs_rmap_find_left_neighbor()
349 error = xfs_rmap_find_left_neighbor_helper(cur, irec, &info); in xfs_rmap_find_left_neighbor()
358 cur->bc_ag.pag->pag_agno, irec->rm_startblock, in xfs_rmap_find_left_neighbor()
359 irec->rm_blockcount, irec->rm_owner, irec->rm_offset, in xfs_rmap_find_left_neighbor()
360 irec->rm_flags); in xfs_rmap_find_left_neighbor()
386 *info->irec = *rec; in xfs_rmap_lookup_le_range_helper()
403 struct xfs_rmap_irec *irec, in xfs_rmap_lookup_le_range() argument
419 info.irec = irec; in xfs_rmap_lookup_le_range()
440 error = xfs_rmap_lookup_le(cur, bno, owner, offset, flags, irec, in xfs_rmap_lookup_le_range()
445 error = xfs_rmap_lookup_le_range_helper(cur, irec, &info); in xfs_rmap_lookup_le_range()
454 cur->bc_ag.pag->pag_agno, irec->rm_startblock, in xfs_rmap_lookup_le_range()
455 irec->rm_blockcount, irec->rm_owner, irec->rm_offset, in xfs_rmap_lookup_le_range()
456 irec->rm_flags); in xfs_rmap_lookup_le_range()
776 struct xfs_rmap_irec *irec, in xfs_rmap_is_mergeable() argument
780 if (irec->rm_owner == XFS_RMAP_OWN_NULL) in xfs_rmap_is_mergeable()
782 if (irec->rm_owner != owner) in xfs_rmap_is_mergeable()
785 (irec->rm_flags & XFS_RMAP_UNWRITTEN)) in xfs_rmap_is_mergeable()
788 (irec->rm_flags & XFS_RMAP_ATTR_FORK)) in xfs_rmap_is_mergeable()
791 (irec->rm_flags & XFS_RMAP_BMBT_BLOCK)) in xfs_rmap_is_mergeable()
2322 struct xfs_rmap_irec irec; in xfs_rmap_query_range_helper() local
2325 error = xfs_rmap_btrec_to_irec(rec, &irec); in xfs_rmap_query_range_helper()
2328 return query->fn(cur, &irec, query->priv); in xfs_rmap_query_range_helper()
2707 struct xfs_rmap_irec irec; in xfs_rmap_record_exists() local
2714 error = xfs_rmap_lookup_le(cur, bno, owner, offset, flags, &irec, in xfs_rmap_record_exists()
2723 *has_rmap = (irec.rm_owner == owner && irec.rm_startblock <= bno && in xfs_rmap_record_exists()
2724 irec.rm_startblock + irec.rm_blockcount >= bno + len); in xfs_rmap_record_exists()