• Home
  • Raw
  • Download

Lines Matching refs:count

163 	if (ichdr.count == 0)  in xfs_da3_node_verify()
170 if (ichdr.count > mp->m_dir_geo->node_ents && in xfs_da3_node_verify()
171 ichdr.count > mp->m_attr_geo->node_ents) in xfs_da3_node_verify()
582 size = (int)((char *)&btree[icnodehdr.count] - (char *)oldroot); in xfs_da3_root_split()
600 size = (int)((char *)&ents[leafhdr.count] - (char *)leaf); in xfs_da3_root_split()
646 nodehdr.count = 2; in xfs_da3_root_split()
699 if (nodehdr.count + newcount > state->args->geo->node_ents) { in xfs_da3_node_split()
737 if (oldblk->index <= nodehdr.count) { in xfs_da3_node_split()
782 int count; in xfs_da3_node_rebalance() local
800 if (nodehdr1.count > 0 && nodehdr2.count > 0 && in xfs_da3_node_rebalance()
802 (be32_to_cpu(btree2[nodehdr2.count - 1].hashval) < in xfs_da3_node_rebalance()
803 be32_to_cpu(btree1[nodehdr1.count - 1].hashval)))) { in xfs_da3_node_rebalance()
814 count = (nodehdr1.count - nodehdr2.count) / 2; in xfs_da3_node_rebalance()
815 if (count == 0) in xfs_da3_node_rebalance()
821 if (count > 0) { in xfs_da3_node_rebalance()
825 tmp = nodehdr2.count; in xfs_da3_node_rebalance()
829 btree_d = &btree2[count]; in xfs_da3_node_rebalance()
837 nodehdr2.count += count; in xfs_da3_node_rebalance()
838 tmp = count * (uint)sizeof(xfs_da_node_entry_t); in xfs_da3_node_rebalance()
839 btree_s = &btree1[nodehdr1.count - count]; in xfs_da3_node_rebalance()
842 nodehdr1.count -= count; in xfs_da3_node_rebalance()
848 count = -count; in xfs_da3_node_rebalance()
849 tmp = count * (uint)sizeof(xfs_da_node_entry_t); in xfs_da3_node_rebalance()
851 btree_d = &btree1[nodehdr1.count]; in xfs_da3_node_rebalance()
853 nodehdr1.count += count; in xfs_da3_node_rebalance()
861 tmp = nodehdr2.count - count; in xfs_da3_node_rebalance()
863 btree_s = &btree2[count]; in xfs_da3_node_rebalance()
866 nodehdr2.count -= count; in xfs_da3_node_rebalance()
880 (sizeof(btree2[0]) * nodehdr2.count))); in xfs_da3_node_rebalance()
894 blk1->hashval = be32_to_cpu(btree1[nodehdr1.count - 1].hashval); in xfs_da3_node_rebalance()
895 blk2->hashval = be32_to_cpu(btree2[nodehdr2.count - 1].hashval); in xfs_da3_node_rebalance()
900 if (blk1->index >= nodehdr1.count) { in xfs_da3_node_rebalance()
901 blk2->index = blk1->index - nodehdr1.count; in xfs_da3_node_rebalance()
902 blk1->index = nodehdr1.count + 1; /* make it invalid */ in xfs_da3_node_rebalance()
927 ASSERT(oldblk->index >= 0 && oldblk->index <= nodehdr.count); in xfs_da3_node_add()
937 if (oldblk->index < nodehdr.count) { in xfs_da3_node_add()
938 tmp = (nodehdr.count - oldblk->index) * (uint)sizeof(*btree); in xfs_da3_node_add()
947 nodehdr.count += 1; in xfs_da3_node_add()
955 oldblk->hashval = be32_to_cpu(btree[nodehdr.count - 1].hashval); in xfs_da3_node_add()
1102 if (oldroothdr.count > 1) in xfs_da3_root_join()
1158 int count; in xfs_da3_node_toosmall() local
1176 if (nodehdr.count > (state->args->geo->node_ents >> 1)) { in xfs_da3_node_toosmall()
1187 if (nodehdr.count == 0) { in xfs_da3_node_toosmall()
1213 count = state->args->geo->node_ents; in xfs_da3_node_toosmall()
1214 count -= state->args->geo->node_ents >> 2; in xfs_da3_node_toosmall()
1215 count -= nodehdr.count; in xfs_da3_node_toosmall()
1236 if (count - thdr.count >= 0) in xfs_da3_node_toosmall()
1273 int *count) in xfs_da3_node_lasthash() argument
1281 if (count) in xfs_da3_node_lasthash()
1282 *count = nodehdr.count; in xfs_da3_node_lasthash()
1283 if (!nodehdr.count) in xfs_da3_node_lasthash()
1286 return be32_to_cpu(btree[nodehdr.count - 1].hashval); in xfs_da3_node_lasthash()
1303 int count; in xfs_da3_fixhashpath() local
1312 lasthash = xfs_attr_leaf_lasthash(blk->bp, &count); in xfs_da3_fixhashpath()
1313 if (count == 0) in xfs_da3_fixhashpath()
1317 lasthash = xfs_dir2_leaf_lasthash(dp, blk->bp, &count); in xfs_da3_fixhashpath()
1318 if (count == 0) in xfs_da3_fixhashpath()
1322 lasthash = xfs_da3_node_lasthash(dp, blk->bp, &count); in xfs_da3_fixhashpath()
1323 if (count == 0) in xfs_da3_fixhashpath()
1341 lasthash = be32_to_cpu(btree[nodehdr.count - 1].hashval); in xfs_da3_fixhashpath()
1364 ASSERT(drop_blk->index < nodehdr.count); in xfs_da3_node_remove()
1372 if (index < nodehdr.count - 1) { in xfs_da3_node_remove()
1373 tmp = nodehdr.count - index - 1; in xfs_da3_node_remove()
1378 index = nodehdr.count - 1; in xfs_da3_node_remove()
1383 nodehdr.count -= 1; in xfs_da3_node_remove()
1431 (be32_to_cpu(drop_btree[drop_hdr.count - 1].hashval) < in xfs_da3_node_unbalance()
1432 be32_to_cpu(save_btree[save_hdr.count - 1].hashval))) { in xfs_da3_node_unbalance()
1434 tmp = save_hdr.count * sizeof(xfs_da_node_entry_t); in xfs_da3_node_unbalance()
1435 memmove(&save_btree[drop_hdr.count], &save_btree[0], tmp); in xfs_da3_node_unbalance()
1440 (save_hdr.count + drop_hdr.count) * in xfs_da3_node_unbalance()
1443 sindex = save_hdr.count; in xfs_da3_node_unbalance()
1446 drop_hdr.count * sizeof(xfs_da_node_entry_t))); in xfs_da3_node_unbalance()
1452 tmp = drop_hdr.count * (uint)sizeof(xfs_da_node_entry_t); in xfs_da3_node_unbalance()
1454 save_hdr.count += drop_hdr.count; in xfs_da3_node_unbalance()
1464 save_blk->hashval = be32_to_cpu(save_btree[save_hdr.count - 1].hashval); in xfs_da3_node_unbalance()
1568 max = nodehdr.count; in xfs_da3_node_lookup_int()
1686 if (node1hdr.count > 0 && node2hdr.count > 0 && in xfs_da3_node_order()
1688 (be32_to_cpu(btree2[node2hdr.count - 1].hashval) < in xfs_da3_node_order()
1689 be32_to_cpu(btree1[node1hdr.count - 1].hashval)))) { in xfs_da3_node_order()
1908 if (forward && (blk->index < nodehdr.count - 1)) { in xfs_da3_path_shift()
1968 blk->hashval = be32_to_cpu(btree[nodehdr.count - 1].hashval); in xfs_da3_path_shift()
1972 blk->index = nodehdr.count - 1; in xfs_da3_path_shift()
2063 int count) in xfs_da_grow_inode_int() argument
2075 error = xfs_bmap_first_unused(tp, dp, count, bno, w); in xfs_da_grow_inode_int()
2083 error = xfs_bmapi_write(tp, dp, *bno, count, in xfs_da_grow_inode_int()
2093 } else if (nmap == 0 && count > 1) { in xfs_da_grow_inode_int()
2101 mapp = kmem_alloc(sizeof(*mapp) * count, 0); in xfs_da_grow_inode_int()
2102 for (b = *bno, mapi = 0; b < *bno + count; ) { in xfs_da_grow_inode_int()
2103 nmap = min(XFS_BMAP_MAX_NMAP, count); in xfs_da_grow_inode_int()
2104 c = (int)(*bno + count - b); in xfs_da_grow_inode_int()
2126 if (got != count || mapp[0].br_startoff != *bno || in xfs_da_grow_inode_int()
2128 *bno + count) { in xfs_da_grow_inode_int()
2246 dead_hash = be32_to_cpu(ents[leafhdr.count - 1].hashval); in xfs_da3_swap_lastblock()
2254 dead_hash = be32_to_cpu(btree[deadhdr.count - 1].hashval); in xfs_da3_swap_lastblock()
2321 entno < par_hdr.count && in xfs_da3_swap_lastblock()
2325 if (entno == par_hdr.count) { in xfs_da3_swap_lastblock()
2343 entno < par_hdr.count && in xfs_da3_swap_lastblock()
2347 if (entno < par_hdr.count) in xfs_da3_swap_lastblock()
2401 int done, error, w, count; in xfs_da_shrink_inode() local
2409 count = args->geo->fsbcount; in xfs_da_shrink_inode()
2415 error = xfs_bunmapi(tp, dp, dead_blkno, count, in xfs_da_shrink_inode()
2441 int count) in xfs_da_map_covers_blocks() argument
2456 return off == bno + count; in xfs_da_map_covers_blocks()