Lines Matching refs:ichdr1

72 			struct xfs_attr3_icleaf_hdr *ichdr1,
1422 struct xfs_attr3_icleaf_hdr ichdr1; in xfs_attr_leaf_order() local
1426 xfs_attr3_leaf_hdr_from_disk(mp->m_attr_geo, &ichdr1, leaf1_bp->b_addr); in xfs_attr_leaf_order()
1428 return xfs_attr3_leaf_order(leaf1_bp, &ichdr1, leaf2_bp, &ichdr2); in xfs_attr_leaf_order()
1452 struct xfs_attr3_icleaf_hdr ichdr1; in xfs_attr3_leaf_rebalance() local
1469 xfs_attr3_leaf_hdr_from_disk(state->args->geo, &ichdr1, leaf1); in xfs_attr3_leaf_rebalance()
1483 if (xfs_attr3_leaf_order(blk1->bp, &ichdr1, blk2->bp, &ichdr2)) { in xfs_attr3_leaf_rebalance()
1492 tmp_ichdr = ichdr1; in xfs_attr3_leaf_rebalance()
1493 ichdr1 = ichdr2; in xfs_attr3_leaf_rebalance()
1509 state->inleaf = xfs_attr3_leaf_figure_balance(state, blk1, &ichdr1, in xfs_attr3_leaf_rebalance()
1518 if (count < ichdr1.count) { in xfs_attr3_leaf_rebalance()
1523 count = ichdr1.count - count; in xfs_attr3_leaf_rebalance()
1524 space = ichdr1.usedbytes - totallen; in xfs_attr3_leaf_rebalance()
1538 xfs_attr3_leaf_moveents(args, leaf1, &ichdr1, in xfs_attr3_leaf_rebalance()
1539 ichdr1.count - count, leaf2, &ichdr2, 0, count); in xfs_attr3_leaf_rebalance()
1541 } else if (count > ichdr1.count) { in xfs_attr3_leaf_rebalance()
1552 count -= ichdr1.count; in xfs_attr3_leaf_rebalance()
1553 space = totallen - ichdr1.usedbytes; in xfs_attr3_leaf_rebalance()
1559 max = ichdr1.firstused - xfs_attr3_leaf_hdr_size(leaf1); in xfs_attr3_leaf_rebalance()
1560 max -= ichdr1.count * sizeof(xfs_attr_leaf_entry_t); in xfs_attr3_leaf_rebalance()
1562 xfs_attr3_leaf_compact(args, &ichdr1, blk1->bp); in xfs_attr3_leaf_rebalance()
1567 xfs_attr3_leaf_moveents(args, leaf2, &ichdr2, 0, leaf1, &ichdr1, in xfs_attr3_leaf_rebalance()
1568 ichdr1.count, count); in xfs_attr3_leaf_rebalance()
1571 xfs_attr3_leaf_hdr_to_disk(state->args->geo, leaf1, &ichdr1); in xfs_attr3_leaf_rebalance()
1581 blk1->hashval = be32_to_cpu(entries1[ichdr1.count - 1].hashval); in xfs_attr3_leaf_rebalance()
1596 if (blk1->index > ichdr1.count) { in xfs_attr3_leaf_rebalance()
1598 blk2->index = blk1->index - ichdr1.count; in xfs_attr3_leaf_rebalance()
1601 } else if (blk1->index == ichdr1.count) { in xfs_attr3_leaf_rebalance()
1613 blk2->index = blk1->index - ichdr1.count; in xfs_attr3_leaf_rebalance()
1644 struct xfs_attr3_icleaf_hdr *ichdr1, in xfs_attr3_leaf_figure_balance() argument
1666 max = ichdr1->count + ichdr2->count; in xfs_attr3_leaf_figure_balance()
1668 half += ichdr1->usedbytes + ichdr2->usedbytes + in xfs_attr3_leaf_figure_balance()
1692 if (count == ichdr1->count) { in xfs_attr3_leaf_figure_balance()
2675 struct xfs_attr3_icleaf_hdr ichdr1; in xfs_attr3_leaf_flipflags() local
2710 xfs_attr3_leaf_hdr_from_disk(args->geo, &ichdr1, leaf1); in xfs_attr3_leaf_flipflags()
2711 ASSERT(args->index < ichdr1.count); in xfs_attr3_leaf_flipflags()