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()
287 &found_rec); in xfs_refcount_delete()
390 int found_rec; in xfs_refcount_split_extent() local
394 error = xfs_refcount_lookup_le(cur, domain, agbno, &found_rec); in xfs_refcount_split_extent()
397 if (!found_rec) in xfs_refcount_split_extent()
400 error = xfs_refcount_get_rec(cur, &rcext, &found_rec); in xfs_refcount_split_extent()
403 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_split_extent()
427 error = xfs_refcount_insert(cur, &tmp, &found_rec); in xfs_refcount_split_extent()
430 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_split_extent()
455 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()
480 error = xfs_refcount_delete(cur, &found_rec); in xfs_refcount_merge_center_extents()
483 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_merge_center_extents()
490 error = xfs_refcount_delete(cur, &found_rec); in xfs_refcount_merge_center_extents()
493 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_merge_center_extents()
502 left->rc_startblock, &found_rec); in xfs_refcount_merge_center_extents()
505 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_merge_center_extents()
536 int found_rec; in xfs_refcount_merge_left_extent() local
545 cleft->rc_startblock, &found_rec); in xfs_refcount_merge_left_extent()
548 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_merge_left_extent()
554 error = xfs_refcount_delete(cur, &found_rec); in xfs_refcount_merge_left_extent()
557 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_merge_left_extent()
566 left->rc_startblock, &found_rec); in xfs_refcount_merge_left_extent()
569 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_merge_left_extent()
600 int found_rec; in xfs_refcount_merge_right_extent() local
612 cright->rc_startblock, &found_rec); in xfs_refcount_merge_right_extent()
615 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_merge_right_extent()
621 error = xfs_refcount_delete(cur, &found_rec); in xfs_refcount_merge_right_extent()
624 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_merge_right_extent()
633 right->rc_startblock, &found_rec); in xfs_refcount_merge_right_extent()
636 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_merge_right_extent()
671 int found_rec; in xfs_refcount_find_left_extents() local
674 error = xfs_refcount_lookup_le(cur, domain, agbno - 1, &found_rec); in xfs_refcount_find_left_extents()
677 if (!found_rec) in xfs_refcount_find_left_extents()
680 error = xfs_refcount_get_rec(cur, &tmp, &found_rec); in xfs_refcount_find_left_extents()
683 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_find_left_extents()
696 error = xfs_btree_increment(cur, 0, &found_rec); in xfs_refcount_find_left_extents()
699 if (found_rec) { in xfs_refcount_find_left_extents()
700 error = xfs_refcount_get_rec(cur, &tmp, &found_rec); in xfs_refcount_find_left_extents()
703 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_find_left_extents()
764 int found_rec; in xfs_refcount_find_right_extents() local
767 error = xfs_refcount_lookup_ge(cur, domain, agbno + aglen, &found_rec); in xfs_refcount_find_right_extents()
770 if (!found_rec) in xfs_refcount_find_right_extents()
773 error = xfs_refcount_get_rec(cur, &tmp, &found_rec); in xfs_refcount_find_right_extents()
776 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_find_right_extents()
789 error = xfs_btree_decrement(cur, 0, &found_rec); in xfs_refcount_find_right_extents()
792 if (found_rec) { in xfs_refcount_find_right_extents()
793 error = xfs_refcount_get_rec(cur, &tmp, &found_rec); in xfs_refcount_find_right_extents()
796 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_find_right_extents()
1103 int found_rec, found_tmp; in xfs_refcount_adjust_extents() local
1111 &found_rec); in xfs_refcount_adjust_extents()
1116 error = xfs_refcount_get_rec(cur, &ext, &found_rec); in xfs_refcount_adjust_extents()
1119 if (!found_rec || ext.rc_domain != XFS_REFC_DOMAIN_SHARED) { in xfs_refcount_adjust_extents()
1177 &found_rec); in xfs_refcount_adjust_extents()
1210 error = xfs_refcount_delete(cur, &found_rec); in xfs_refcount_adjust_extents()
1213 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_adjust_extents()
1231 error = xfs_btree_increment(cur, 0, &found_rec); in xfs_refcount_adjust_extents()
1650 int found_rec, found_tmp; in xfs_refcount_adjust_cow_extents() local
1657 &found_rec); in xfs_refcount_adjust_cow_extents()
1660 error = xfs_refcount_get_rec(cur, &ext, &found_rec); in xfs_refcount_adjust_cow_extents()
1663 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec && in xfs_refcount_adjust_cow_extents()
1669 if (!found_rec) { in xfs_refcount_adjust_cow_extents()
1723 error = xfs_refcount_delete(cur, &found_rec); in xfs_refcount_adjust_cow_extents()
1726 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_adjust_cow_extents()