Lines Matching refs:ents

89 	struct xfs_dir2_leaf_entry *ents;  in xfs_dir3_leaf_check_int()  local
108 ents = ops->leaf_ents_p(leaf); in xfs_dir3_leaf_check_int()
122 (char *)&ents[hdr->count] > (char *)xfs_dir2_leaf_bests_p(ltp)) in xfs_dir3_leaf_check_int()
128 if (be32_to_cpu(ents[i].hashval) > in xfs_dir3_leaf_check_int()
129 be32_to_cpu(ents[i + 1].hashval)) in xfs_dir3_leaf_check_int()
132 if (ents[i].address == cpu_to_be32(XFS_DIR2_NULL_DATAPTR)) in xfs_dir3_leaf_check_int()
394 struct xfs_dir2_leaf_entry *ents; in xfs_dir2_block_to_leaf() local
424 ents = dp->d_ops->leaf_ents_p(leaf); in xfs_dir2_block_to_leaf()
439 memcpy(ents, blp, be32_to_cpu(btp->count) * sizeof(xfs_dir2_leaf_entry_t)); in xfs_dir2_block_to_leaf()
485 struct xfs_dir2_leaf_entry *ents, in xfs_dir3_leaf_find_stale() argument
494 if (ents[*lowstale].address == in xfs_dir3_leaf_find_stale()
505 if (ents[*highstale].address == in xfs_dir3_leaf_find_stale()
516 struct xfs_dir2_leaf_entry *ents, in xfs_dir3_leaf_find_entry() argument
532 lep = &ents[index]; in xfs_dir3_leaf_find_entry()
555 xfs_dir3_leaf_find_stale(leafhdr, ents, index, in xfs_dir3_leaf_find_entry()
565 ASSERT(ents[lowstale].address == in xfs_dir3_leaf_find_entry()
573 memmove(&ents[lowstale], &ents[lowstale + 1], in xfs_dir3_leaf_find_entry()
580 return &ents[index - 1]; in xfs_dir3_leaf_find_entry()
587 ASSERT(ents[highstale].address == cpu_to_be32(XFS_DIR2_NULL_DATAPTR)); in xfs_dir3_leaf_find_entry()
594 memmove(&ents[index + 1], &ents[index], in xfs_dir3_leaf_find_entry()
600 return &ents[index]; in xfs_dir3_leaf_find_entry()
637 struct xfs_dir2_leaf_entry *ents; in xfs_dir2_leaf_addname() local
658 ents = dp->d_ops->leaf_ents_p(leaf); in xfs_dir2_leaf_addname()
669 for (use_block = -1, lep = &ents[index]; in xfs_dir2_leaf_addname()
718 if ((char *)bestsp - (char *)&ents[leafhdr.count] < needbytes && in xfs_dir2_leaf_addname()
726 else if ((char *)bestsp - (char *)&ents[leafhdr.count] < needbytes) { in xfs_dir2_leaf_addname()
774 xfs_dir3_leaf_compact_x1(&leafhdr, ents, &index, &lowstale, in xfs_dir2_leaf_addname()
887 lep = xfs_dir3_leaf_find_entry(&leafhdr, ents, index, compact, lowstale, in xfs_dir2_leaf_addname()
922 struct xfs_dir2_leaf_entry *ents; in xfs_dir3_leaf_compact() local
932 ents = dp->d_ops->leaf_ents_p(leaf); in xfs_dir3_leaf_compact()
934 if (ents[from].address == cpu_to_be32(XFS_DIR2_NULL_DATAPTR)) in xfs_dir3_leaf_compact()
942 ents[to] = ents[from]; in xfs_dir3_leaf_compact()
970 struct xfs_dir2_leaf_entry *ents, in xfs_dir3_leaf_compact_x1() argument
988 xfs_dir3_leaf_find_stale(leafhdr, ents, index, &lowstale, &highstale); in xfs_dir3_leaf_compact_x1()
1010 ents[from].address == cpu_to_be32(XFS_DIR2_NULL_DATAPTR)) { in xfs_dir3_leaf_compact_x1()
1024 ents[to] = ents[from]; in xfs_dir3_leaf_compact_x1()
1092 struct xfs_dir2_leaf_entry *ents; in xfs_dir3_leaf_log_ents() local
1099 ents = args->dp->d_ops->leaf_ents_p(leaf); in xfs_dir3_leaf_log_ents()
1100 firstlep = &ents[first]; in xfs_dir3_leaf_log_ents()
1101 lastlep = &ents[last]; in xfs_dir3_leaf_log_ents()
1166 struct xfs_dir2_leaf_entry *ents; in xfs_dir2_leaf_lookup() local
1180 ents = dp->d_ops->leaf_ents_p(leaf); in xfs_dir2_leaf_lookup()
1184 lep = &ents[index]; in xfs_dir2_leaf_lookup()
1230 struct xfs_dir2_leaf_entry *ents; in xfs_dir2_leaf_lookup_int() local
1244 ents = dp->d_ops->leaf_ents_p(leaf); in xfs_dir2_leaf_lookup_int()
1255 for (lep = &ents[index]; in xfs_dir2_leaf_lookup_int()
1362 struct xfs_dir2_leaf_entry *ents; in xfs_dir2_leaf_removename() local
1379 ents = dp->d_ops->leaf_ents_p(leaf); in xfs_dir2_leaf_removename()
1383 lep = &ents[index]; in xfs_dir2_leaf_removename()
1498 struct xfs_dir2_leaf_entry *ents; in xfs_dir2_leaf_replace() local
1510 ents = dp->d_ops->leaf_ents_p(leaf); in xfs_dir2_leaf_replace()
1514 lep = &ents[index]; in xfs_dir2_leaf_replace()
1551 struct xfs_dir2_leaf_entry *ents; in xfs_dir2_leaf_search_hash() local
1555 ents = args->dp->d_ops->leaf_ents_p(leaf); in xfs_dir2_leaf_search_hash()
1562 for (lep = ents, low = 0, high = leafhdr.count - 1, in xfs_dir2_leaf_search_hash()