Lines Matching refs:count

114 		ASSERT(!to->count && !to->usedbytes);  in xfs_attr3_leaf_firstused_from_disk()
168 to->count = be16_to_cpu(hdr3->count); in xfs_attr3_leaf_hdr_from_disk()
182 to->count = be16_to_cpu(from->hdr.count); in xfs_attr3_leaf_hdr_from_disk()
210 hdr3->count = cpu_to_be16(from->count); in xfs_attr3_leaf_hdr_to_disk()
225 to->hdr.count = cpu_to_be16(from->count); in xfs_attr3_leaf_hdr_to_disk()
341 if ((char *)&entries[ichdr.count] > in xfs_attr3_leaf_verify()
353 for (i = 0, ent = entries; i < ichdr.count; ent++, i++) { in xfs_attr3_leaf_verify()
724 end = sf->hdr.count; in xfs_attr_sf_findname()
784 sf->hdr.count++; in xfs_attr_shortform_add()
848 sf->hdr.count--; in xfs_attr_sf_removename()
894 for (i = 0; i < sf->hdr.count; in xfs_attr_shortform_lookup()
921 for (i = 0; i < sf->hdr.count; in xfs_attr_shortform_getvalue()
979 for (i = 0; i < sf->hdr.count; i++) { in xfs_attr_shortform_to_leaf()
1023 for (i = 0; i < leafhdr.count; entry++, i++) { in xfs_attr_shortform_allfit()
1071 for (i = 0; i < sfp->hdr.count; i++) { in xfs_attr_shortform_verify()
1188 for (i = 0; i < ichdr.count; entry++, i++) { in xfs_attr3_leaf_to_shortform()
1271 icnodehdr.btree[0].hashval = entries[icleafhdr.count - 1].hashval; in xfs_attr3_leaf_to_node()
1273 icnodehdr.count = 1; in xfs_attr3_leaf_to_node()
1418 ASSERT(args->index >= 0 && args->index <= ichdr.count); in xfs_attr3_leaf_add()
1425 tablesize = (ichdr.count + 1) * sizeof(xfs_attr_leaf_entry_t) in xfs_attr3_leaf_add()
1499 ASSERT(args->index >= 0 && args->index <= ichdr->count); in xfs_attr3_leaf_add_work()
1505 if (args->index < ichdr->count) { in xfs_attr3_leaf_add_work()
1506 tmp = ichdr->count - args->index; in xfs_attr3_leaf_add_work()
1512 ichdr->count++; in xfs_attr3_leaf_add_work()
1545 ASSERT((args->index == ichdr->count - 1) || in xfs_attr3_leaf_add_work()
1584 ASSERT(ichdr->firstused >= ichdr->count * sizeof(xfs_attr_leaf_entry_t) in xfs_attr3_leaf_add_work()
1586 tmp = (ichdr->count - 1) * sizeof(xfs_attr_leaf_entry_t) in xfs_attr3_leaf_add_work()
1635 ichdr_dst->count = 0; in xfs_attr3_leaf_compact()
1649 leaf_dst, ichdr_dst, 0, ichdr_src.count); in xfs_attr3_leaf_compact()
1675 if (leaf1hdr->count > 0 && leaf2hdr->count > 0 && in xfs_attr3_leaf_order()
1678 (be32_to_cpu(entries2[leaf2hdr->count - 1].hashval) < in xfs_attr3_leaf_order()
1679 be32_to_cpu(entries1[leaf1hdr->count - 1].hashval)))) { in xfs_attr3_leaf_order()
1724 int count; in xfs_attr3_leaf_rebalance() local
1739 ASSERT(ichdr2.count == 0); in xfs_attr3_leaf_rebalance()
1772 &count, &totallen); in xfs_attr3_leaf_rebalance()
1779 if (count < ichdr1.count) { in xfs_attr3_leaf_rebalance()
1784 count = ichdr1.count - count; in xfs_attr3_leaf_rebalance()
1786 space += count * sizeof(xfs_attr_leaf_entry_t); in xfs_attr3_leaf_rebalance()
1792 max -= ichdr2.count * sizeof(xfs_attr_leaf_entry_t); in xfs_attr3_leaf_rebalance()
1800 ichdr1.count - count, leaf2, &ichdr2, 0, count); in xfs_attr3_leaf_rebalance()
1802 } else if (count > ichdr1.count) { in xfs_attr3_leaf_rebalance()
1813 count -= ichdr1.count; in xfs_attr3_leaf_rebalance()
1815 space += count * sizeof(xfs_attr_leaf_entry_t); in xfs_attr3_leaf_rebalance()
1821 max -= ichdr1.count * sizeof(xfs_attr_leaf_entry_t); in xfs_attr3_leaf_rebalance()
1829 ichdr1.count, count); in xfs_attr3_leaf_rebalance()
1842 blk1->hashval = be32_to_cpu(entries1[ichdr1.count - 1].hashval); in xfs_attr3_leaf_rebalance()
1843 blk2->hashval = be32_to_cpu(entries2[ichdr2.count - 1].hashval); in xfs_attr3_leaf_rebalance()
1857 if (blk1->index > ichdr1.count) { in xfs_attr3_leaf_rebalance()
1859 blk2->index = blk1->index - ichdr1.count; in xfs_attr3_leaf_rebalance()
1862 } else if (blk1->index == ichdr1.count) { in xfs_attr3_leaf_rebalance()
1874 blk2->index = blk1->index - ichdr1.count; in xfs_attr3_leaf_rebalance()
1914 int count; in xfs_attr3_leaf_figure_balance() local
1927 max = ichdr1->count + ichdr2->count; in xfs_attr3_leaf_figure_balance()
1934 for (count = index = 0; count < max; entry++, index++, count++) { in xfs_attr3_leaf_figure_balance()
1940 if (count == blk1->index) { in xfs_attr3_leaf_figure_balance()
1953 if (count == ichdr1->count) { in xfs_attr3_leaf_figure_balance()
1975 totallen -= count * sizeof(*entry); in xfs_attr3_leaf_figure_balance()
1981 *countarg = count; in xfs_attr3_leaf_figure_balance()
2028 ichdr.count * sizeof(xfs_attr_leaf_entry_t) + in xfs_attr3_leaf_toosmall()
2041 if (ichdr.count == 0) { in xfs_attr3_leaf_toosmall()
2087 ((ichdr.count + ichdr2.count) * in xfs_attr3_leaf_toosmall()
2149 ASSERT(ichdr.count > 0 && ichdr.count < args->geo->blksize / 8); in xfs_attr3_leaf_remove()
2150 ASSERT(args->index >= 0 && args->index < ichdr.count); in xfs_attr3_leaf_remove()
2151 ASSERT(ichdr.firstused >= ichdr.count * sizeof(*entry) + in xfs_attr3_leaf_remove()
2165 tablesize = ichdr.count * sizeof(xfs_attr_leaf_entry_t) in xfs_attr3_leaf_remove()
2234 tmp = (ichdr.count - args->index) * sizeof(xfs_attr_leaf_entry_t); in xfs_attr3_leaf_remove()
2236 ichdr.count--; in xfs_attr3_leaf_remove()
2240 entry = &xfs_attr3_leaf_entryp(leaf)[ichdr.count]; in xfs_attr3_leaf_remove()
2252 for (i = ichdr.count - 1; i >= 0; entry++, i--) { in xfs_attr3_leaf_remove()
2274 ichdr.count * sizeof(xfs_attr_leaf_entry_t); in xfs_attr3_leaf_remove()
2303 drop_blk->hashval = be32_to_cpu(entry[drophdr.count - 1].hashval); in xfs_attr3_leaf_unbalance()
2320 drophdr.count); in xfs_attr3_leaf_unbalance()
2325 savehdr.count, drophdr.count); in xfs_attr3_leaf_unbalance()
2358 drophdr.count); in xfs_attr3_leaf_unbalance()
2361 tmp_leaf, &tmphdr, tmphdr.count, in xfs_attr3_leaf_unbalance()
2362 savehdr.count); in xfs_attr3_leaf_unbalance()
2367 savehdr.count); in xfs_attr3_leaf_unbalance()
2370 tmp_leaf, &tmphdr, tmphdr.count, in xfs_attr3_leaf_unbalance()
2371 drophdr.count); in xfs_attr3_leaf_unbalance()
2386 save_blk->hashval = be32_to_cpu(entry[savehdr.count - 1].hashval); in xfs_attr3_leaf_unbalance()
2426 if (ichdr.count >= args->geo->blksize / 8) { in xfs_attr3_leaf_lookup_int()
2435 probe = span = ichdr.count / 2; in xfs_attr3_leaf_lookup_int()
2445 if (!(probe >= 0 && (!ichdr.count || probe < ichdr.count))) { in xfs_attr3_leaf_lookup_int()
2462 while (probe < ichdr.count && in xfs_attr3_leaf_lookup_int()
2467 if (probe == ichdr.count || be32_to_cpu(entry->hashval) != hashval) { in xfs_attr3_leaf_lookup_int()
2475 for (; probe < ichdr.count && (be32_to_cpu(entry->hashval) == hashval); in xfs_attr3_leaf_lookup_int()
2526 ASSERT(ichdr.count < args->geo->blksize / 8); in xfs_attr3_leaf_getvalue()
2527 ASSERT(args->index < ichdr.count); in xfs_attr3_leaf_getvalue()
2567 int count) in xfs_attr3_leaf_moveents() argument
2578 if (count == 0) in xfs_attr3_leaf_moveents()
2587 ASSERT(ichdr_s->count > 0 && ichdr_s->count < args->geo->blksize / 8); in xfs_attr3_leaf_moveents()
2588 ASSERT(ichdr_s->firstused >= (ichdr_s->count * sizeof(*entry_s)) in xfs_attr3_leaf_moveents()
2590 ASSERT(ichdr_d->count < args->geo->blksize / 8); in xfs_attr3_leaf_moveents()
2591 ASSERT(ichdr_d->firstused >= (ichdr_d->count * sizeof(*entry_d)) in xfs_attr3_leaf_moveents()
2594 ASSERT(start_s < ichdr_s->count); in xfs_attr3_leaf_moveents()
2595 ASSERT(start_d <= ichdr_d->count); in xfs_attr3_leaf_moveents()
2596 ASSERT(count <= ichdr_s->count); in xfs_attr3_leaf_moveents()
2602 if (start_d < ichdr_d->count) { in xfs_attr3_leaf_moveents()
2603 tmp = ichdr_d->count - start_d; in xfs_attr3_leaf_moveents()
2606 entry_d = &xfs_attr3_leaf_entryp(leaf_d)[start_d + count]; in xfs_attr3_leaf_moveents()
2617 for (i = 0; i < count; entry_s++, entry_d++, desti++, i++) { in xfs_attr3_leaf_moveents()
2629 ichdr_s->count -= 1; in xfs_attr3_leaf_moveents()
2650 ichdr_s->count -= 1; in xfs_attr3_leaf_moveents()
2651 ichdr_d->count += 1; in xfs_attr3_leaf_moveents()
2652 tmp = ichdr_d->count * sizeof(xfs_attr_leaf_entry_t) in xfs_attr3_leaf_moveents()
2663 if (start_s == ichdr_s->count) { in xfs_attr3_leaf_moveents()
2664 tmp = count * sizeof(xfs_attr_leaf_entry_t); in xfs_attr3_leaf_moveents()
2674 tmp = (ichdr_s->count - count) * sizeof(xfs_attr_leaf_entry_t); in xfs_attr3_leaf_moveents()
2675 entry_s = &xfs_attr3_leaf_entryp(leaf_s)[start_s + count]; in xfs_attr3_leaf_moveents()
2679 tmp = count * sizeof(xfs_attr_leaf_entry_t); in xfs_attr3_leaf_moveents()
2680 entry_s = &xfs_attr3_leaf_entryp(leaf_s)[ichdr_s->count]; in xfs_attr3_leaf_moveents()
2690 ichdr_d->freemap[0].base += ichdr_d->count * sizeof(xfs_attr_leaf_entry_t); in xfs_attr3_leaf_moveents()
2705 int *count) in xfs_attr_leaf_lasthash() argument
2713 if (count) in xfs_attr_leaf_lasthash()
2714 *count = ichdr.count; in xfs_attr_leaf_lasthash()
2715 if (!ichdr.count) in xfs_attr_leaf_lasthash()
2717 return be32_to_cpu(entries[ichdr.count - 1].hashval); in xfs_attr_leaf_lasthash()
2806 ASSERT(args->index < ichdr.count); in xfs_attr3_leaf_clearflag()
2867 ASSERT(args->index < ichdr.count); in xfs_attr3_leaf_setflag()
2943 ASSERT(args->index < ichdr1.count); in xfs_attr3_leaf_flipflags()
2947 ASSERT(args->index2 < ichdr2.count); in xfs_attr3_leaf_flipflags()