Lines Matching refs:ents
118 memcpy(leaf->ents, blp, be32_to_cpu(btp->count) * sizeof(xfs_dir2_leaf_entry_t)); in xfs_dir2_block_to_leaf()
221 for (use_block = -1, lep = &leaf->ents[index]; in xfs_dir2_leaf_addname()
254 (leaf->hdr.stale ? 0 : (uint)sizeof(leaf->ents[0])) + in xfs_dir2_leaf_addname()
266 if ((char *)bestsp - (char *)&leaf->ents[be16_to_cpu(leaf->hdr.count)] < in xfs_dir2_leaf_addname()
274 else if ((char *)bestsp - (char *)&leaf->ents[be16_to_cpu( in xfs_dir2_leaf_addname()
469 be32_to_cpu(leaf->ents[lowstale].address) != in xfs_dir2_leaf_addname()
480 be32_to_cpu(leaf->ents[highstale].address) != in xfs_dir2_leaf_addname()
494 ASSERT(be32_to_cpu(leaf->ents[lowstale].address) == in xfs_dir2_leaf_addname()
501 memmove(&leaf->ents[lowstale], in xfs_dir2_leaf_addname()
502 &leaf->ents[lowstale + 1], in xfs_dir2_leaf_addname()
504 lep = &leaf->ents[index - 1]; in xfs_dir2_leaf_addname()
513 ASSERT(be32_to_cpu(leaf->ents[highstale].address) == in xfs_dir2_leaf_addname()
520 memmove(&leaf->ents[index + 1], in xfs_dir2_leaf_addname()
521 &leaf->ents[index], in xfs_dir2_leaf_addname()
523 lep = &leaf->ents[index]; in xfs_dir2_leaf_addname()
576 ASSERT((char *)&leaf->ents[be16_to_cpu(leaf->hdr.count)] <= in xfs_dir2_leaf_check()
583 ASSERT(be32_to_cpu(leaf->ents[i].hashval) <= in xfs_dir2_leaf_check()
584 be32_to_cpu(leaf->ents[i + 1].hashval)); in xfs_dir2_leaf_check()
585 if (be32_to_cpu(leaf->ents[i].address) == XFS_DIR2_NULL_DATAPTR) in xfs_dir2_leaf_check()
614 if (be32_to_cpu(leaf->ents[from].address) == XFS_DIR2_NULL_DATAPTR) in xfs_dir2_leaf_compact()
622 leaf->ents[to] = leaf->ents[from]; in xfs_dir2_leaf_compact()
671 be32_to_cpu(leaf->ents[lowstale].address) != XFS_DIR2_NULL_DATAPTR; in xfs_dir2_leaf_compact_x1()
680 be32_to_cpu(leaf->ents[highstale].address) != XFS_DIR2_NULL_DATAPTR && in xfs_dir2_leaf_compact_x1()
704 be32_to_cpu(leaf->ents[from].address) == XFS_DIR2_NULL_DATAPTR) { in xfs_dir2_leaf_compact_x1()
718 leaf->ents[to] = leaf->ents[from]; in xfs_dir2_leaf_compact_x1()
1218 firstlep = &leaf->ents[first]; in xfs_dir2_leaf_log_ents()
1219 lastlep = &leaf->ents[last]; in xfs_dir2_leaf_log_ents()
1294 lep = &leaf->ents[index]; in xfs_dir2_leaf_lookup()
1360 for (lep = &leaf->ents[index]; index < be16_to_cpu(leaf->hdr.count) && in xfs_dir2_leaf_lookup_int()
1484 lep = &leaf->ents[index]; in xfs_dir2_leaf_removename()
1612 lep = &leaf->ents[index]; in xfs_dir2_leaf_replace()
1659 for (lep = leaf->ents, low = 0, high = be16_to_cpu(leaf->hdr.count) - 1, in xfs_dir2_leaf_search_hash()
1835 (be16_to_cpu(leaf->hdr.count) - be16_to_cpu(leaf->hdr.stale)) * (uint)sizeof(leaf->ents[0]) + in xfs_dir2_node_to_leaf()