Lines Matching defs:rmap
86 rec.rmap.rm_startblock = cpu_to_be32(irec->rm_startblock);
87 rec.rmap.rm_blockcount = cpu_to_be32(irec->rm_blockcount);
88 rec.rmap.rm_owner = cpu_to_be64(irec->rm_owner);
89 rec.rmap.rm_offset = cpu_to_be64(
177 /* Convert an internal btree record to an rmap record. */
183 irec->rm_startblock = be32_to_cpu(rec->rmap.rm_startblock);
184 irec->rm_blockcount = be32_to_cpu(rec->rmap.rm_blockcount);
185 irec->rm_owner = be64_to_cpu(rec->rmap.rm_owner);
186 return xfs_rmap_irec_offset_unpack(be64_to_cpu(rec->rmap.rm_offset),
253 /* For each rmap given, figure out if it matches the key we want. */
329 /* For each rmap given, figure out if it matches the key we want. */
461 * Find the extent in the rmap btree and remove it.
474 * recovering EFIs from the log we pass in XFS_RMAP_OWN_UNKNOWN to tell the rmap
552 * (and finished) a RUI to remove the rmap.
590 /* exact match, simply remove the record from rmap tree */
691 * Remove a reference to an extent in the rmap btree.
718 * A mergeable rmap must have the same owner and the same values for
746 * the extent in the rmap btree. This takes the form of a [agbno, length,
945 * Add a reference to an extent in the rmap btree.
1898 * Find an extent in the rmap btree and unmap it. For rmap extent types that
1978 /* Exact match, simply remove the record from rmap tree. */
1996 /* Delete prev rmap. */
2003 /* Add an rmap at the new offset. */
2051 /* Shrink the left side of the rmap */
2066 /* Add an rmap at the new offset */
2085 * Find an extent in the rmap btree and map it. For rmap extent types that
2243 /* Insert a raw rmap into the rmapbt. */
2247 struct xfs_rmap_irec *rmap)
2251 oinfo.oi_owner = rmap->rm_owner;
2252 oinfo.oi_offset = rmap->rm_offset;
2254 if (rmap->rm_flags & XFS_RMAP_ATTR_FORK)
2256 if (rmap->rm_flags & XFS_RMAP_BMBT_BLOCK)
2259 if (rmap->rm_flags || XFS_RMAP_NON_INODE_OWNER(rmap->rm_owner))
2260 return xfs_rmap_map(cur, rmap->rm_startblock,
2261 rmap->rm_blockcount,
2262 rmap->rm_flags & XFS_RMAP_UNWRITTEN,
2265 return xfs_rmap_map_shared(cur, rmap->rm_startblock,
2266 rmap->rm_blockcount,
2267 rmap->rm_flags & XFS_RMAP_UNWRITTEN,
2346 * Process one of the deferred rmap operations. We pass back the
2457 * Don't defer an rmap if we aren't an rmap filesystem.
2468 * Record a rmap intent; the list is kept sorted first by AG and then by
2563 /* Schedule the creation of an rmap for non-file data. */
2585 /* Schedule the deletion of an rmap for non-file data. */
2607 /* Compare rmap records. Returns -1 if a < b, 1 if a > b, and 0 if equal. */
2708 /* For each rmap given, figure out if it doesn't match the key we want. */