Lines Matching refs:ents
441 struct xfs_dir2_leaf_entry *ents; in xfs_dir2_leafn_add() local
448 ents = dp->d_ops->leaf_ents_p(leaf); in xfs_dir2_leafn_add()
470 ASSERT(index == 0 || be32_to_cpu(ents[index - 1].hashval) <= args->hashval); in xfs_dir2_leafn_add()
472 be32_to_cpu(ents[index].hashval) >= args->hashval); in xfs_dir2_leafn_add()
482 xfs_dir3_leaf_compact_x1(&leafhdr, ents, &index, &lowstale, in xfs_dir2_leafn_add()
495 lep = xfs_dir3_leaf_find_entry(&leafhdr, ents, index, compact, lowstale, in xfs_dir2_leafn_add()
540 struct xfs_dir2_leaf_entry *ents; in xfs_dir2_leaf_lasthash() local
555 ents = dp->d_ops->leaf_ents_p(leaf); in xfs_dir2_leaf_lasthash()
556 return be32_to_cpu(ents[leafhdr.count - 1].hashval); in xfs_dir2_leaf_lasthash()
585 struct xfs_dir2_leaf_entry *ents; in xfs_dir2_leafn_lookup_for_addname() local
593 ents = dp->d_ops->leaf_ents_p(leaf); in xfs_dir2_leafn_lookup_for_addname()
617 for (lep = &ents[index]; in xfs_dir2_leafn_lookup_for_addname()
737 struct xfs_dir2_leaf_entry *ents; in xfs_dir2_leafn_lookup_for_entry() local
745 ents = dp->d_ops->leaf_ents_p(leaf); in xfs_dir2_leafn_lookup_for_entry()
764 for (lep = &ents[index]; in xfs_dir2_leafn_lookup_for_entry()
1223 struct xfs_dir2_leaf_entry *ents; in xfs_dir2_leafn_remove() local
1231 ents = dp->d_ops->leaf_ents_p(leaf); in xfs_dir2_leafn_remove()
1236 lep = &ents[index]; in xfs_dir2_leafn_remove()
1352 (uint)sizeof(ents[0]) * (leafhdr.count - leafhdr.stale)) < in xfs_dir2_leafn_remove()
1442 struct xfs_dir2_leaf_entry *ents; in xfs_dir2_leafn_toosmall() local
1453 ents = dp->d_ops->leaf_ents_p(leaf); in xfs_dir2_leafn_toosmall()
1457 bytes = dp->d_ops->leaf_hdr_size + count * sizeof(ents[0]); in xfs_dir2_leafn_toosmall()
1516 ents = dp->d_ops->leaf_ents_p(leaf); in xfs_dir2_leafn_toosmall()
1518 bytes -= count * sizeof(ents[0]); in xfs_dir2_leafn_toosmall()
2226 struct xfs_dir2_leaf_entry *ents; in xfs_dir2_node_replace() local
2233 ents = args->dp->d_ops->leaf_ents_p(leaf); in xfs_dir2_node_replace()
2234 lep = &ents[blk->index]; in xfs_dir2_node_replace()