Lines Matching refs:found_rec
266 int found_rec; in xfs_refcount_delete() local
269 error = xfs_refcount_get_rec(cur, &irec, &found_rec); in xfs_refcount_delete()
272 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_delete()
285 &found_rec); in xfs_refcount_delete()
389 int found_rec; in xfs_refcount_split_extent() local
393 error = xfs_refcount_lookup_le(cur, domain, agbno, &found_rec); in xfs_refcount_split_extent()
396 if (!found_rec) in xfs_refcount_split_extent()
399 error = xfs_refcount_get_rec(cur, &rcext, &found_rec); in xfs_refcount_split_extent()
402 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_split_extent()
426 error = xfs_refcount_insert(cur, &tmp, &found_rec); in xfs_refcount_split_extent()
429 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_split_extent()
454 int found_rec; in xfs_refcount_merge_center_extents() local
471 center->rc_startblock, &found_rec); in xfs_refcount_merge_center_extents()
474 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_merge_center_extents()
479 error = xfs_refcount_delete(cur, &found_rec); in xfs_refcount_merge_center_extents()
482 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_merge_center_extents()
488 error = xfs_refcount_delete(cur, &found_rec); in xfs_refcount_merge_center_extents()
491 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_merge_center_extents()
499 left->rc_startblock, &found_rec); in xfs_refcount_merge_center_extents()
502 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_merge_center_extents()
533 int found_rec; in xfs_refcount_merge_left_extent() local
543 cleft->rc_startblock, &found_rec); in xfs_refcount_merge_left_extent()
546 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_merge_left_extent()
551 error = xfs_refcount_delete(cur, &found_rec); in xfs_refcount_merge_left_extent()
554 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_merge_left_extent()
562 left->rc_startblock, &found_rec); in xfs_refcount_merge_left_extent()
565 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_merge_left_extent()
596 int found_rec; in xfs_refcount_merge_right_extent() local
609 cright->rc_startblock, &found_rec); in xfs_refcount_merge_right_extent()
612 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_merge_right_extent()
617 error = xfs_refcount_delete(cur, &found_rec); in xfs_refcount_merge_right_extent()
620 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_merge_right_extent()
628 right->rc_startblock, &found_rec); in xfs_refcount_merge_right_extent()
631 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_merge_right_extent()
666 int found_rec; in xfs_refcount_find_left_extents() local
669 error = xfs_refcount_lookup_le(cur, domain, agbno - 1, &found_rec); in xfs_refcount_find_left_extents()
672 if (!found_rec) in xfs_refcount_find_left_extents()
675 error = xfs_refcount_get_rec(cur, &tmp, &found_rec); in xfs_refcount_find_left_extents()
678 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_find_left_extents()
690 error = xfs_btree_increment(cur, 0, &found_rec); in xfs_refcount_find_left_extents()
693 if (found_rec) { in xfs_refcount_find_left_extents()
694 error = xfs_refcount_get_rec(cur, &tmp, &found_rec); in xfs_refcount_find_left_extents()
697 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_find_left_extents()
759 int found_rec; in xfs_refcount_find_right_extents() local
762 error = xfs_refcount_lookup_ge(cur, domain, agbno + aglen, &found_rec); in xfs_refcount_find_right_extents()
765 if (!found_rec) in xfs_refcount_find_right_extents()
768 error = xfs_refcount_get_rec(cur, &tmp, &found_rec); in xfs_refcount_find_right_extents()
771 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_find_right_extents()
783 error = xfs_btree_decrement(cur, 0, &found_rec); in xfs_refcount_find_right_extents()
786 if (found_rec) { in xfs_refcount_find_right_extents()
787 error = xfs_refcount_get_rec(cur, &tmp, &found_rec); in xfs_refcount_find_right_extents()
790 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_find_right_extents()
1097 int found_rec, found_tmp; in xfs_refcount_adjust_extents() local
1105 &found_rec); in xfs_refcount_adjust_extents()
1110 error = xfs_refcount_get_rec(cur, &ext, &found_rec); in xfs_refcount_adjust_extents()
1113 if (!found_rec || ext.rc_domain != XFS_REFC_DOMAIN_SHARED) { in xfs_refcount_adjust_extents()
1171 &found_rec); in xfs_refcount_adjust_extents()
1204 error = xfs_refcount_delete(cur, &found_rec); in xfs_refcount_adjust_extents()
1207 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_adjust_extents()
1224 error = xfs_btree_increment(cur, 0, &found_rec); in xfs_refcount_adjust_extents()
1672 int found_rec, found_tmp; in xfs_refcount_adjust_cow_extents() local
1679 &found_rec); in xfs_refcount_adjust_cow_extents()
1682 error = xfs_refcount_get_rec(cur, &ext, &found_rec); in xfs_refcount_adjust_cow_extents()
1685 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec && in xfs_refcount_adjust_cow_extents()
1690 if (!found_rec) { in xfs_refcount_adjust_cow_extents()
1741 error = xfs_refcount_delete(cur, &found_rec); in xfs_refcount_adjust_cow_extents()
1744 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_adjust_cow_extents()