• Home
  • Raw
  • Download

Lines Matching refs:count

461 	if (leafhdr.count == dp->d_ops->leaf_max_ents(args->geo)) {  in xfs_dir2_leafn_add()
468 ASSERT(index == leafhdr.count || in xfs_dir2_leafn_add()
485 lfloglow = leafhdr.count; in xfs_dir2_leafn_add()
534 int *count) /* count of entries in leaf */ in xfs_dir2_leafn_lasthash() argument
545 if (count) in xfs_dir2_leafn_lasthash()
546 *count = leafhdr.count; in xfs_dir2_leafn_lasthash()
547 if (!leafhdr.count) in xfs_dir2_leafn_lasthash()
551 return be32_to_cpu(ents[leafhdr.count - 1].hashval); in xfs_dir2_leafn_lasthash()
591 ASSERT(leafhdr.count > 0); in xfs_dir2_leafn_lookup_for_addname()
613 index < leafhdr.count && be32_to_cpu(lep->hashval) == args->hashval; in xfs_dir2_leafn_lookup_for_addname()
743 ASSERT(leafhdr.count > 0); in xfs_dir2_leafn_lookup_for_entry()
760 index < leafhdr.count && be32_to_cpu(lep->hashval) == args->hashval; in xfs_dir2_leafn_lookup_for_entry()
838 ASSERT(index == leafhdr.count || (args->op_flags & XFS_DA_OP_OKNOENT)); in xfs_dir2_leafn_lookup_for_entry()
894 int count) /* count of leaves to copy */ in xfs_dir3_leafn_moveents() argument
898 trace_xfs_dir2_leafn_moveents(args, start_s, start_d, count); in xfs_dir3_leafn_moveents()
903 if (count == 0) in xfs_dir3_leafn_moveents()
911 if (start_d < dhdr->count) { in xfs_dir3_leafn_moveents()
912 memmove(&dents[start_d + count], &dents[start_d], in xfs_dir3_leafn_moveents()
913 (dhdr->count - start_d) * sizeof(xfs_dir2_leaf_entry_t)); in xfs_dir3_leafn_moveents()
914 xfs_dir3_leaf_log_ents(args, bp_d, start_d + count, in xfs_dir3_leafn_moveents()
915 count + dhdr->count - 1); in xfs_dir3_leafn_moveents()
924 for (i = start_s, stale = 0; i < start_s + count; i++) { in xfs_dir3_leafn_moveents()
935 count * sizeof(xfs_dir2_leaf_entry_t)); in xfs_dir3_leafn_moveents()
936 xfs_dir3_leaf_log_ents(args, bp_d, start_d, start_d + count - 1); in xfs_dir3_leafn_moveents()
942 if (start_s + count < shdr->count) { in xfs_dir3_leafn_moveents()
943 memmove(&sents[start_s], &sents[start_s + count], in xfs_dir3_leafn_moveents()
944 count * sizeof(xfs_dir2_leaf_entry_t)); in xfs_dir3_leafn_moveents()
945 xfs_dir3_leaf_log_ents(args, bp_s, start_s, start_s + count - 1); in xfs_dir3_leafn_moveents()
951 shdr->count -= count; in xfs_dir3_leafn_moveents()
953 dhdr->count += count; in xfs_dir3_leafn_moveents()
979 if (hdr1.count > 0 && hdr2.count > 0 && in xfs_dir2_leafn_order()
981 be32_to_cpu(ents2[hdr2.count - 1].hashval) < in xfs_dir2_leafn_order()
982 be32_to_cpu(ents1[hdr1.count - 1].hashval))) in xfs_dir2_leafn_order()
1001 int count; /* count (& direction) leaves */ in xfs_dir2_leafn_rebalance() local
1035 oldsum = hdr1.count + hdr2.count; in xfs_dir2_leafn_rebalance()
1048 if (mid >= hdr1.count) in xfs_dir2_leafn_rebalance()
1049 midhash = be32_to_cpu(ents2[mid - hdr1.count].hashval); in xfs_dir2_leafn_rebalance()
1065 count = hdr1.count - mid + (isleft == 0); in xfs_dir2_leafn_rebalance()
1066 if (count > 0) in xfs_dir2_leafn_rebalance()
1068 hdr1.count - count, blk2->bp, in xfs_dir2_leafn_rebalance()
1069 &hdr2, ents2, 0, count); in xfs_dir2_leafn_rebalance()
1070 else if (count < 0) in xfs_dir2_leafn_rebalance()
1073 hdr1.count, count); in xfs_dir2_leafn_rebalance()
1075 ASSERT(hdr1.count + hdr2.count == oldsum); in xfs_dir2_leafn_rebalance()
1090 if (hdr1.count < hdr2.count) in xfs_dir2_leafn_rebalance()
1092 else if (hdr1.count > hdr2.count) in xfs_dir2_leafn_rebalance()
1095 state->inleaf = swap ^ (blk1->index <= hdr1.count); in xfs_dir2_leafn_rebalance()
1100 blk2->index = blk1->index - hdr1.count; in xfs_dir2_leafn_rebalance()
1350 (uint)sizeof(ents[0]) * (leafhdr.count - leafhdr.stale)) < in xfs_dir2_leafn_remove()
1433 int count; /* leaf live entry count */ in xfs_dir2_leafn_toosmall() local
1454 count = leafhdr.count - leafhdr.stale; in xfs_dir2_leafn_toosmall()
1455 bytes = dp->d_ops->leaf_hdr_size + count * sizeof(ents[0]); in xfs_dir2_leafn_toosmall()
1469 if (count == 0) { in xfs_dir2_leafn_toosmall()
1508 count = leafhdr.count - leafhdr.stale; in xfs_dir2_leafn_toosmall()
1515 count += hdr2.count - hdr2.stale; in xfs_dir2_leafn_toosmall()
1516 bytes -= count * sizeof(ents[0]); in xfs_dir2_leafn_toosmall()
1593 drop_blk->hashval = be32_to_cpu(dents[drophdr.count - 1].hashval); in xfs_dir2_leafn_unbalance()
1597 drophdr.count); in xfs_dir2_leafn_unbalance()
1601 savehdr.count, drophdr.count); in xfs_dir2_leafn_unbalance()
1602 save_blk->hashval = be32_to_cpu(sents[savehdr.count - 1].hashval); in xfs_dir2_leafn_unbalance()