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()
162 (char *)&hdr->ents[hdr->count] > (char *)xfs_dir2_leaf_bests_p(ltp)) in xfs_dir3_leaf_check_int()
168 if (be32_to_cpu(hdr->ents[i].hashval) > in xfs_dir3_leaf_check_int()
169 be32_to_cpu(hdr->ents[i + 1].hashval)) in xfs_dir3_leaf_check_int()
172 if (hdr->ents[i].address == cpu_to_be32(XFS_DIR2_NULL_DATAPTR)) in xfs_dir3_leaf_check_int()
436 memcpy(leafhdr.ents, blp, in xfs_dir2_block_to_leaf()
483 struct xfs_dir2_leaf_entry *ents, in xfs_dir3_leaf_find_stale() argument
492 if (ents[*lowstale].address == in xfs_dir3_leaf_find_stale()
503 if (ents[*highstale].address == in xfs_dir3_leaf_find_stale()
514 struct xfs_dir2_leaf_entry *ents, in xfs_dir3_leaf_find_entry() argument
530 lep = &ents[index]; in xfs_dir3_leaf_find_entry()
553 xfs_dir3_leaf_find_stale(leafhdr, ents, index, in xfs_dir3_leaf_find_entry()
563 ASSERT(ents[lowstale].address == in xfs_dir3_leaf_find_entry()
571 memmove(&ents[lowstale], &ents[lowstale + 1], in xfs_dir3_leaf_find_entry()
578 return &ents[index - 1]; in xfs_dir3_leaf_find_entry()
585 ASSERT(ents[highstale].address == cpu_to_be32(XFS_DIR2_NULL_DATAPTR)); in xfs_dir3_leaf_find_entry()
592 memmove(&ents[index + 1], &ents[index], in xfs_dir3_leaf_find_entry()
598 return &ents[index]; in xfs_dir3_leaf_find_entry()
619 struct xfs_dir2_leaf_entry *ents; in xfs_dir2_leaf_addname() local
654 ents = leafhdr.ents; in xfs_dir2_leaf_addname()
664 for (use_block = -1, lep = &ents[index]; in xfs_dir2_leaf_addname()
713 if ((char *)bestsp - (char *)&ents[leafhdr.count] < needbytes && in xfs_dir2_leaf_addname()
721 else if ((char *)bestsp - (char *)&ents[leafhdr.count] < needbytes) { in xfs_dir2_leaf_addname()
769 xfs_dir3_leaf_compact_x1(&leafhdr, ents, &index, &lowstale, in xfs_dir2_leaf_addname()
885 lep = xfs_dir3_leaf_find_entry(&leafhdr, ents, index, compact, lowstale, in xfs_dir2_leaf_addname()
930 if (leafhdr->ents[from].address == in xfs_dir3_leaf_compact()
939 leafhdr->ents[to] = leafhdr->ents[from]; in xfs_dir3_leaf_compact()
967 struct xfs_dir2_leaf_entry *ents, in xfs_dir3_leaf_compact_x1() argument
985 xfs_dir3_leaf_find_stale(leafhdr, ents, index, &lowstale, &highstale); in xfs_dir3_leaf_compact_x1()
1007 ents[from].address == cpu_to_be32(XFS_DIR2_NULL_DATAPTR)) { in xfs_dir3_leaf_compact_x1()
1021 ents[to] = ents[from]; in xfs_dir3_leaf_compact_x1()
1096 firstlep = &hdr->ents[first]; in xfs_dir3_leaf_log_ents()
1097 lastlep = &hdr->ents[last]; in xfs_dir3_leaf_log_ents()
1179 lep = &leafhdr.ents[index]; in xfs_dir2_leaf_lookup()
1248 for (lep = &leafhdr->ents[index]; in xfs_dir2_leaf_lookup_int()
1377 lep = &leafhdr.ents[index]; in xfs_dir2_leaf_removename()
1510 lep = &leafhdr.ents[index]; in xfs_dir2_leaf_replace()
1554 for (lep = leafhdr.ents, low = 0, high = leafhdr.count - 1, in xfs_dir2_leaf_search_hash()