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()
163 (char *)&hdr->ents[hdr->count] > (char *)xfs_dir2_leaf_bests_p(ltp)) in xfs_dir3_leaf_check_int()
172 if (be32_to_cpu(hdr->ents[i].hashval) > in xfs_dir3_leaf_check_int()
173 be32_to_cpu(hdr->ents[i + 1].hashval)) in xfs_dir3_leaf_check_int()
176 if (hdr->ents[i].address == cpu_to_be32(XFS_DIR2_NULL_DATAPTR)) in xfs_dir3_leaf_check_int()
440 memcpy(leafhdr.ents, blp, in xfs_dir2_block_to_leaf()
487 struct xfs_dir2_leaf_entry *ents, in xfs_dir3_leaf_find_stale() argument
496 if (ents[*lowstale].address == in xfs_dir3_leaf_find_stale()
507 if (ents[*highstale].address == in xfs_dir3_leaf_find_stale()
518 struct xfs_dir2_leaf_entry *ents, in xfs_dir3_leaf_find_entry() argument
534 lep = &ents[index]; in xfs_dir3_leaf_find_entry()
557 xfs_dir3_leaf_find_stale(leafhdr, ents, index, in xfs_dir3_leaf_find_entry()
567 ASSERT(ents[lowstale].address == in xfs_dir3_leaf_find_entry()
575 memmove(&ents[lowstale], &ents[lowstale + 1], in xfs_dir3_leaf_find_entry()
582 return &ents[index - 1]; in xfs_dir3_leaf_find_entry()
589 ASSERT(ents[highstale].address == cpu_to_be32(XFS_DIR2_NULL_DATAPTR)); in xfs_dir3_leaf_find_entry()
596 memmove(&ents[index + 1], &ents[index], in xfs_dir3_leaf_find_entry()
602 return &ents[index]; in xfs_dir3_leaf_find_entry()
623 struct xfs_dir2_leaf_entry *ents; in xfs_dir2_leaf_addname() local
658 ents = leafhdr.ents; in xfs_dir2_leaf_addname()
668 for (use_block = -1, lep = &ents[index]; in xfs_dir2_leaf_addname()
717 if ((char *)bestsp - (char *)&ents[leafhdr.count] < needbytes && in xfs_dir2_leaf_addname()
725 else if ((char *)bestsp - (char *)&ents[leafhdr.count] < needbytes) { in xfs_dir2_leaf_addname()
773 xfs_dir3_leaf_compact_x1(&leafhdr, ents, &index, &lowstale, in xfs_dir2_leaf_addname()
889 lep = xfs_dir3_leaf_find_entry(&leafhdr, ents, index, compact, lowstale, in xfs_dir2_leaf_addname()
934 if (leafhdr->ents[from].address == in xfs_dir3_leaf_compact()
943 leafhdr->ents[to] = leafhdr->ents[from]; in xfs_dir3_leaf_compact()
971 struct xfs_dir2_leaf_entry *ents, in xfs_dir3_leaf_compact_x1() argument
989 xfs_dir3_leaf_find_stale(leafhdr, ents, index, &lowstale, &highstale); in xfs_dir3_leaf_compact_x1()
1011 ents[from].address == cpu_to_be32(XFS_DIR2_NULL_DATAPTR)) { in xfs_dir3_leaf_compact_x1()
1025 ents[to] = ents[from]; in xfs_dir3_leaf_compact_x1()
1100 firstlep = &hdr->ents[first]; in xfs_dir3_leaf_log_ents()
1101 lastlep = &hdr->ents[last]; in xfs_dir3_leaf_log_ents()
1183 lep = &leafhdr.ents[index]; in xfs_dir2_leaf_lookup()
1252 for (lep = &leafhdr->ents[index]; in xfs_dir2_leaf_lookup_int()
1381 lep = &leafhdr.ents[index]; in xfs_dir2_leaf_removename()
1514 lep = &leafhdr.ents[index]; in xfs_dir2_leaf_replace()
1558 for (lep = leafhdr.ents, low = 0, high = leafhdr.count - 1, in xfs_dir2_leaf_search_hash()