Lines Matching defs:owner

31  * Lookup the first record less than or equal to [bno, len, owner, offset]
38 uint64_t owner,
49 cur->bc_rec.r.rm_owner = owner;
69 * Lookup the record exactly matching [bno, len, owner, offset]
77 uint64_t owner,
84 cur->bc_rec.r.rm_owner = owner;
92 * by [bno, len, owner, offset].
124 uint64_t owner,
132 len, owner, offset, flags);
134 error = xfs_rmap_lookup_eq(rcur, agbno, len, owner, offset, flags, &i);
145 rcur->bc_rec.r.rm_owner = owner;
168 uint64_t owner,
176 len, owner, offset, flags);
178 error = xfs_rmap_lookup_eq(rcur, agbno, len, owner, offset, flags, &i);
363 * return a match with the same owner and adjacent physical and logical
370 uint64_t owner,
384 info.high.rm_owner = owner;
385 if (!XFS_RMAP_NON_INODE_OWNER(owner) &&
397 cur->bc_ag.pag->pag_agno, bno, 0, owner, offset, flags);
415 error = xfs_rmap_lookup_le(cur, bno, owner, offset, flags, irec,
463 * return a match with the same owner and overlapping physical and logical
471 uint64_t owner,
482 info.high.rm_owner = owner;
483 if (!XFS_RMAP_NON_INODE_OWNER(owner) && !(flags & XFS_RMAP_BMBT_BLOCK))
493 bno, 0, owner, offset, flags);
511 error = xfs_rmap_lookup_le(cur, bno, owner, offset, flags, irec,
532 * Perform all the relevant owner checks for a removal op. If we're doing an
533 * unknown-owner removal then we have no owner information to check.
541 uint64_t owner,
548 if (owner == XFS_RMAP_OWN_UNKNOWN)
560 /* Make sure the owner matches what we expect to find in the tree. */
561 if (XFS_IS_CORRUPT(mp, owner != rec->rm_owner)) {
568 if (XFS_RMAP_NON_INODE_OWNER(owner))
604 * used space in the btree. The growfs code will pass in an owner of
605 * XFS_RMAP_OWN_NULL to indicate that it expected that there is no owner of this
609 * Special Case #2: EFIs do not record the owner of the extent, so when
611 * btree to ignore the owner (i.e. wildcard match) so we don't trigger
627 uint64_t owner;
632 xfs_owner_info_unpack(oinfo, &owner, &offset, &flags);
633 ignore_off = XFS_RMAP_NON_INODE_OWNER(owner) ||
645 error = xfs_rmap_lookup_le(cur, bno, owner, offset, flags, &ltrec, &i);
667 if (owner == XFS_RMAP_OWN_NULL) {
679 * If we're doing an unknown-owner removal for EFI recovery, we expect
685 if (owner == XFS_RMAP_OWN_UNKNOWN &&
716 /* Check owner information. */
717 error = xfs_rmap_free_check_owner(cur, ltoff, &ltrec, len, owner,
932 * A mergeable rmap must have the same owner and the same values for
939 uint64_t owner,
944 if (irec->rm_owner != owner)
961 * owner, offset] record. Flags are encoded in the high bits of the offset
979 uint64_t owner;
984 xfs_owner_info_unpack(oinfo, &owner, &offset, &flags);
985 ASSERT(owner != 0);
986 ignore_off = XFS_RMAP_NON_INODE_OWNER(owner) ||
999 error = xfs_rmap_lookup_le(cur, bno, owner, offset, flags, &ltrec,
1009 if (!xfs_rmap_is_mergeable(&ltrec, owner, flags))
1047 if (!xfs_rmap_is_mergeable(&gtrec, owner, flags))
1127 * no contiguous edge with identical owner, insert
1132 cur->bc_rec.r.rm_owner = owner;
1136 owner, offset, flags);
1211 uint64_t owner;
1221 xfs_owner_info_unpack(oinfo, &owner, &offset, &flags);
1222 ASSERT(!(XFS_RMAP_NON_INODE_OWNER(owner) ||
1234 error = xfs_rmap_lookup_le(cur, bno, owner, offset, oldext, &PREV, &i);
1293 xfs_rmap_is_mergeable(&LEFT, owner, newext))
1334 xfs_rmap_is_mergeable(&RIGHT, owner, newext))
1351 error = xfs_rmap_lookup_le(cur, bno, owner, offset, oldext, NULL, &i);
1547 NEW.rm_owner = owner;
1553 len, owner, offset, newext);
1596 error = xfs_rmap_lookup_eq(cur, bno, len, owner, offset,
1606 NEW.rm_owner = owner;
1612 len, owner, offset, newext);
1631 NEW.rm_owner = owner;
1660 error = xfs_rmap_lookup_eq(cur, bno, len, owner, offset,
1673 owner, offset, newext);
1723 uint64_t owner;
1733 xfs_owner_info_unpack(oinfo, &owner, &offset, &flags);
1734 ASSERT(!(XFS_RMAP_NON_INODE_OWNER(owner) ||
1746 error = xfs_rmap_lookup_le_range(cur, bno, owner, offset, oldext,
1771 error = xfs_rmap_find_left_neighbor(cur, bno, owner, offset, newext,
1784 if (xfs_rmap_is_mergeable(&LEFT, owner, newext))
1789 error = xfs_rmap_lookup_eq(cur, bno + len, len, owner, offset + len,
1812 if (xfs_rmap_is_mergeable(&RIGHT, owner, newext))
1998 error = xfs_rmap_insert(cur, bno, len, owner, offset, newext);
2059 error = xfs_rmap_insert(cur, bno, len, owner, offset, newext);
2072 NEW.rm_owner = owner;
2101 NEW.rm_owner = owner;
2141 * that the prev/next records in the btree might belong to another owner.
2144 * For every other situation there can only be one owner for a given extent,
2160 uint64_t owner;
2164 xfs_owner_info_unpack(oinfo, &owner, &offset, &flags);
2175 error = xfs_rmap_lookup_le_range(cur, bno, owner, offset, flags,
2196 /* Make sure the owner matches what we expect to find in the tree. */
2197 if (XFS_IS_CORRUPT(mp, owner != ltrec.rm_owner)) {
2336 * that the prev/next records in the btree might belong to another owner.
2339 * For every other situation there can only be one owner for a given extent,
2357 uint64_t owner;
2361 xfs_owner_info_unpack(oinfo, &owner, &offset, &flags);
2368 error = xfs_rmap_find_left_neighbor(cur, bno, owner, offset, flags,
2373 !xfs_rmap_is_mergeable(&ltrec, owner, flags))
2377 error = xfs_rmap_lookup_eq(cur, bno + len, len, owner, offset + len,
2395 if (!xfs_rmap_is_mergeable(&gtrec, owner, flags))
2477 * No contiguous edge with identical owner, insert
2480 error = xfs_rmap_insert(cur, bno, len, owner, offset, flags);
2719 uint64_t owner,
2729 owner, whichfork,
2737 ri->ri_owner = owner;
2815 uint64_t owner)
2827 __xfs_rmap_add(tp, XFS_RMAP_ALLOC, owner, XFS_DATA_FORK, &bmap);
2837 uint64_t owner)
2849 __xfs_rmap_add(tp, XFS_RMAP_FREE, owner, XFS_DATA_FORK, &bmap);
2962 /* Figure out if this is a match for the owner. */
3034 * There can't be any non-owner rmaps that conflict with the given
3035 * owner if we didn't find any rmaps matching the owner.
3044 * Given an extent and some owner info, can we find records overlapping
3045 * the extent whose owner info does not match the given owner?