Lines Matching refs:owner

26  * Lookup the first record less than or equal to [bno, len, owner, offset]
34 uint64_t owner,
41 cur->bc_rec.r.rm_owner = owner;
48 * Lookup the record exactly matching [bno, len, owner, offset]
56 uint64_t owner,
63 cur->bc_rec.r.rm_owner = owner;
71 * by [bno, len, owner, offset].
103 uint64_t owner,
111 len, owner, offset, flags);
113 error = xfs_rmap_lookup_eq(rcur, agbno, len, owner, offset, flags, &i);
123 rcur->bc_rec.r.rm_owner = owner;
145 uint64_t owner,
153 len, owner, offset, flags);
155 error = xfs_rmap_lookup_eq(rcur, agbno, len, owner, offset, flags, &i);
281 * return a match with the same owner and adjacent physical and logical
288 uint64_t owner,
301 info.high.rm_owner = owner;
302 if (!XFS_RMAP_NON_INODE_OWNER(owner) &&
315 cur->bc_ag.agno, bno, 0, owner, offset, flags);
358 * return a match with the same owner and overlapping physical and logical
366 uint64_t owner,
376 info.high.rm_owner = owner;
377 if (!XFS_RMAP_NON_INODE_OWNER(owner) && !(flags & XFS_RMAP_BMBT_BLOCK))
388 cur->bc_ag.agno, bno, 0, owner, offset, flags);
402 * Perform all the relevant owner checks for a removal op. If we're doing an
403 * unknown-owner removal then we have no owner information to check.
411 uint64_t owner,
417 if (owner == XFS_RMAP_OWN_UNKNOWN)
428 /* Make sure the owner matches what we expect to find in the tree. */
429 if (XFS_IS_CORRUPT(mp, owner != rec->rm_owner)) {
435 if (XFS_RMAP_NON_INODE_OWNER(owner))
468 * used space in the btree. The growfs code will pass in an owner of
469 * XFS_RMAP_OWN_NULL to indicate that it expected that there is no owner of this
473 * Special Case #2: EFIs do not record the owner of the extent, so when
475 * btree to ignore the owner (i.e. wildcard match) so we don't trigger
491 uint64_t owner;
496 xfs_owner_info_unpack(oinfo, &owner, &offset, &flags);
497 ignore_off = XFS_RMAP_NON_INODE_OWNER(owner) ||
509 error = xfs_rmap_lookup_le(cur, bno, len, owner, offset, flags, &i);
537 if (owner == XFS_RMAP_OWN_NULL) {
548 * If we're doing an unknown-owner removal for EFI recovery, we expect
554 if (owner == XFS_RMAP_OWN_UNKNOWN &&
583 /* Check owner information. */
584 error = xfs_rmap_free_check_owner(mp, ltoff, &ltrec, len, owner,
718 * A mergeable rmap must have the same owner and the same values for
725 uint64_t owner,
730 if (irec->rm_owner != owner)
747 * owner, offset] record. Flags are encoded in the high bits of the offset
765 uint64_t owner;
770 xfs_owner_info_unpack(oinfo, &owner, &offset, &flags);
771 ASSERT(owner != 0);
772 ignore_off = XFS_RMAP_NON_INODE_OWNER(owner) ||
785 error = xfs_rmap_lookup_le(cur, bno, len, owner, offset, flags,
802 if (!xfs_rmap_is_mergeable(&ltrec, owner, flags))
837 if (!xfs_rmap_is_mergeable(&gtrec, owner, flags))
916 * no contiguous edge with identical owner, insert
921 cur->bc_rec.r.rm_owner = owner;
925 owner, offset, flags);
998 uint64_t owner;
1008 xfs_owner_info_unpack(oinfo, &owner, &offset, &flags);
1009 ASSERT(!(XFS_RMAP_NON_INODE_OWNER(owner) ||
1021 error = xfs_rmap_lookup_le(cur, bno, len, owner, offset, oldext, &i);
1084 xfs_rmap_is_mergeable(&LEFT, owner, newext))
1122 xfs_rmap_is_mergeable(&RIGHT, owner, newext))
1139 error = xfs_rmap_lookup_le(cur, bno, len, owner, offset, oldext, &i);
1324 NEW.rm_owner = owner;
1330 len, owner, offset, newext);
1372 error = xfs_rmap_lookup_eq(cur, bno, len, owner, offset,
1381 NEW.rm_owner = owner;
1387 len, owner, offset, newext);
1405 NEW.rm_owner = owner;
1433 error = xfs_rmap_lookup_eq(cur, bno, len, owner, offset,
1445 owner, offset, newext);
1494 uint64_t owner;
1504 xfs_owner_info_unpack(oinfo, &owner, &offset, &flags);
1505 ASSERT(!(XFS_RMAP_NON_INODE_OWNER(owner) ||
1517 error = xfs_rmap_lookup_le_range(cur, bno, owner, offset, oldext,
1541 error = xfs_rmap_find_left_neighbor(cur, bno, owner, offset, newext,
1553 if (xfs_rmap_is_mergeable(&LEFT, owner, newext))
1558 error = xfs_rmap_lookup_eq(cur, bno + len, len, owner, offset + len,
1579 if (xfs_rmap_is_mergeable(&RIGHT, owner, newext))
1760 error = xfs_rmap_insert(cur, bno, len, owner, offset, newext);
1819 error = xfs_rmap_insert(cur, bno, len, owner, offset, newext);
1832 NEW.rm_owner = owner;
1860 NEW.rm_owner = owner;
1900 * that the prev/next records in the btree might belong to another owner.
1903 * For every other situation there can only be one owner for a given extent,
1919 uint64_t owner;
1923 xfs_owner_info_unpack(oinfo, &owner, &offset, &flags);
1934 error = xfs_rmap_lookup_le_range(cur, bno, owner, offset, flags,
1953 /* Make sure the owner matches what we expect to find in the tree. */
1954 if (XFS_IS_CORRUPT(mp, owner != ltrec.rm_owner)) {
2087 * that the prev/next records in the btree might belong to another owner.
2090 * For every other situation there can only be one owner for a given extent,
2108 uint64_t owner;
2112 xfs_owner_info_unpack(oinfo, &owner, &offset, &flags);
2119 error = xfs_rmap_find_left_neighbor(cur, bno, owner, offset, flags,
2124 !xfs_rmap_is_mergeable(&ltrec, owner, flags))
2128 error = xfs_rmap_lookup_eq(cur, bno + len, len, owner, offset + len,
2145 if (!xfs_rmap_is_mergeable(&gtrec, owner, flags))
2226 * No contiguous edge with identical owner, insert
2229 error = xfs_rmap_insert(cur, bno, len, owner, offset, flags);
2356 uint64_t owner,
2377 trace_xfs_rmap_deferred(mp, agno, type, bno, owner, whichfork,
2414 xfs_rmap_ino_owner(&oinfo, owner, whichfork, startoff);
2475 uint64_t owner,
2485 owner, whichfork,
2493 ri->ri_owner = owner;
2570 uint64_t owner)
2582 __xfs_rmap_add(tp, XFS_RMAP_ALLOC, owner, XFS_DATA_FORK, &bmap);
2592 uint64_t owner)
2604 __xfs_rmap_add(tp, XFS_RMAP_FREE, owner, XFS_DATA_FORK, &bmap);
2655 * Is there a record for this owner completely covering a given physical
2669 uint64_t owner;
2676 xfs_owner_info_unpack(oinfo, &owner, &offset, &flags);
2677 ASSERT(XFS_RMAP_NON_INODE_OWNER(owner) ||
2680 error = xfs_rmap_lookup_le(cur, bno, len, owner, offset, flags,
2697 *has_rmap = (irec.rm_owner == owner && irec.rm_startblock <= bno &&
2703 uint64_t owner;
2717 if (rks->owner == rec->rm_owner && rks->offset == rec->rm_offset &&
2724 * Given an extent and some owner info, can we find records overlapping
2725 * the extent whose owner info does not match the given owner?
2740 xfs_owner_info_unpack(oinfo, &rks.owner, &rks.offset, &rks.flags);