• Home
  • Raw
  • Download

Lines Matching refs:count

127 		ASSERT(!to->count && !to->usedbytes);  in xfs_attr3_leaf_firstused_from_disk()
181 to->count = be16_to_cpu(hdr3->count); in xfs_attr3_leaf_hdr_from_disk()
195 to->count = be16_to_cpu(from->hdr.count); in xfs_attr3_leaf_hdr_from_disk()
223 hdr3->count = cpu_to_be16(from->count); in xfs_attr3_leaf_hdr_to_disk()
238 to->hdr.count = cpu_to_be16(from->count); in xfs_attr3_leaf_hdr_to_disk()
282 if (pag && pag->pagf_init && ichdr.count == 0) in xfs_attr3_leaf_verify()
524 hdr->count = 0; in xfs_attr_shortform_create()
553 for (i = 0; i < sf->hdr.count; sfe = XFS_ATTR_SF_NEXTENTRY(sfe), i++) { in xfs_attr_shortform_add()
576 sf->hdr.count++; in xfs_attr_shortform_add()
621 end = sf->hdr.count; in xfs_attr_shortform_remove()
643 sf->hdr.count--; in xfs_attr_shortform_remove()
690 for (i = 0; i < sf->hdr.count; in xfs_attr_shortform_lookup()
717 for (i = 0; i < sf->hdr.count; in xfs_attr_shortform_getvalue()
808 for (i = 0; i < sf->hdr.count; i++) { in xfs_attr_shortform_to_leaf()
853 for (i = 0; i < leafhdr.count; entry++, i++) { in xfs_attr_shortform_allfit()
937 for (i = 0; i < ichdr.count; entry++, i++) { in xfs_attr3_leaf_to_shortform()
1017 btree[0].hashval = entries[icleafhdr.count - 1].hashval; in xfs_attr3_leaf_to_node()
1019 icnodehdr.count = 1; in xfs_attr3_leaf_to_node()
1164 ASSERT(args->index >= 0 && args->index <= ichdr.count); in xfs_attr3_leaf_add()
1171 tablesize = (ichdr.count + 1) * sizeof(xfs_attr_leaf_entry_t) in xfs_attr3_leaf_add()
1245 ASSERT(args->index >= 0 && args->index <= ichdr->count); in xfs_attr3_leaf_add_work()
1251 if (args->index < ichdr->count) { in xfs_attr3_leaf_add_work()
1252 tmp = ichdr->count - args->index; in xfs_attr3_leaf_add_work()
1258 ichdr->count++; in xfs_attr3_leaf_add_work()
1289 ASSERT((args->index == ichdr->count - 1) || in xfs_attr3_leaf_add_work()
1328 ASSERT(ichdr->firstused >= ichdr->count * sizeof(xfs_attr_leaf_entry_t) in xfs_attr3_leaf_add_work()
1330 tmp = (ichdr->count - 1) * sizeof(xfs_attr_leaf_entry_t) in xfs_attr3_leaf_add_work()
1377 ichdr_dst->count = 0; in xfs_attr3_leaf_compact()
1391 leaf_dst, ichdr_dst, 0, ichdr_src.count); in xfs_attr3_leaf_compact()
1417 if (leaf1hdr->count > 0 && leaf2hdr->count > 0 && in xfs_attr3_leaf_order()
1420 (be32_to_cpu(entries2[leaf2hdr->count - 1].hashval) < in xfs_attr3_leaf_order()
1421 be32_to_cpu(entries1[leaf1hdr->count - 1].hashval)))) { in xfs_attr3_leaf_order()
1466 int count; in xfs_attr3_leaf_rebalance() local
1481 ASSERT(ichdr2.count == 0); in xfs_attr3_leaf_rebalance()
1521 &count, &totallen); in xfs_attr3_leaf_rebalance()
1528 if (count < ichdr1.count) { in xfs_attr3_leaf_rebalance()
1533 count = ichdr1.count - count; in xfs_attr3_leaf_rebalance()
1535 space += count * sizeof(xfs_attr_leaf_entry_t); in xfs_attr3_leaf_rebalance()
1541 max -= ichdr2.count * sizeof(xfs_attr_leaf_entry_t); in xfs_attr3_leaf_rebalance()
1549 ichdr1.count - count, leaf2, &ichdr2, 0, count); in xfs_attr3_leaf_rebalance()
1551 } else if (count > ichdr1.count) { in xfs_attr3_leaf_rebalance()
1562 count -= ichdr1.count; in xfs_attr3_leaf_rebalance()
1564 space += count * sizeof(xfs_attr_leaf_entry_t); in xfs_attr3_leaf_rebalance()
1570 max -= ichdr1.count * sizeof(xfs_attr_leaf_entry_t); in xfs_attr3_leaf_rebalance()
1578 ichdr1.count, count); in xfs_attr3_leaf_rebalance()
1591 blk1->hashval = be32_to_cpu(entries1[ichdr1.count - 1].hashval); in xfs_attr3_leaf_rebalance()
1592 blk2->hashval = be32_to_cpu(entries2[ichdr2.count - 1].hashval); in xfs_attr3_leaf_rebalance()
1606 if (blk1->index > ichdr1.count) { in xfs_attr3_leaf_rebalance()
1608 blk2->index = blk1->index - ichdr1.count; in xfs_attr3_leaf_rebalance()
1611 } else if (blk1->index == ichdr1.count) { in xfs_attr3_leaf_rebalance()
1623 blk2->index = blk1->index - ichdr1.count; in xfs_attr3_leaf_rebalance()
1663 int count; in xfs_attr3_leaf_figure_balance() local
1676 max = ichdr1->count + ichdr2->count; in xfs_attr3_leaf_figure_balance()
1683 for (count = index = 0; count < max; entry++, index++, count++) { in xfs_attr3_leaf_figure_balance()
1689 if (count == blk1->index) { in xfs_attr3_leaf_figure_balance()
1702 if (count == ichdr1->count) { in xfs_attr3_leaf_figure_balance()
1724 totallen -= count * sizeof(*entry); in xfs_attr3_leaf_figure_balance()
1730 *countarg = count; in xfs_attr3_leaf_figure_balance()
1777 ichdr.count * sizeof(xfs_attr_leaf_entry_t) + in xfs_attr3_leaf_toosmall()
1790 if (ichdr.count == 0) { in xfs_attr3_leaf_toosmall()
1836 ((ichdr.count + ichdr2.count) * in xfs_attr3_leaf_toosmall()
1898 ASSERT(ichdr.count > 0 && ichdr.count < args->geo->blksize / 8); in xfs_attr3_leaf_remove()
1899 ASSERT(args->index >= 0 && args->index < ichdr.count); in xfs_attr3_leaf_remove()
1900 ASSERT(ichdr.firstused >= ichdr.count * sizeof(*entry) + in xfs_attr3_leaf_remove()
1914 tablesize = ichdr.count * sizeof(xfs_attr_leaf_entry_t) in xfs_attr3_leaf_remove()
1983 tmp = (ichdr.count - args->index) * sizeof(xfs_attr_leaf_entry_t); in xfs_attr3_leaf_remove()
1985 ichdr.count--; in xfs_attr3_leaf_remove()
1989 entry = &xfs_attr3_leaf_entryp(leaf)[ichdr.count]; in xfs_attr3_leaf_remove()
2001 for (i = ichdr.count - 1; i >= 0; entry++, i--) { in xfs_attr3_leaf_remove()
2023 ichdr.count * sizeof(xfs_attr_leaf_entry_t); in xfs_attr3_leaf_remove()
2054 drop_blk->hashval = be32_to_cpu(entry[drophdr.count - 1].hashval); in xfs_attr3_leaf_unbalance()
2071 drophdr.count); in xfs_attr3_leaf_unbalance()
2076 savehdr.count, drophdr.count); in xfs_attr3_leaf_unbalance()
2109 drophdr.count); in xfs_attr3_leaf_unbalance()
2112 tmp_leaf, &tmphdr, tmphdr.count, in xfs_attr3_leaf_unbalance()
2113 savehdr.count); in xfs_attr3_leaf_unbalance()
2118 savehdr.count); in xfs_attr3_leaf_unbalance()
2121 tmp_leaf, &tmphdr, tmphdr.count, in xfs_attr3_leaf_unbalance()
2122 drophdr.count); in xfs_attr3_leaf_unbalance()
2137 save_blk->hashval = be32_to_cpu(entry[savehdr.count - 1].hashval); in xfs_attr3_leaf_unbalance()
2177 ASSERT(ichdr.count < args->geo->blksize / 8); in xfs_attr3_leaf_lookup_int()
2183 probe = span = ichdr.count / 2; in xfs_attr3_leaf_lookup_int()
2193 ASSERT(probe >= 0 && (!ichdr.count || probe < ichdr.count)); in xfs_attr3_leaf_lookup_int()
2204 while (probe < ichdr.count && in xfs_attr3_leaf_lookup_int()
2209 if (probe == ichdr.count || be32_to_cpu(entry->hashval) != hashval) { in xfs_attr3_leaf_lookup_int()
2217 for (; probe < ichdr.count && (be32_to_cpu(entry->hashval) == hashval); in xfs_attr3_leaf_lookup_int()
2281 ASSERT(ichdr.count < args->geo->blksize / 8); in xfs_attr3_leaf_getvalue()
2282 ASSERT(args->index < ichdr.count); in xfs_attr3_leaf_getvalue()
2339 int count) in xfs_attr3_leaf_moveents() argument
2350 if (count == 0) in xfs_attr3_leaf_moveents()
2359 ASSERT(ichdr_s->count > 0 && ichdr_s->count < args->geo->blksize / 8); in xfs_attr3_leaf_moveents()
2360 ASSERT(ichdr_s->firstused >= (ichdr_s->count * sizeof(*entry_s)) in xfs_attr3_leaf_moveents()
2362 ASSERT(ichdr_d->count < args->geo->blksize / 8); in xfs_attr3_leaf_moveents()
2363 ASSERT(ichdr_d->firstused >= (ichdr_d->count * sizeof(*entry_d)) in xfs_attr3_leaf_moveents()
2366 ASSERT(start_s < ichdr_s->count); in xfs_attr3_leaf_moveents()
2367 ASSERT(start_d <= ichdr_d->count); in xfs_attr3_leaf_moveents()
2368 ASSERT(count <= ichdr_s->count); in xfs_attr3_leaf_moveents()
2374 if (start_d < ichdr_d->count) { in xfs_attr3_leaf_moveents()
2375 tmp = ichdr_d->count - start_d; in xfs_attr3_leaf_moveents()
2378 entry_d = &xfs_attr3_leaf_entryp(leaf_d)[start_d + count]; in xfs_attr3_leaf_moveents()
2389 for (i = 0; i < count; entry_s++, entry_d++, desti++, i++) { in xfs_attr3_leaf_moveents()
2401 ichdr_s->count -= 1; in xfs_attr3_leaf_moveents()
2422 ichdr_s->count -= 1; in xfs_attr3_leaf_moveents()
2423 ichdr_d->count += 1; in xfs_attr3_leaf_moveents()
2424 tmp = ichdr_d->count * sizeof(xfs_attr_leaf_entry_t) in xfs_attr3_leaf_moveents()
2435 if (start_s == ichdr_s->count) { in xfs_attr3_leaf_moveents()
2436 tmp = count * sizeof(xfs_attr_leaf_entry_t); in xfs_attr3_leaf_moveents()
2446 tmp = (ichdr_s->count - count) * sizeof(xfs_attr_leaf_entry_t); in xfs_attr3_leaf_moveents()
2447 entry_s = &xfs_attr3_leaf_entryp(leaf_s)[start_s + count]; in xfs_attr3_leaf_moveents()
2451 tmp = count * sizeof(xfs_attr_leaf_entry_t); in xfs_attr3_leaf_moveents()
2452 entry_s = &xfs_attr3_leaf_entryp(leaf_s)[ichdr_s->count]; in xfs_attr3_leaf_moveents()
2462 ichdr_d->freemap[0].base += ichdr_d->count * sizeof(xfs_attr_leaf_entry_t); in xfs_attr3_leaf_moveents()
2477 int *count) in xfs_attr_leaf_lasthash() argument
2485 if (count) in xfs_attr_leaf_lasthash()
2486 *count = ichdr.count; in xfs_attr_leaf_lasthash()
2487 if (!ichdr.count) in xfs_attr_leaf_lasthash()
2489 return be32_to_cpu(entries[ichdr.count - 1].hashval); in xfs_attr_leaf_lasthash()
2578 ASSERT(args->index < ichdr.count); in xfs_attr3_leaf_clearflag()
2642 ASSERT(args->index < ichdr.count); in xfs_attr3_leaf_setflag()
2721 ASSERT(args->index < ichdr1.count); in xfs_attr3_leaf_flipflags()
2725 ASSERT(args->index2 < ichdr2.count); in xfs_attr3_leaf_flipflags()