Lines Matching refs:nodehdr

547 	struct xfs_da3_icnode_hdr nodehdr;  in xfs_da3_root_split()  local
640 dp->d_ops->node_hdr_from_disk(&nodehdr, node); in xfs_da3_root_split()
646 nodehdr.count = 2; in xfs_da3_root_split()
647 dp->d_ops->node_hdr_to_disk(node, &nodehdr); in xfs_da3_root_split()
679 struct xfs_da3_icnode_hdr nodehdr; in xfs_da3_node_split() local
689 dp->d_ops->node_hdr_from_disk(&nodehdr, node); in xfs_da3_node_split()
699 if (nodehdr.count + newcount > state->args->geo->node_ents) { in xfs_da3_node_split()
736 dp->d_ops->node_hdr_from_disk(&nodehdr, node); in xfs_da3_node_split()
737 if (oldblk->index <= nodehdr.count) { in xfs_da3_node_split()
916 struct xfs_da3_icnode_hdr nodehdr; in xfs_da3_node_add() local
924 dp->d_ops->node_hdr_from_disk(&nodehdr, node); in xfs_da3_node_add()
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()
948 dp->d_ops->node_hdr_to_disk(node, &nodehdr); in xfs_da3_node_add()
955 oldblk->hashval = be32_to_cpu(btree[nodehdr.count - 1].hashval); in xfs_da3_node_add()
1157 struct xfs_da3_icnode_hdr nodehdr; in xfs_da3_node_toosmall() local
1175 dp->d_ops->node_hdr_from_disk(&nodehdr, node); in xfs_da3_node_toosmall()
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()
1215 count -= nodehdr.count; in xfs_da3_node_toosmall()
1218 forward = nodehdr.forw < nodehdr.back; in xfs_da3_node_toosmall()
1222 blkno = nodehdr.forw; in xfs_da3_node_toosmall()
1224 blkno = nodehdr.back; in xfs_da3_node_toosmall()
1277 struct xfs_da3_icnode_hdr nodehdr; in xfs_da3_node_lasthash() local
1280 dp->d_ops->node_hdr_from_disk(&nodehdr, node); 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()
1328 struct xfs_da3_icnode_hdr nodehdr; in xfs_da3_fixhashpath() local
1331 dp->d_ops->node_hdr_from_disk(&nodehdr, node); in xfs_da3_fixhashpath()
1341 lasthash = be32_to_cpu(btree[nodehdr.count - 1].hashval); in xfs_da3_fixhashpath()
1354 struct xfs_da3_icnode_hdr nodehdr; in xfs_da3_node_remove() local
1363 dp->d_ops->node_hdr_from_disk(&nodehdr, node); in xfs_da3_node_remove()
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()
1384 dp->d_ops->node_hdr_to_disk(node, &nodehdr); in xfs_da3_node_remove()
1491 struct xfs_da3_icnode_hdr nodehdr; in xfs_da3_node_lookup_int() local
1553 dp->d_ops->node_hdr_from_disk(&nodehdr, node); in xfs_da3_node_lookup_int()
1557 if (nodehdr.level >= XFS_DA_NODE_MAXDEPTH) in xfs_da3_node_lookup_int()
1562 expected_level = nodehdr.level - 1; in xfs_da3_node_lookup_int()
1563 else if (expected_level != nodehdr.level) in xfs_da3_node_lookup_int()
1568 max = nodehdr.count; in xfs_da3_node_lookup_int()
1884 struct xfs_da3_icnode_hdr nodehdr; in xfs_da3_path_shift() local
1905 dp->d_ops->node_hdr_from_disk(&nodehdr, node); in xfs_da3_path_shift()
1908 if (forward && (blk->index < nodehdr.count - 1)) { in xfs_da3_path_shift()
1966 dp->d_ops->node_hdr_from_disk(&nodehdr, node); 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()