Lines Matching refs:found_rec
227 int found_rec; in xfs_refcount_delete() local
230 error = xfs_refcount_get_rec(cur, &irec, &found_rec); in xfs_refcount_delete()
233 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_delete()
245 error = xfs_refcount_lookup_ge(cur, irec.rc_startblock, &found_rec); in xfs_refcount_delete()
348 int found_rec; in xfs_refcount_split_extent() local
352 error = xfs_refcount_lookup_le(cur, agbno, &found_rec); in xfs_refcount_split_extent()
355 if (!found_rec) in xfs_refcount_split_extent()
358 error = xfs_refcount_get_rec(cur, &rcext, &found_rec); in xfs_refcount_split_extent()
361 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_split_extent()
383 error = xfs_refcount_insert(cur, &tmp, &found_rec); in xfs_refcount_split_extent()
386 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_split_extent()
411 int found_rec; in xfs_refcount_merge_center_extents() local
425 &found_rec); in xfs_refcount_merge_center_extents()
428 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_merge_center_extents()
433 error = xfs_refcount_delete(cur, &found_rec); in xfs_refcount_merge_center_extents()
436 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_merge_center_extents()
442 error = xfs_refcount_delete(cur, &found_rec); in xfs_refcount_merge_center_extents()
445 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_merge_center_extents()
453 &found_rec); in xfs_refcount_merge_center_extents()
456 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_merge_center_extents()
487 int found_rec; in xfs_refcount_merge_left_extent() local
495 &found_rec); in xfs_refcount_merge_left_extent()
498 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_merge_left_extent()
503 error = xfs_refcount_delete(cur, &found_rec); in xfs_refcount_merge_left_extent()
506 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_merge_left_extent()
514 &found_rec); in xfs_refcount_merge_left_extent()
517 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_merge_left_extent()
548 int found_rec; in xfs_refcount_merge_right_extent() local
559 &found_rec); in xfs_refcount_merge_right_extent()
562 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_merge_right_extent()
567 error = xfs_refcount_delete(cur, &found_rec); in xfs_refcount_merge_right_extent()
570 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_merge_right_extent()
578 &found_rec); in xfs_refcount_merge_right_extent()
581 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_merge_right_extent()
618 int found_rec; in xfs_refcount_find_left_extents() local
621 error = xfs_refcount_lookup_le(cur, agbno - 1, &found_rec); in xfs_refcount_find_left_extents()
624 if (!found_rec) in xfs_refcount_find_left_extents()
627 error = xfs_refcount_get_rec(cur, &tmp, &found_rec); in xfs_refcount_find_left_extents()
630 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_find_left_extents()
644 error = xfs_btree_increment(cur, 0, &found_rec); in xfs_refcount_find_left_extents()
647 if (found_rec) { in xfs_refcount_find_left_extents()
648 error = xfs_refcount_get_rec(cur, &tmp, &found_rec); in xfs_refcount_find_left_extents()
651 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_find_left_extents()
707 int found_rec; in xfs_refcount_find_right_extents() local
710 error = xfs_refcount_lookup_ge(cur, agbno + aglen, &found_rec); in xfs_refcount_find_right_extents()
713 if (!found_rec) in xfs_refcount_find_right_extents()
716 error = xfs_refcount_get_rec(cur, &tmp, &found_rec); in xfs_refcount_find_right_extents()
719 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_find_right_extents()
733 error = xfs_btree_decrement(cur, 0, &found_rec); in xfs_refcount_find_right_extents()
736 if (found_rec) { in xfs_refcount_find_right_extents()
737 error = xfs_refcount_get_rec(cur, &tmp, &found_rec); in xfs_refcount_find_right_extents()
740 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_find_right_extents()
923 int found_rec, found_tmp; in xfs_refcount_adjust_extents() local
930 error = xfs_refcount_lookup_ge(cur, *agbno, &found_rec); in xfs_refcount_adjust_extents()
935 error = xfs_refcount_get_rec(cur, &ext, &found_rec); in xfs_refcount_adjust_extents()
938 if (!found_rec) { in xfs_refcount_adjust_extents()
984 &found_rec); in xfs_refcount_adjust_extents()
1008 error = xfs_refcount_delete(cur, &found_rec); in xfs_refcount_adjust_extents()
1011 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_adjust_extents()
1026 error = xfs_btree_increment(cur, 0, &found_rec); in xfs_refcount_adjust_extents()
1456 int found_rec, found_tmp; in xfs_refcount_adjust_cow_extents() local
1462 error = xfs_refcount_lookup_ge(cur, agbno, &found_rec); in xfs_refcount_adjust_cow_extents()
1465 error = xfs_refcount_get_rec(cur, &ext, &found_rec); in xfs_refcount_adjust_cow_extents()
1468 if (!found_rec) { in xfs_refcount_adjust_cow_extents()
1517 error = xfs_refcount_delete(cur, &found_rec); in xfs_refcount_adjust_cow_extents()
1520 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_adjust_cow_extents()