Lines Matching refs:found_rec

228 	int			found_rec;  in xfs_refcount_delete()  local
231 error = xfs_refcount_get_rec(cur, &irec, &found_rec); in xfs_refcount_delete()
234 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_delete()
246 error = xfs_refcount_lookup_ge(cur, irec.rc_startblock, &found_rec); in xfs_refcount_delete()
349 int found_rec; in xfs_refcount_split_extent() local
353 error = xfs_refcount_lookup_le(cur, agbno, &found_rec); in xfs_refcount_split_extent()
356 if (!found_rec) in xfs_refcount_split_extent()
359 error = xfs_refcount_get_rec(cur, &rcext, &found_rec); in xfs_refcount_split_extent()
362 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_split_extent()
384 error = xfs_refcount_insert(cur, &tmp, &found_rec); in xfs_refcount_split_extent()
387 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_split_extent()
412 int found_rec; in xfs_refcount_merge_center_extents() local
426 &found_rec); in xfs_refcount_merge_center_extents()
429 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_merge_center_extents()
434 error = xfs_refcount_delete(cur, &found_rec); in xfs_refcount_merge_center_extents()
437 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_merge_center_extents()
443 error = xfs_refcount_delete(cur, &found_rec); in xfs_refcount_merge_center_extents()
446 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_merge_center_extents()
454 &found_rec); in xfs_refcount_merge_center_extents()
457 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_merge_center_extents()
488 int found_rec; in xfs_refcount_merge_left_extent() local
496 &found_rec); in xfs_refcount_merge_left_extent()
499 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_merge_left_extent()
504 error = xfs_refcount_delete(cur, &found_rec); in xfs_refcount_merge_left_extent()
507 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_merge_left_extent()
515 &found_rec); in xfs_refcount_merge_left_extent()
518 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_merge_left_extent()
549 int found_rec; in xfs_refcount_merge_right_extent() local
560 &found_rec); in xfs_refcount_merge_right_extent()
563 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_merge_right_extent()
568 error = xfs_refcount_delete(cur, &found_rec); in xfs_refcount_merge_right_extent()
571 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_merge_right_extent()
579 &found_rec); in xfs_refcount_merge_right_extent()
582 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_merge_right_extent()
619 int found_rec; in xfs_refcount_find_left_extents() local
622 error = xfs_refcount_lookup_le(cur, agbno - 1, &found_rec); in xfs_refcount_find_left_extents()
625 if (!found_rec) in xfs_refcount_find_left_extents()
628 error = xfs_refcount_get_rec(cur, &tmp, &found_rec); in xfs_refcount_find_left_extents()
631 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_find_left_extents()
645 error = xfs_btree_increment(cur, 0, &found_rec); in xfs_refcount_find_left_extents()
648 if (found_rec) { in xfs_refcount_find_left_extents()
649 error = xfs_refcount_get_rec(cur, &tmp, &found_rec); in xfs_refcount_find_left_extents()
652 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_find_left_extents()
708 int found_rec; in xfs_refcount_find_right_extents() local
711 error = xfs_refcount_lookup_ge(cur, agbno + aglen, &found_rec); in xfs_refcount_find_right_extents()
714 if (!found_rec) in xfs_refcount_find_right_extents()
717 error = xfs_refcount_get_rec(cur, &tmp, &found_rec); in xfs_refcount_find_right_extents()
720 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_find_right_extents()
734 error = xfs_btree_decrement(cur, 0, &found_rec); in xfs_refcount_find_right_extents()
737 if (found_rec) { in xfs_refcount_find_right_extents()
738 error = xfs_refcount_get_rec(cur, &tmp, &found_rec); in xfs_refcount_find_right_extents()
741 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_find_right_extents()
924 int found_rec, found_tmp; in xfs_refcount_adjust_extents() local
931 error = xfs_refcount_lookup_ge(cur, *agbno, &found_rec); in xfs_refcount_adjust_extents()
936 error = xfs_refcount_get_rec(cur, &ext, &found_rec); in xfs_refcount_adjust_extents()
939 if (!found_rec) { in xfs_refcount_adjust_extents()
985 &found_rec); in xfs_refcount_adjust_extents()
1009 error = xfs_refcount_delete(cur, &found_rec); in xfs_refcount_adjust_extents()
1012 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_adjust_extents()
1027 error = xfs_btree_increment(cur, 0, &found_rec); in xfs_refcount_adjust_extents()
1450 int found_rec, found_tmp; in xfs_refcount_adjust_cow_extents() local
1456 error = xfs_refcount_lookup_ge(cur, agbno, &found_rec); in xfs_refcount_adjust_cow_extents()
1459 error = xfs_refcount_get_rec(cur, &ext, &found_rec); in xfs_refcount_adjust_cow_extents()
1462 if (!found_rec) { in xfs_refcount_adjust_cow_extents()
1511 error = xfs_refcount_delete(cur, &found_rec); in xfs_refcount_adjust_cow_extents()
1514 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_adjust_cow_extents()