Lines Matching refs:ARCH_CONVERT

142 	numrecs = INT_GET(block->bb_numrecs, ARCH_CONVERT);  in xfs_inobt_delrec()
157 if ((error = xfs_btree_check_sptr(cur, INT_GET(pp[i], ARCH_CONVERT), level))) in xfs_inobt_delrec()
194 INT_SET(block->bb_numrecs, ARCH_CONVERT, numrecs); in xfs_inobt_delrec()
213 bno = INT_GET(agi->agi_root, ARCH_CONVERT); in xfs_inobt_delrec()
215 INT_MOD(agi->agi_level, ARCH_CONVERT, -1); in xfs_inobt_delrec()
258 rbno = INT_GET(block->bb_rightsib, ARCH_CONVERT); in xfs_inobt_delrec()
259 lbno = INT_GET(block->bb_leftsib, ARCH_CONVERT); in xfs_inobt_delrec()
296 bno = INT_GET(right->bb_leftsib, ARCH_CONVERT); in xfs_inobt_delrec()
302 if (INT_GET(right->bb_numrecs, ARCH_CONVERT) - 1 >= in xfs_inobt_delrec()
307 ASSERT(INT_GET(block->bb_numrecs, ARCH_CONVERT) >= in xfs_inobt_delrec()
324 rrecs = INT_GET(right->bb_numrecs, ARCH_CONVERT); in xfs_inobt_delrec()
356 bno = INT_GET(left->bb_rightsib, ARCH_CONVERT); in xfs_inobt_delrec()
362 if (INT_GET(left->bb_numrecs, ARCH_CONVERT) - 1 >= in xfs_inobt_delrec()
367 ASSERT(INT_GET(block->bb_numrecs, ARCH_CONVERT) >= in xfs_inobt_delrec()
381 lrecs = INT_GET(left->bb_numrecs, ARCH_CONVERT); in xfs_inobt_delrec()
402 rrecs = INT_GET(right->bb_numrecs, ARCH_CONVERT); in xfs_inobt_delrec()
409 lrecs = INT_GET(left->bb_numrecs, ARCH_CONVERT); in xfs_inobt_delrec()
424 lrecs = INT_GET(left->bb_numrecs, ARCH_CONVERT); in xfs_inobt_delrec()
431 rrecs = INT_GET(right->bb_numrecs, ARCH_CONVERT); in xfs_inobt_delrec()
459 if ((error = xfs_btree_check_sptr(cur, INT_GET(rpp[i], ARCH_CONVERT), level))) in xfs_inobt_delrec()
495 INT_SET(left->bb_numrecs, ARCH_CONVERT, lrecs); in xfs_inobt_delrec()
505 if (INT_GET(left->bb_rightsib, ARCH_CONVERT) != NULLAGBLOCK) { in xfs_inobt_delrec()
510 cur->bc_private.i.agno, INT_GET(left->bb_rightsib, ARCH_CONVERT), 0, in xfs_inobt_delrec()
516 INT_SET(rrblock->bb_leftsib, ARCH_CONVERT, lbno); in xfs_inobt_delrec()
601 numrecs = INT_GET(block->bb_numrecs, ARCH_CONVERT); in xfs_inobt_insrec()
675 numrecs = INT_GET(block->bb_numrecs, ARCH_CONVERT); in xfs_inobt_insrec()
685 if ((error = xfs_btree_check_sptr(cur, INT_GET(pp[i - 1], ARCH_CONVERT), level))) in xfs_inobt_insrec()
701 INT_SET(pp[ptr - 1], ARCH_CONVERT, *bnop); in xfs_inobt_insrec()
703 INT_SET(block->bb_numrecs, ARCH_CONVERT, numrecs); in xfs_inobt_insrec()
719 INT_SET(block->bb_numrecs, ARCH_CONVERT, numrecs); in xfs_inobt_insrec()
874 agno = INT_GET(agi->agi_seqno, ARCH_CONVERT); in xfs_inobt_lookup()
875 agbno = INT_GET(agi->agi_root, ARCH_CONVERT); in xfs_inobt_lookup()
942 if (!(high = INT_GET(block->bb_numrecs, ARCH_CONVERT))) { in xfs_inobt_lookup()
969 startino = INT_GET(kkp->ir_startino, ARCH_CONVERT); in xfs_inobt_lookup()
974 startino = INT_GET(krp->ir_startino, ARCH_CONVERT); in xfs_inobt_lookup()
1009 agbno = INT_GET(*XFS_INOBT_PTR_ADDR(block, keyno, cur), ARCH_CONVERT); in xfs_inobt_lookup()
1028 keyno > INT_GET(block->bb_numrecs, ARCH_CONVERT) && in xfs_inobt_lookup()
1029 INT_GET(block->bb_rightsib, ARCH_CONVERT) != NULLAGBLOCK) { in xfs_inobt_lookup()
1046 if (keyno == 0 || keyno > INT_GET(block->bb_numrecs, ARCH_CONVERT)) in xfs_inobt_lookup()
1092 if (INT_GET(right->bb_leftsib, ARCH_CONVERT) == NULLAGBLOCK) { in xfs_inobt_lshift()
1108 cur->bc_private.i.agno, INT_GET(right->bb_leftsib, ARCH_CONVERT), 0, &lbp, in xfs_inobt_lshift()
1117 if (INT_GET(left->bb_numrecs, ARCH_CONVERT) == XFS_INOBT_BLOCK_MAXRECS(level, cur)) { in xfs_inobt_lshift()
1121 nrec = INT_GET(left->bb_numrecs, ARCH_CONVERT) + 1; in xfs_inobt_lshift()
1133 if ((error = xfs_btree_check_sptr(cur, INT_GET(*rpp, ARCH_CONVERT), level))) in xfs_inobt_lshift()
1151 INT_MOD(left->bb_numrecs, ARCH_CONVERT, +1); in xfs_inobt_lshift()
1159 INT_MOD(right->bb_numrecs, ARCH_CONVERT, -1); in xfs_inobt_lshift()
1166 for (i = 0; i < INT_GET(right->bb_numrecs, ARCH_CONVERT); i++) { in xfs_inobt_lshift()
1167 if ((error = xfs_btree_check_sptr(cur, INT_GET(rpp[i + 1], ARCH_CONVERT), in xfs_inobt_lshift()
1172 memmove(rkp, rkp + 1, INT_GET(right->bb_numrecs, ARCH_CONVERT) * sizeof(*rkp)); in xfs_inobt_lshift()
1173 memmove(rpp, rpp + 1, INT_GET(right->bb_numrecs, ARCH_CONVERT) * sizeof(*rpp)); in xfs_inobt_lshift()
1174 xfs_inobt_log_keys(cur, rbp, 1, INT_GET(right->bb_numrecs, ARCH_CONVERT)); in xfs_inobt_lshift()
1175 xfs_inobt_log_ptrs(cur, rbp, 1, INT_GET(right->bb_numrecs, ARCH_CONVERT)); in xfs_inobt_lshift()
1177 memmove(rrp, rrp + 1, INT_GET(right->bb_numrecs, ARCH_CONVERT) * sizeof(*rrp)); in xfs_inobt_lshift()
1178 xfs_inobt_log_recs(cur, rbp, 1, INT_GET(right->bb_numrecs, ARCH_CONVERT)); in xfs_inobt_lshift()
1230 INT_GET(agi->agi_root, ARCH_CONVERT)); in xfs_inobt_newroot()
1250 INT_SET(agi->agi_root, ARCH_CONVERT, args.agbno); in xfs_inobt_newroot()
1251 INT_MOD(agi->agi_level, ARCH_CONVERT, 1); in xfs_inobt_newroot()
1266 if (INT_GET(block->bb_rightsib, ARCH_CONVERT) != NULLAGBLOCK) { in xfs_inobt_newroot()
1273 rbno = INT_GET(left->bb_rightsib, ARCH_CONVERT); in xfs_inobt_newroot()
1290 lbno = INT_GET(right->bb_leftsib, ARCH_CONVERT); in xfs_inobt_newroot()
1304 INT_SET(new->bb_magic, ARCH_CONVERT, xfs_magics[cur->bc_btnum]); in xfs_inobt_newroot()
1305 INT_SET(new->bb_level, ARCH_CONVERT, (__uint16_t)cur->bc_nlevels); in xfs_inobt_newroot()
1306 INT_SET(new->bb_numrecs, ARCH_CONVERT, 2); in xfs_inobt_newroot()
1307 INT_SET(new->bb_leftsib, ARCH_CONVERT, NULLAGBLOCK); in xfs_inobt_newroot()
1308 INT_SET(new->bb_rightsib, ARCH_CONVERT, NULLAGBLOCK); in xfs_inobt_newroot()
1315 if (INT_GET(left->bb_level, ARCH_CONVERT) > 0) { in xfs_inobt_newroot()
1320 INT_COPY(kp[0].ir_startino, rp->ir_startino, ARCH_CONVERT); in xfs_inobt_newroot()
1322 INT_COPY(kp[1].ir_startino, rp->ir_startino, ARCH_CONVERT); in xfs_inobt_newroot()
1329 INT_SET(pp[0], ARCH_CONVERT, lbno); in xfs_inobt_newroot()
1330 INT_SET(pp[1], ARCH_CONVERT, rbno); in xfs_inobt_newroot()
1379 if (INT_GET(left->bb_rightsib, ARCH_CONVERT) == NULLAGBLOCK) { in xfs_inobt_rshift()
1387 if (cur->bc_ptrs[level] >= INT_GET(left->bb_numrecs, ARCH_CONVERT)) { in xfs_inobt_rshift()
1395 cur->bc_private.i.agno, INT_GET(left->bb_rightsib, ARCH_CONVERT), 0, &rbp, in xfs_inobt_rshift()
1404 if (INT_GET(right->bb_numrecs, ARCH_CONVERT) == XFS_INOBT_BLOCK_MAXRECS(level, cur)) { in xfs_inobt_rshift()
1413 lkp = XFS_INOBT_KEY_ADDR(left, INT_GET(left->bb_numrecs, ARCH_CONVERT), cur); in xfs_inobt_rshift()
1414 lpp = XFS_INOBT_PTR_ADDR(left, INT_GET(left->bb_numrecs, ARCH_CONVERT), cur); in xfs_inobt_rshift()
1418 for (i = INT_GET(right->bb_numrecs, ARCH_CONVERT) - 1; i >= 0; i--) { in xfs_inobt_rshift()
1419 if ((error = xfs_btree_check_sptr(cur, INT_GET(rpp[i], ARCH_CONVERT), level))) in xfs_inobt_rshift()
1423 memmove(rkp + 1, rkp, INT_GET(right->bb_numrecs, ARCH_CONVERT) * sizeof(*rkp)); in xfs_inobt_rshift()
1424 memmove(rpp + 1, rpp, INT_GET(right->bb_numrecs, ARCH_CONVERT) * sizeof(*rpp)); in xfs_inobt_rshift()
1426 if ((error = xfs_btree_check_sptr(cur, INT_GET(*lpp, ARCH_CONVERT), level))) in xfs_inobt_rshift()
1431 xfs_inobt_log_keys(cur, rbp, 1, INT_GET(right->bb_numrecs, ARCH_CONVERT) + 1); in xfs_inobt_rshift()
1432 xfs_inobt_log_ptrs(cur, rbp, 1, INT_GET(right->bb_numrecs, ARCH_CONVERT) + 1); in xfs_inobt_rshift()
1434 lrp = XFS_INOBT_REC_ADDR(left, INT_GET(left->bb_numrecs, ARCH_CONVERT), cur); in xfs_inobt_rshift()
1436 memmove(rrp + 1, rrp, INT_GET(right->bb_numrecs, ARCH_CONVERT) * sizeof(*rrp)); in xfs_inobt_rshift()
1438 xfs_inobt_log_recs(cur, rbp, 1, INT_GET(right->bb_numrecs, ARCH_CONVERT) + 1); in xfs_inobt_rshift()
1445 INT_MOD(left->bb_numrecs, ARCH_CONVERT, -1); in xfs_inobt_rshift()
1447 INT_MOD(right->bb_numrecs, ARCH_CONVERT, +1); in xfs_inobt_rshift()
1539 INT_SET(right->bb_magic, ARCH_CONVERT, xfs_magics[cur->bc_btnum]); in xfs_inobt_split()
1541 …INT_SET(right->bb_numrecs, ARCH_CONVERT, (__uint16_t)(INT_GET(left->bb_numrecs, ARCH_CONVERT) / 2)… in xfs_inobt_split()
1546 if ((INT_GET(left->bb_numrecs, ARCH_CONVERT) & 1) && in xfs_inobt_split()
1547 cur->bc_ptrs[level] <= INT_GET(right->bb_numrecs, ARCH_CONVERT) + 1) in xfs_inobt_split()
1548 INT_MOD(right->bb_numrecs, ARCH_CONVERT, +1); in xfs_inobt_split()
1549 i = INT_GET(left->bb_numrecs, ARCH_CONVERT) - INT_GET(right->bb_numrecs, ARCH_CONVERT) + 1; in xfs_inobt_split()
1559 for (i = 0; i < INT_GET(right->bb_numrecs, ARCH_CONVERT); i++) { in xfs_inobt_split()
1560 if ((error = xfs_btree_check_sptr(cur, INT_GET(lpp[i], ARCH_CONVERT), level))) in xfs_inobt_split()
1564 memcpy(rkp, lkp, INT_GET(right->bb_numrecs, ARCH_CONVERT) * sizeof(*rkp)); in xfs_inobt_split()
1565 memcpy(rpp, lpp, INT_GET(right->bb_numrecs, ARCH_CONVERT) * sizeof(*rpp)); in xfs_inobt_split()
1566 xfs_inobt_log_keys(cur, rbp, 1, INT_GET(right->bb_numrecs, ARCH_CONVERT)); in xfs_inobt_split()
1567 xfs_inobt_log_ptrs(cur, rbp, 1, INT_GET(right->bb_numrecs, ARCH_CONVERT)); in xfs_inobt_split()
1576 memcpy(rrp, lrp, INT_GET(right->bb_numrecs, ARCH_CONVERT) * sizeof(*rrp)); in xfs_inobt_split()
1577 xfs_inobt_log_recs(cur, rbp, 1, INT_GET(right->bb_numrecs, ARCH_CONVERT)); in xfs_inobt_split()
1584 INT_MOD(left->bb_numrecs, ARCH_CONVERT, -(INT_GET(right->bb_numrecs, ARCH_CONVERT))); in xfs_inobt_split()
1586 INT_SET(left->bb_rightsib, ARCH_CONVERT, args.agbno); in xfs_inobt_split()
1587 INT_SET(right->bb_leftsib, ARCH_CONVERT, lbno); in xfs_inobt_split()
1594 if (INT_GET(right->bb_rightsib, ARCH_CONVERT) != NULLAGBLOCK) { in xfs_inobt_split()
1599 INT_GET(right->bb_rightsib, ARCH_CONVERT), 0, &rrbp, in xfs_inobt_split()
1605 INT_SET(rrblock->bb_leftsib, ARCH_CONVERT, args.agbno); in xfs_inobt_split()
1613 if (cur->bc_ptrs[level] > INT_GET(left->bb_numrecs, ARCH_CONVERT) + 1) { in xfs_inobt_split()
1615 cur->bc_ptrs[level] -= INT_GET(left->bb_numrecs, ARCH_CONVERT); in xfs_inobt_split()
1713 if (INT_GET(block->bb_leftsib, ARCH_CONVERT) == NULLAGBLOCK) { in xfs_inobt_decrement()
1742 agbno = INT_GET(*XFS_INOBT_PTR_ADDR(block, cur->bc_ptrs[lev], cur), ARCH_CONVERT); in xfs_inobt_decrement()
1752 cur->bc_ptrs[lev] = INT_GET(block->bb_numrecs, ARCH_CONVERT); in xfs_inobt_decrement()
1825 if (ptr > INT_GET(block->bb_numrecs, ARCH_CONVERT) || ptr <= 0) { in xfs_inobt_get_rec()
1833 ASSERT(arch == ARCH_NOCONVERT || arch == ARCH_CONVERT); in xfs_inobt_get_rec()
1835 *ino = INT_GET(rec->ir_startino, ARCH_CONVERT); in xfs_inobt_get_rec()
1836 *fcnt = INT_GET(rec->ir_freecount, ARCH_CONVERT); in xfs_inobt_get_rec()
1837 *free = INT_GET(rec->ir_free, ARCH_CONVERT); in xfs_inobt_get_rec()
1839 INT_COPY(*ino, rec->ir_startino, ARCH_CONVERT); in xfs_inobt_get_rec()
1840 INT_COPY(*fcnt, rec->ir_freecount, ARCH_CONVERT); in xfs_inobt_get_rec()
1841 INT_COPY(*free, rec->ir_free, ARCH_CONVERT); in xfs_inobt_get_rec()
1880 if (++cur->bc_ptrs[level] <= INT_GET(block->bb_numrecs, ARCH_CONVERT)) { in xfs_inobt_increment()
1887 if (INT_GET(block->bb_rightsib, ARCH_CONVERT) == NULLAGBLOCK) { in xfs_inobt_increment()
1902 if (++cur->bc_ptrs[lev] <= INT_GET(block->bb_numrecs, ARCH_CONVERT)) in xfs_inobt_increment()
1922 agbno = INT_GET(*XFS_INOBT_PTR_ADDR(block, cur->bc_ptrs[lev], cur), ARCH_CONVERT); in xfs_inobt_increment()
1957 INT_SET(nrec.ir_startino, ARCH_CONVERT, cur->bc_rec.i.ir_startino); in xfs_inobt_insert()
1958 INT_SET(nrec.ir_freecount, ARCH_CONVERT, cur->bc_rec.i.ir_freecount); in xfs_inobt_insert()
1959 INT_SET(nrec.ir_free, ARCH_CONVERT, cur->bc_rec.i.ir_free); in xfs_inobt_insert()
2087 INT_SET(rp->ir_startino, ARCH_CONVERT, ino); in xfs_inobt_update()
2088 INT_SET(rp->ir_freecount, ARCH_CONVERT, fcnt); in xfs_inobt_update()
2089 INT_SET(rp->ir_free, ARCH_CONVERT, free); in xfs_inobt_update()
2097 INT_SET(key.ir_startino, ARCH_CONVERT, ino); in xfs_inobt_update()