Lines Matching refs:ents
88 struct xfs_dir2_leaf_entry *ents; in xfs_dir3_leaf_check_int() local
107 ents = ops->leaf_ents_p(leaf); in xfs_dir3_leaf_check_int()
121 (char *)&ents[hdr->count] > (char *)xfs_dir2_leaf_bests_p(ltp)) in xfs_dir3_leaf_check_int()
127 if (be32_to_cpu(ents[i].hashval) > in xfs_dir3_leaf_check_int()
128 be32_to_cpu(ents[i + 1].hashval)) in xfs_dir3_leaf_check_int()
131 if (ents[i].address == cpu_to_be32(XFS_DIR2_NULL_DATAPTR)) in xfs_dir3_leaf_check_int()
389 struct xfs_dir2_leaf_entry *ents; in xfs_dir2_block_to_leaf() local
419 ents = dp->d_ops->leaf_ents_p(leaf); in xfs_dir2_block_to_leaf()
434 memcpy(ents, blp, be32_to_cpu(btp->count) * sizeof(xfs_dir2_leaf_entry_t)); in xfs_dir2_block_to_leaf()
480 struct xfs_dir2_leaf_entry *ents, in xfs_dir3_leaf_find_stale() argument
489 if (ents[*lowstale].address == in xfs_dir3_leaf_find_stale()
500 if (ents[*highstale].address == in xfs_dir3_leaf_find_stale()
511 struct xfs_dir2_leaf_entry *ents, in xfs_dir3_leaf_find_entry() argument
527 lep = &ents[index]; in xfs_dir3_leaf_find_entry()
550 xfs_dir3_leaf_find_stale(leafhdr, ents, index, in xfs_dir3_leaf_find_entry()
560 ASSERT(ents[lowstale].address == in xfs_dir3_leaf_find_entry()
568 memmove(&ents[lowstale], &ents[lowstale + 1], in xfs_dir3_leaf_find_entry()
575 return &ents[index - 1]; in xfs_dir3_leaf_find_entry()
582 ASSERT(ents[highstale].address == cpu_to_be32(XFS_DIR2_NULL_DATAPTR)); in xfs_dir3_leaf_find_entry()
589 memmove(&ents[index + 1], &ents[index], in xfs_dir3_leaf_find_entry()
595 return &ents[index]; in xfs_dir3_leaf_find_entry()
632 struct xfs_dir2_leaf_entry *ents; in xfs_dir2_leaf_addname() local
653 ents = dp->d_ops->leaf_ents_p(leaf); 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()
882 lep = xfs_dir3_leaf_find_entry(&leafhdr, ents, index, compact, lowstale, in xfs_dir2_leaf_addname()
917 struct xfs_dir2_leaf_entry *ents; in xfs_dir3_leaf_compact() local
927 ents = dp->d_ops->leaf_ents_p(leaf); in xfs_dir3_leaf_compact()
929 if (ents[from].address == cpu_to_be32(XFS_DIR2_NULL_DATAPTR)) in xfs_dir3_leaf_compact()
937 ents[to] = ents[from]; in xfs_dir3_leaf_compact()
965 struct xfs_dir2_leaf_entry *ents, in xfs_dir3_leaf_compact_x1() argument
983 xfs_dir3_leaf_find_stale(leafhdr, ents, index, &lowstale, &highstale); in xfs_dir3_leaf_compact_x1()
1005 ents[from].address == cpu_to_be32(XFS_DIR2_NULL_DATAPTR)) { in xfs_dir3_leaf_compact_x1()
1019 ents[to] = ents[from]; in xfs_dir3_leaf_compact_x1()
1087 struct xfs_dir2_leaf_entry *ents; in xfs_dir3_leaf_log_ents() local
1094 ents = args->dp->d_ops->leaf_ents_p(leaf); in xfs_dir3_leaf_log_ents()
1095 firstlep = &ents[first]; in xfs_dir3_leaf_log_ents()
1096 lastlep = &ents[last]; in xfs_dir3_leaf_log_ents()
1161 struct xfs_dir2_leaf_entry *ents; in xfs_dir2_leaf_lookup() local
1175 ents = dp->d_ops->leaf_ents_p(leaf); in xfs_dir2_leaf_lookup()
1179 lep = &ents[index]; in xfs_dir2_leaf_lookup()
1225 struct xfs_dir2_leaf_entry *ents; in xfs_dir2_leaf_lookup_int() local
1239 ents = dp->d_ops->leaf_ents_p(leaf); in xfs_dir2_leaf_lookup_int()
1250 for (lep = &ents[index]; in xfs_dir2_leaf_lookup_int()
1357 struct xfs_dir2_leaf_entry *ents; in xfs_dir2_leaf_removename() local
1374 ents = dp->d_ops->leaf_ents_p(leaf); in xfs_dir2_leaf_removename()
1378 lep = &ents[index]; in xfs_dir2_leaf_removename()
1493 struct xfs_dir2_leaf_entry *ents; in xfs_dir2_leaf_replace() local
1505 ents = dp->d_ops->leaf_ents_p(leaf); in xfs_dir2_leaf_replace()
1509 lep = &ents[index]; in xfs_dir2_leaf_replace()
1546 struct xfs_dir2_leaf_entry *ents; in xfs_dir2_leaf_search_hash() local
1550 ents = args->dp->d_ops->leaf_ents_p(leaf); in xfs_dir2_leaf_search_hash()
1557 for (lep = ents, low = 0, high = leafhdr.count - 1, in xfs_dir2_leaf_search_hash()