Lines Matching refs:found_rec

244 	int			found_rec;  in xfs_refcount_delete()  local
247 error = xfs_refcount_get_rec(cur, &irec, &found_rec); in xfs_refcount_delete()
250 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_delete()
263 &found_rec); in xfs_refcount_delete()
367 int found_rec; in xfs_refcount_split_extent() local
371 error = xfs_refcount_lookup_le(cur, domain, agbno, &found_rec); in xfs_refcount_split_extent()
374 if (!found_rec) in xfs_refcount_split_extent()
377 error = xfs_refcount_get_rec(cur, &rcext, &found_rec); in xfs_refcount_split_extent()
380 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_split_extent()
404 error = xfs_refcount_insert(cur, &tmp, &found_rec); in xfs_refcount_split_extent()
407 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_split_extent()
432 int found_rec; in xfs_refcount_merge_center_extents() local
449 center->rc_startblock, &found_rec); in xfs_refcount_merge_center_extents()
452 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_merge_center_extents()
457 error = xfs_refcount_delete(cur, &found_rec); in xfs_refcount_merge_center_extents()
460 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_merge_center_extents()
466 error = xfs_refcount_delete(cur, &found_rec); in xfs_refcount_merge_center_extents()
469 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_merge_center_extents()
477 left->rc_startblock, &found_rec); in xfs_refcount_merge_center_extents()
480 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_merge_center_extents()
511 int found_rec; in xfs_refcount_merge_left_extent() local
521 cleft->rc_startblock, &found_rec); in xfs_refcount_merge_left_extent()
524 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_merge_left_extent()
529 error = xfs_refcount_delete(cur, &found_rec); in xfs_refcount_merge_left_extent()
532 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_merge_left_extent()
540 left->rc_startblock, &found_rec); in xfs_refcount_merge_left_extent()
543 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_merge_left_extent()
574 int found_rec; in xfs_refcount_merge_right_extent() local
587 cright->rc_startblock, &found_rec); in xfs_refcount_merge_right_extent()
590 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_merge_right_extent()
595 error = xfs_refcount_delete(cur, &found_rec); in xfs_refcount_merge_right_extent()
598 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_merge_right_extent()
606 right->rc_startblock, &found_rec); in xfs_refcount_merge_right_extent()
609 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_merge_right_extent()
644 int found_rec; in xfs_refcount_find_left_extents() local
647 error = xfs_refcount_lookup_le(cur, domain, agbno - 1, &found_rec); in xfs_refcount_find_left_extents()
650 if (!found_rec) in xfs_refcount_find_left_extents()
653 error = xfs_refcount_get_rec(cur, &tmp, &found_rec); in xfs_refcount_find_left_extents()
656 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_find_left_extents()
668 error = xfs_btree_increment(cur, 0, &found_rec); in xfs_refcount_find_left_extents()
671 if (found_rec) { in xfs_refcount_find_left_extents()
672 error = xfs_refcount_get_rec(cur, &tmp, &found_rec); in xfs_refcount_find_left_extents()
675 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_find_left_extents()
737 int found_rec; in xfs_refcount_find_right_extents() local
740 error = xfs_refcount_lookup_ge(cur, domain, agbno + aglen, &found_rec); in xfs_refcount_find_right_extents()
743 if (!found_rec) in xfs_refcount_find_right_extents()
746 error = xfs_refcount_get_rec(cur, &tmp, &found_rec); in xfs_refcount_find_right_extents()
749 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_find_right_extents()
761 error = xfs_btree_decrement(cur, 0, &found_rec); in xfs_refcount_find_right_extents()
764 if (found_rec) { in xfs_refcount_find_right_extents()
765 error = xfs_refcount_get_rec(cur, &tmp, &found_rec); in xfs_refcount_find_right_extents()
768 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_find_right_extents()
961 int found_rec, found_tmp; in xfs_refcount_adjust_extents() local
969 &found_rec); in xfs_refcount_adjust_extents()
974 error = xfs_refcount_get_rec(cur, &ext, &found_rec); in xfs_refcount_adjust_extents()
977 if (!found_rec || ext.rc_domain != XFS_REFC_DOMAIN_SHARED) { in xfs_refcount_adjust_extents()
1032 &found_rec); in xfs_refcount_adjust_extents()
1065 error = xfs_refcount_delete(cur, &found_rec); in xfs_refcount_adjust_extents()
1068 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_adjust_extents()
1082 error = xfs_btree_increment(cur, 0, &found_rec); in xfs_refcount_adjust_extents()
1545 int found_rec, found_tmp; in xfs_refcount_adjust_cow_extents() local
1552 &found_rec); in xfs_refcount_adjust_cow_extents()
1555 error = xfs_refcount_get_rec(cur, &ext, &found_rec); in xfs_refcount_adjust_cow_extents()
1558 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec && in xfs_refcount_adjust_cow_extents()
1563 if (!found_rec) { in xfs_refcount_adjust_cow_extents()
1614 error = xfs_refcount_delete(cur, &found_rec); in xfs_refcount_adjust_cow_extents()
1617 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_adjust_cow_extents()