• Home
  • Raw
  • Download

Lines Matching refs:ents

225 	ASSERT(index == 0 || be32_to_cpu(leaf->ents[index - 1].hashval) <= args->hashval);  in xfs_dir2_leafn_add()
227 be32_to_cpu(leaf->ents[index].hashval) >= args->hashval); in xfs_dir2_leafn_add()
251 lep = &leaf->ents[index]; in xfs_dir2_leafn_add()
273 be32_to_cpu(leaf->ents[lowstale].address) != in xfs_dir2_leafn_add()
284 be32_to_cpu(leaf->ents[highstale].address) != in xfs_dir2_leafn_add()
298 ASSERT(be32_to_cpu(leaf->ents[lowstale].address) == in xfs_dir2_leafn_add()
302 memmove(&leaf->ents[lowstale], in xfs_dir2_leafn_add()
303 &leaf->ents[lowstale + 1], in xfs_dir2_leafn_add()
305 lep = &leaf->ents[index - 1]; in xfs_dir2_leafn_add()
314 ASSERT(be32_to_cpu(leaf->ents[highstale].address) == in xfs_dir2_leafn_add()
318 memmove(&leaf->ents[index + 1], in xfs_dir2_leafn_add()
319 &leaf->ents[index], in xfs_dir2_leafn_add()
321 lep = &leaf->ents[index]; in xfs_dir2_leafn_add()
359 ASSERT(be32_to_cpu(leaf->ents[i].hashval) <= in xfs_dir2_leafn_check()
360 be32_to_cpu(leaf->ents[i + 1].hashval)); in xfs_dir2_leafn_check()
362 if (be32_to_cpu(leaf->ents[i].address) == XFS_DIR2_NULL_DATAPTR) in xfs_dir2_leafn_check()
386 return be32_to_cpu(leaf->ents[be16_to_cpu(leaf->hdr.count) - 1].hashval); in xfs_dir2_leafn_lasthash()
443 for (lep = &leaf->ents[index]; index < be16_to_cpu(leaf->hdr.count) && in xfs_dir2_leafn_lookup_for_addname()
583 for (lep = &leaf->ents[index]; index < be16_to_cpu(leaf->hdr.count) && in xfs_dir2_leafn_lookup_for_entry()
731 memmove(&leaf_d->ents[start_d + count], &leaf_d->ents[start_d], in xfs_dir2_leafn_moveents()
745 if (be32_to_cpu(leaf_s->ents[i].address) == XFS_DIR2_NULL_DATAPTR) in xfs_dir2_leafn_moveents()
753 memcpy(&leaf_d->ents[start_d], &leaf_s->ents[start_s], in xfs_dir2_leafn_moveents()
761 memmove(&leaf_s->ents[start_s], &leaf_s->ents[start_s + count], in xfs_dir2_leafn_moveents()
796 (be32_to_cpu(leaf2->ents[0].hashval) < be32_to_cpu(leaf1->ents[0].hashval) || in xfs_dir2_leafn_order()
797 be32_to_cpu(leaf2->ents[be16_to_cpu(leaf2->hdr.count) - 1].hashval) < in xfs_dir2_leafn_order()
798 be32_to_cpu(leaf1->ents[be16_to_cpu(leaf1->hdr.count) - 1].hashval))) in xfs_dir2_leafn_order()
854 midhash = be32_to_cpu(leaf2->ents[mid - be16_to_cpu(leaf1->hdr.count)].hashval); in xfs_dir2_leafn_rebalance()
856 midhash = be32_to_cpu(leaf1->ents[mid].hashval); in xfs_dir2_leafn_rebalance()
945 lep = &leaf->ents[index]; in xfs_dir2_leafn_remove()
1112 (uint)sizeof(leaf->ents[0]) * in xfs_dir2_leafn_remove()
1215 bytes = (uint)sizeof(leaf->hdr) + count * (uint)sizeof(leaf->ents[0]); in xfs_dir2_leafn_toosmall()
1273 bytes -= count * (uint)sizeof(leaf->ents[0]); in xfs_dir2_leafn_toosmall()
1343 drop_blk->hashval = be32_to_cpu(drop_leaf->ents[be16_to_cpu(drop_leaf->hdr.count) - 1].hashval); in xfs_dir2_leafn_unbalance()
1350 save_blk->hashval = be32_to_cpu(save_leaf->ents[be16_to_cpu(save_leaf->hdr.count) - 1].hashval); in xfs_dir2_leafn_unbalance()
1975 lep = &leaf->ents[blk->index]; in xfs_dir2_node_replace()