Lines Matching refs:leaf1

739 	xfs_dir2_leaf_t	*leaf1;			/* leaf1 structure */  in xfs_dir2_leafn_order()  local
742 leaf1 = leaf1_bp->data; in xfs_dir2_leafn_order()
744 ASSERT(INT_GET(leaf1->hdr.info.magic, ARCH_CONVERT) == XFS_DIR2_LEAFN_MAGIC); in xfs_dir2_leafn_order()
746 if (INT_GET(leaf1->hdr.count, ARCH_CONVERT) > 0 && in xfs_dir2_leafn_order()
748 … (INT_GET(leaf2->ents[0].hashval, ARCH_CONVERT) < INT_GET(leaf1->ents[0].hashval, ARCH_CONVERT) || in xfs_dir2_leafn_order()
750 INT_GET(leaf1->ents[INT_GET(leaf1->hdr.count, ARCH_CONVERT) - 1].hashval, ARCH_CONVERT))) in xfs_dir2_leafn_order()
771 xfs_dir2_leaf_t *leaf1; /* first leaf structure */ in xfs_dir2_leafn_rebalance() local
791 leaf1 = blk1->bp->data; in xfs_dir2_leafn_rebalance()
793 oldsum = INT_GET(leaf1->hdr.count, ARCH_CONVERT) + INT_GET(leaf2->hdr.count, ARCH_CONVERT); in xfs_dir2_leafn_rebalance()
795 oldstale = INT_GET(leaf1->hdr.stale, ARCH_CONVERT) + INT_GET(leaf2->hdr.stale, ARCH_CONVERT); in xfs_dir2_leafn_rebalance()
805 if (mid >= INT_GET(leaf1->hdr.count, ARCH_CONVERT)) in xfs_dir2_leafn_rebalance()
806 …midhash = INT_GET(leaf2->ents[mid - INT_GET(leaf1->hdr.count, ARCH_CONVERT)].hashval, ARCH_CONVERT… in xfs_dir2_leafn_rebalance()
808 midhash = INT_GET(leaf1->ents[mid].hashval, ARCH_CONVERT); in xfs_dir2_leafn_rebalance()
822 count = INT_GET(leaf1->hdr.count, ARCH_CONVERT) - mid + (isleft == 0); in xfs_dir2_leafn_rebalance()
825 INT_GET(leaf1->hdr.count, ARCH_CONVERT) - count, blk2->bp, 0, count); in xfs_dir2_leafn_rebalance()
828 INT_GET(leaf1->hdr.count, ARCH_CONVERT), count); in xfs_dir2_leafn_rebalance()
829 …ASSERT(INT_GET(leaf1->hdr.count, ARCH_CONVERT) + INT_GET(leaf2->hdr.count, ARCH_CONVERT) == oldsum… in xfs_dir2_leafn_rebalance()
830 …ASSERT(INT_GET(leaf1->hdr.stale, ARCH_CONVERT) + INT_GET(leaf2->hdr.stale, ARCH_CONVERT) == oldsta… in xfs_dir2_leafn_rebalance()
834 if (INT_GET(leaf1->hdr.count, ARCH_CONVERT) < INT_GET(leaf2->hdr.count, ARCH_CONVERT)) in xfs_dir2_leafn_rebalance()
836 else if (INT_GET(leaf1->hdr.count, ARCH_CONVERT) > INT_GET(leaf2->hdr.count, ARCH_CONVERT)) in xfs_dir2_leafn_rebalance()
840 swap ^ (blk1->index <= INT_GET(leaf1->hdr.count, ARCH_CONVERT)); in xfs_dir2_leafn_rebalance()
845 blk2->index = blk1->index - INT_GET(leaf1->hdr.count, ARCH_CONVERT); in xfs_dir2_leafn_rebalance()