Lines Matching refs:from
634 int from; /* source leaf index */ in xfs_dir2_leaf_compact() local
646 for (from = to = 0, loglow = -1; from < be16_to_cpu(leaf->hdr.count); from++) { in xfs_dir2_leaf_compact()
647 if (leaf->ents[from].address == in xfs_dir2_leaf_compact()
653 if (from > to) { in xfs_dir2_leaf_compact()
656 leaf->ents[to] = leaf->ents[from]; in xfs_dir2_leaf_compact()
663 ASSERT(be16_to_cpu(leaf->hdr.stale) == from - to); in xfs_dir2_leaf_compact()
688 int from; /* source copy index */ in xfs_dir2_leaf_compact_x1() local
716 for (from = to = 0; from < be16_to_cpu(leaf->hdr.count); from++) { in xfs_dir2_leaf_compact_x1()
720 if (index == from) in xfs_dir2_leaf_compact_x1()
722 if (from != keepstale && in xfs_dir2_leaf_compact_x1()
723 leaf->ents[from].address == in xfs_dir2_leaf_compact_x1()
725 if (from == to) in xfs_dir2_leaf_compact_x1()
732 if (from == keepstale) in xfs_dir2_leaf_compact_x1()
737 if (from > to) in xfs_dir2_leaf_compact_x1()
738 leaf->ents[to] = leaf->ents[from]; in xfs_dir2_leaf_compact_x1()
741 ASSERT(from > to); in xfs_dir2_leaf_compact_x1()
746 if (index == from) in xfs_dir2_leaf_compact_x1()
752 be16_add_cpu(&leaf->hdr.count, -(from - to)); in xfs_dir2_leaf_compact_x1()