Lines Matching refs:nodehdr
730 struct xfs_da3_icnode_hdr nodehdr; in xfs_da3_root_split() local
802 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr, node); in xfs_da3_root_split()
803 btree = nodehdr.btree; in xfs_da3_root_split()
808 nodehdr.count = 2; in xfs_da3_root_split()
809 xfs_da3_node_hdr_to_disk(dp->i_mount, node, &nodehdr); in xfs_da3_root_split()
841 struct xfs_da3_icnode_hdr nodehdr; in xfs_da3_node_split() local
851 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr, node); in xfs_da3_node_split()
861 if (nodehdr.count + newcount > state->args->geo->node_ents) { in xfs_da3_node_split()
898 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr, node); in xfs_da3_node_split()
899 if (oldblk->index <= nodehdr.count) { in xfs_da3_node_split()
1076 struct xfs_da3_icnode_hdr nodehdr; in xfs_da3_node_add() local
1084 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr, node); in xfs_da3_node_add()
1085 btree = nodehdr.btree; in xfs_da3_node_add()
1087 ASSERT(oldblk->index >= 0 && oldblk->index <= nodehdr.count); in xfs_da3_node_add()
1097 if (oldblk->index < nodehdr.count) { in xfs_da3_node_add()
1098 tmp = (nodehdr.count - oldblk->index) * (uint)sizeof(*btree); in xfs_da3_node_add()
1107 nodehdr.count += 1; in xfs_da3_node_add()
1108 xfs_da3_node_hdr_to_disk(dp->i_mount, node, &nodehdr); in xfs_da3_node_add()
1116 oldblk->hashval = be32_to_cpu(btree[nodehdr.count - 1].hashval); in xfs_da3_node_add()
1317 struct xfs_da3_icnode_hdr nodehdr; in xfs_da3_node_toosmall() local
1335 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr, node); in xfs_da3_node_toosmall()
1336 if (nodehdr.count > (state->args->geo->node_ents >> 1)) { in xfs_da3_node_toosmall()
1347 if (nodehdr.count == 0) { in xfs_da3_node_toosmall()
1375 count -= nodehdr.count; in xfs_da3_node_toosmall()
1378 forward = nodehdr.forw < nodehdr.back; in xfs_da3_node_toosmall()
1382 blkno = nodehdr.forw; in xfs_da3_node_toosmall()
1384 blkno = nodehdr.back; in xfs_da3_node_toosmall()
1442 struct xfs_da3_icnode_hdr nodehdr; in xfs_da3_node_lasthash() local
1444 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr, bp->b_addr); in xfs_da3_node_lasthash()
1446 *count = nodehdr.count; in xfs_da3_node_lasthash()
1447 if (!nodehdr.count) in xfs_da3_node_lasthash()
1449 return be32_to_cpu(nodehdr.btree[nodehdr.count - 1].hashval); in xfs_da3_node_lasthash()
1491 struct xfs_da3_icnode_hdr nodehdr; in xfs_da3_fixhashpath() local
1494 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr, node); in xfs_da3_fixhashpath()
1495 btree = nodehdr.btree; in xfs_da3_fixhashpath()
1504 lasthash = be32_to_cpu(btree[nodehdr.count - 1].hashval); in xfs_da3_fixhashpath()
1517 struct xfs_da3_icnode_hdr nodehdr; in xfs_da3_node_remove() local
1526 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr, node); in xfs_da3_node_remove()
1527 ASSERT(drop_blk->index < nodehdr.count); in xfs_da3_node_remove()
1534 btree = nodehdr.btree; in xfs_da3_node_remove()
1535 if (index < nodehdr.count - 1) { in xfs_da3_node_remove()
1536 tmp = nodehdr.count - index - 1; in xfs_da3_node_remove()
1541 index = nodehdr.count - 1; in xfs_da3_node_remove()
1546 nodehdr.count -= 1; in xfs_da3_node_remove()
1547 xfs_da3_node_hdr_to_disk(dp->i_mount, node, &nodehdr); in xfs_da3_node_remove()
1654 struct xfs_da3_icnode_hdr nodehdr; in xfs_da3_node_lookup_int() local
1739 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr, node); in xfs_da3_node_lookup_int()
1740 btree = nodehdr.btree; in xfs_da3_node_lookup_int()
1743 if (nodehdr.level >= XFS_DA_NODE_MAXDEPTH) { in xfs_da3_node_lookup_int()
1751 expected_level = nodehdr.level - 1; in xfs_da3_node_lookup_int()
1752 else if (expected_level != nodehdr.level) { in xfs_da3_node_lookup_int()
1759 max = nodehdr.count; in xfs_da3_node_lookup_int()
2109 struct xfs_da3_icnode_hdr nodehdr; in xfs_da3_path_shift() local
2131 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr, in xfs_da3_path_shift()
2134 if (forward && (blk->index < nodehdr.count - 1)) { in xfs_da3_path_shift()
2136 blkno = be32_to_cpu(nodehdr.btree[blk->index].before); in xfs_da3_path_shift()
2140 blkno = be32_to_cpu(nodehdr.btree[blk->index].before); in xfs_da3_path_shift()
2197 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr, in xfs_da3_path_shift()
2199 btree = nodehdr.btree; in xfs_da3_path_shift()
2200 blk->hashval = be32_to_cpu(btree[nodehdr.count - 1].hashval); in xfs_da3_path_shift()
2204 blk->index = nodehdr.count - 1; in xfs_da3_path_shift()