Lines Matching defs:rmap
104 rec.rmap.rm_startblock = cpu_to_be32(irec->rm_startblock);
105 rec.rmap.rm_blockcount = cpu_to_be32(irec->rm_blockcount);
106 rec.rmap.rm_owner = cpu_to_be64(irec->rm_owner);
107 rec.rmap.rm_offset = cpu_to_be64(
195 /* Convert an internal btree record to an rmap record. */
201 irec->rm_startblock = be32_to_cpu(rec->rmap.rm_startblock);
202 irec->rm_blockcount = be32_to_cpu(rec->rmap.rm_blockcount);
203 irec->rm_owner = be64_to_cpu(rec->rmap.rm_owner);
204 return xfs_rmap_irec_offset_unpack(be64_to_cpu(rec->rmap.rm_offset),
208 /* Simple checks for rmap records. */
314 /* For each rmap given, figure out if it matches the key we want. */
413 /* For each rmap given, figure out if it matches the key we want. */
486 * usually an exact match for rmap records. If we don't find what we
569 * Find the extent in the rmap btree and remove it.
582 * recovering EFIs from the log we pass in XFS_RMAP_OWN_UNKNOWN to tell the rmap
653 * (and finished) a RUI to remove the rmap.
691 /* exact match, simply remove the record from rmap tree */
792 * Remove a reference to an extent in the rmap btree.
819 * A mergeable rmap must have the same owner and the same values for
847 * the extent in the rmap btree. This takes the form of a [agbno, length,
1039 * Add a reference to an extent in the rmap btree.
1985 * Find an extent in the rmap btree and unmap it. For rmap extent types that
2065 /* Exact match, simply remove the record from rmap tree. */
2083 /* Delete prev rmap. */
2090 /* Add an rmap at the new offset. */
2138 /* Shrink the left side of the rmap */
2153 /* Add an rmap at the new offset */
2172 * Find an extent in the rmap btree and map it. For rmap extent types that
2330 /* Insert a raw rmap into the rmapbt. */
2334 struct xfs_rmap_irec *rmap)
2338 oinfo.oi_owner = rmap->rm_owner;
2339 oinfo.oi_offset = rmap->rm_offset;
2341 if (rmap->rm_flags & XFS_RMAP_ATTR_FORK)
2343 if (rmap->rm_flags & XFS_RMAP_BMBT_BLOCK)
2346 if (rmap->rm_flags || XFS_RMAP_NON_INODE_OWNER(rmap->rm_owner))
2347 return xfs_rmap_map(cur, rmap->rm_startblock,
2348 rmap->rm_blockcount,
2349 rmap->rm_flags & XFS_RMAP_UNWRITTEN,
2352 return xfs_rmap_map_shared(cur, rmap->rm_startblock,
2353 rmap->rm_blockcount,
2354 rmap->rm_flags & XFS_RMAP_UNWRITTEN,
2432 * Process one of the deferred rmap operations. We pass back the
2529 * Don't defer an rmap if we aren't an rmap filesystem.
2540 * Record a rmap intent; the list is kept sorted first by AG and then by
2636 /* Schedule the creation of an rmap for non-file data. */
2658 /* Schedule the deletion of an rmap for non-file data. */
2680 /* Compare rmap records. Returns -1 if a < b, 1 if a > b, and 0 if equal. */
2721 .rmap.rm_startblock = cpu_to_be32(-1U),
2738 /* rmap search keys */
2748 /* Does this rmap represent space that can have multiple owners? */
2752 const struct xfs_rmap_irec *rmap)
2756 if (XFS_RMAP_NON_INODE_OWNER(rmap->rm_owner))
2758 if (rmap->rm_flags & (XFS_RMAP_ATTR_FORK |