Lines Matching refs:owner
30 * Lookup the first record less than or equal to [bno, len, owner, offset]
37 uint64_t owner,
48 cur->bc_rec.r.rm_owner = owner;
66 * Lookup the record exactly matching [bno, len, owner, offset]
74 uint64_t owner,
81 cur->bc_rec.r.rm_owner = owner;
89 * by [bno, len, owner, offset].
121 uint64_t owner,
129 len, owner, offset, flags);
131 error = xfs_rmap_lookup_eq(rcur, agbno, len, owner, offset, flags, &i);
141 rcur->bc_rec.r.rm_owner = owner;
163 uint64_t owner,
171 len, owner, offset, flags);
173 error = xfs_rmap_lookup_eq(rcur, agbno, len, owner, offset, flags, &i);
341 * return a match with the same owner and adjacent physical and logical
348 uint64_t owner,
362 info.high.rm_owner = owner;
363 if (!XFS_RMAP_NON_INODE_OWNER(owner) &&
375 cur->bc_ag.pag->pag_agno, bno, 0, owner, offset, flags);
393 error = xfs_rmap_lookup_le(cur, bno, owner, offset, flags, irec,
441 * return a match with the same owner and overlapping physical and logical
449 uint64_t owner,
460 info.high.rm_owner = owner;
461 if (!XFS_RMAP_NON_INODE_OWNER(owner) && !(flags & XFS_RMAP_BMBT_BLOCK))
471 bno, 0, owner, offset, flags);
489 error = xfs_rmap_lookup_le(cur, bno, owner, offset, flags, irec,
510 * Perform all the relevant owner checks for a removal op. If we're doing an
511 * unknown-owner removal then we have no owner information to check.
519 uint64_t owner,
525 if (owner == XFS_RMAP_OWN_UNKNOWN)
536 /* Make sure the owner matches what we expect to find in the tree. */
537 if (XFS_IS_CORRUPT(mp, owner != rec->rm_owner)) {
543 if (XFS_RMAP_NON_INODE_OWNER(owner))
576 * used space in the btree. The growfs code will pass in an owner of
577 * XFS_RMAP_OWN_NULL to indicate that it expected that there is no owner of this
581 * Special Case #2: EFIs do not record the owner of the extent, so when
583 * btree to ignore the owner (i.e. wildcard match) so we don't trigger
599 uint64_t owner;
604 xfs_owner_info_unpack(oinfo, &owner, &offset, &flags);
605 ignore_off = XFS_RMAP_NON_INODE_OWNER(owner) ||
617 error = xfs_rmap_lookup_le(cur, bno, owner, offset, flags, <rec, &i);
638 if (owner == XFS_RMAP_OWN_NULL) {
649 * If we're doing an unknown-owner removal for EFI recovery, we expect
655 if (owner == XFS_RMAP_OWN_UNKNOWN &&
684 /* Check owner information. */
685 error = xfs_rmap_free_check_owner(mp, ltoff, <rec, len, owner,
819 * A mergeable rmap must have the same owner and the same values for
826 uint64_t owner,
831 if (irec->rm_owner != owner)
848 * owner, offset] record. Flags are encoded in the high bits of the offset
866 uint64_t owner;
871 xfs_owner_info_unpack(oinfo, &owner, &offset, &flags);
872 ASSERT(owner != 0);
873 ignore_off = XFS_RMAP_NON_INODE_OWNER(owner) ||
886 error = xfs_rmap_lookup_le(cur, bno, owner, offset, flags, <rec,
896 if (!xfs_rmap_is_mergeable(<rec, owner, flags))
931 if (!xfs_rmap_is_mergeable(>rec, owner, flags))
1010 * no contiguous edge with identical owner, insert
1015 cur->bc_rec.r.rm_owner = owner;
1019 owner, offset, flags);
1092 uint64_t owner;
1102 xfs_owner_info_unpack(oinfo, &owner, &offset, &flags);
1103 ASSERT(!(XFS_RMAP_NON_INODE_OWNER(owner) ||
1115 error = xfs_rmap_lookup_le(cur, bno, owner, offset, oldext, &PREV, &i);
1171 xfs_rmap_is_mergeable(&LEFT, owner, newext))
1209 xfs_rmap_is_mergeable(&RIGHT, owner, newext))
1226 error = xfs_rmap_lookup_le(cur, bno, owner, offset, oldext, NULL, &i);
1411 NEW.rm_owner = owner;
1417 len, owner, offset, newext);
1459 error = xfs_rmap_lookup_eq(cur, bno, len, owner, offset,
1468 NEW.rm_owner = owner;
1474 len, owner, offset, newext);
1492 NEW.rm_owner = owner;
1520 error = xfs_rmap_lookup_eq(cur, bno, len, owner, offset,
1532 owner, offset, newext);
1581 uint64_t owner;
1591 xfs_owner_info_unpack(oinfo, &owner, &offset, &flags);
1592 ASSERT(!(XFS_RMAP_NON_INODE_OWNER(owner) ||
1604 error = xfs_rmap_lookup_le_range(cur, bno, owner, offset, oldext,
1628 error = xfs_rmap_find_left_neighbor(cur, bno, owner, offset, newext,
1640 if (xfs_rmap_is_mergeable(&LEFT, owner, newext))
1645 error = xfs_rmap_lookup_eq(cur, bno + len, len, owner, offset + len,
1666 if (xfs_rmap_is_mergeable(&RIGHT, owner, newext))
1847 error = xfs_rmap_insert(cur, bno, len, owner, offset, newext);
1906 error = xfs_rmap_insert(cur, bno, len, owner, offset, newext);
1919 NEW.rm_owner = owner;
1947 NEW.rm_owner = owner;
1987 * that the prev/next records in the btree might belong to another owner.
1990 * For every other situation there can only be one owner for a given extent,
2006 uint64_t owner;
2010 xfs_owner_info_unpack(oinfo, &owner, &offset, &flags);
2021 error = xfs_rmap_lookup_le_range(cur, bno, owner, offset, flags,
2040 /* Make sure the owner matches what we expect to find in the tree. */
2041 if (XFS_IS_CORRUPT(mp, owner != ltrec.rm_owner)) {
2174 * that the prev/next records in the btree might belong to another owner.
2177 * For every other situation there can only be one owner for a given extent,
2195 uint64_t owner;
2199 xfs_owner_info_unpack(oinfo, &owner, &offset, &flags);
2206 error = xfs_rmap_find_left_neighbor(cur, bno, owner, offset, flags,
2211 !xfs_rmap_is_mergeable(<rec, owner, flags))
2215 error = xfs_rmap_lookup_eq(cur, bno + len, len, owner, offset + len,
2232 if (!xfs_rmap_is_mergeable(>rec, owner, flags))
2313 * No contiguous edge with identical owner, insert
2316 error = xfs_rmap_insert(cur, bno, len, owner, offset, flags);
2547 uint64_t owner,
2557 owner, whichfork,
2565 ri->ri_owner = owner;
2643 uint64_t owner)
2655 __xfs_rmap_add(tp, XFS_RMAP_ALLOC, owner, XFS_DATA_FORK, &bmap);
2665 uint64_t owner)
2677 __xfs_rmap_add(tp, XFS_RMAP_FREE, owner, XFS_DATA_FORK, &bmap);
2790 /* Figure out if this is a match for the owner. */
2862 * There can't be any non-owner rmaps that conflict with the given
2863 * owner if we didn't find any rmaps matching the owner.
2872 * Given an extent and some owner info, can we find records overlapping
2873 * the extent whose owner info does not match the given owner?