Lines Matching refs:ents
387 struct xfs_dir2_leaf_entry *ents; in xfs_dir2_leafn_add() local
394 ents = dp->d_ops->leaf_ents_p(leaf); in xfs_dir2_leafn_add()
416 ASSERT(index == 0 || be32_to_cpu(ents[index - 1].hashval) <= args->hashval); in xfs_dir2_leafn_add()
418 be32_to_cpu(ents[index].hashval) >= args->hashval); in xfs_dir2_leafn_add()
428 xfs_dir3_leaf_compact_x1(&leafhdr, ents, &index, &lowstale, in xfs_dir2_leafn_add()
441 lep = xfs_dir3_leaf_find_entry(&leafhdr, ents, index, compact, lowstale, in xfs_dir2_leafn_add()
486 struct xfs_dir2_leaf_entry *ents; in xfs_dir2_leafn_lasthash() local
499 ents = dp->d_ops->leaf_ents_p(leaf); in xfs_dir2_leafn_lasthash()
500 return be32_to_cpu(ents[leafhdr.count - 1].hashval); in xfs_dir2_leafn_lasthash()
529 struct xfs_dir2_leaf_entry *ents; in xfs_dir2_leafn_lookup_for_addname() local
537 ents = dp->d_ops->leaf_ents_p(leaf); in xfs_dir2_leafn_lookup_for_addname()
561 for (lep = &ents[index]; in xfs_dir2_leafn_lookup_for_addname()
681 struct xfs_dir2_leaf_entry *ents; in xfs_dir2_leafn_lookup_for_entry() local
689 ents = dp->d_ops->leaf_ents_p(leaf); in xfs_dir2_leafn_lookup_for_entry()
708 for (lep = &ents[index]; in xfs_dir2_leafn_lookup_for_entry()
1170 struct xfs_dir2_leaf_entry *ents; in xfs_dir2_leafn_remove() local
1178 ents = dp->d_ops->leaf_ents_p(leaf); in xfs_dir2_leafn_remove()
1183 lep = &ents[index]; in xfs_dir2_leafn_remove()
1299 (uint)sizeof(ents[0]) * (leafhdr.count - leafhdr.stale)) < in xfs_dir2_leafn_remove()
1389 struct xfs_dir2_leaf_entry *ents; in xfs_dir2_leafn_toosmall() local
1400 ents = dp->d_ops->leaf_ents_p(leaf); in xfs_dir2_leafn_toosmall()
1404 bytes = dp->d_ops->leaf_hdr_size + count * sizeof(ents[0]); in xfs_dir2_leafn_toosmall()
1463 ents = dp->d_ops->leaf_ents_p(leaf); in xfs_dir2_leafn_toosmall()
1465 bytes -= count * sizeof(ents[0]); in xfs_dir2_leafn_toosmall()
2169 struct xfs_dir2_leaf_entry *ents; in xfs_dir2_node_replace() local
2176 ents = args->dp->d_ops->leaf_ents_p(leaf); in xfs_dir2_node_replace()
2177 lep = &ents[blk->index]; in xfs_dir2_node_replace()