Lines Matching refs:ents

48 		to->ents = from3->__ents;  in xfs_dir2_leaf_hdr_from_disk()
58 to->ents = from->__ents; in xfs_dir2_leaf_hdr_from_disk()
164 (char *)&hdr->ents[hdr->count] > (char *)xfs_dir2_leaf_bests_p(ltp)) in xfs_dir3_leaf_check_int()
173 if (be32_to_cpu(hdr->ents[i].hashval) > in xfs_dir3_leaf_check_int()
174 be32_to_cpu(hdr->ents[i + 1].hashval)) in xfs_dir3_leaf_check_int()
177 if (hdr->ents[i].address == cpu_to_be32(XFS_DIR2_NULL_DATAPTR)) in xfs_dir3_leaf_check_int()
180 be32_to_cpu(hdr->ents[i].address)) >= in xfs_dir3_leaf_check_int()
445 memcpy(leafhdr.ents, blp, in xfs_dir2_block_to_leaf()
492 struct xfs_dir2_leaf_entry *ents, in xfs_dir3_leaf_find_stale() argument
501 if (ents[*lowstale].address == in xfs_dir3_leaf_find_stale()
512 if (ents[*highstale].address == in xfs_dir3_leaf_find_stale()
523 struct xfs_dir2_leaf_entry *ents, in xfs_dir3_leaf_find_entry() argument
539 lep = &ents[index]; in xfs_dir3_leaf_find_entry()
562 xfs_dir3_leaf_find_stale(leafhdr, ents, index, in xfs_dir3_leaf_find_entry()
572 ASSERT(ents[lowstale].address == in xfs_dir3_leaf_find_entry()
580 memmove(&ents[lowstale], &ents[lowstale + 1], in xfs_dir3_leaf_find_entry()
587 return &ents[index - 1]; in xfs_dir3_leaf_find_entry()
594 ASSERT(ents[highstale].address == cpu_to_be32(XFS_DIR2_NULL_DATAPTR)); in xfs_dir3_leaf_find_entry()
601 memmove(&ents[index + 1], &ents[index], in xfs_dir3_leaf_find_entry()
607 return &ents[index]; in xfs_dir3_leaf_find_entry()
628 struct xfs_dir2_leaf_entry *ents; in xfs_dir2_leaf_addname() local
663 ents = leafhdr.ents; in xfs_dir2_leaf_addname()
673 for (use_block = -1, lep = &ents[index]; in xfs_dir2_leaf_addname()
722 if ((char *)bestsp - (char *)&ents[leafhdr.count] < needbytes && in xfs_dir2_leaf_addname()
730 else if ((char *)bestsp - (char *)&ents[leafhdr.count] < needbytes) { in xfs_dir2_leaf_addname()
778 xfs_dir3_leaf_compact_x1(&leafhdr, ents, &index, &lowstale, in xfs_dir2_leaf_addname()
894 lep = xfs_dir3_leaf_find_entry(&leafhdr, ents, index, compact, lowstale, in xfs_dir2_leaf_addname()
939 if (leafhdr->ents[from].address == in xfs_dir3_leaf_compact()
948 leafhdr->ents[to] = leafhdr->ents[from]; in xfs_dir3_leaf_compact()
976 struct xfs_dir2_leaf_entry *ents, in xfs_dir3_leaf_compact_x1() argument
994 xfs_dir3_leaf_find_stale(leafhdr, ents, index, &lowstale, &highstale); in xfs_dir3_leaf_compact_x1()
1016 ents[from].address == cpu_to_be32(XFS_DIR2_NULL_DATAPTR)) { in xfs_dir3_leaf_compact_x1()
1030 ents[to] = ents[from]; in xfs_dir3_leaf_compact_x1()
1105 firstlep = &hdr->ents[first]; in xfs_dir3_leaf_log_ents()
1106 lastlep = &hdr->ents[last]; in xfs_dir3_leaf_log_ents()
1188 lep = &leafhdr.ents[index]; in xfs_dir2_leaf_lookup()
1257 for (lep = &leafhdr->ents[index]; in xfs_dir2_leaf_lookup_int()
1386 lep = &leafhdr.ents[index]; in xfs_dir2_leaf_removename()
1519 lep = &leafhdr.ents[index]; in xfs_dir2_leaf_replace()
1563 for (lep = leafhdr.ents, low = 0, high = leafhdr.count - 1, in xfs_dir2_leaf_search_hash()