Lines Matching refs:nodehdr

656 	struct xfs_da3_icnode_hdr nodehdr;  in xfs_da3_root_split()  local
748 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr, node); in xfs_da3_root_split()
749 btree = nodehdr.btree; in xfs_da3_root_split()
754 nodehdr.count = 2; in xfs_da3_root_split()
755 xfs_da3_node_hdr_to_disk(dp->i_mount, node, &nodehdr); in xfs_da3_root_split()
787 struct xfs_da3_icnode_hdr nodehdr; in xfs_da3_node_split() local
797 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr, node); in xfs_da3_node_split()
807 if (nodehdr.count + newcount > state->args->geo->node_ents) { in xfs_da3_node_split()
844 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr, node); in xfs_da3_node_split()
845 if (oldblk->index <= nodehdr.count) { in xfs_da3_node_split()
1022 struct xfs_da3_icnode_hdr nodehdr; in xfs_da3_node_add() local
1030 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr, node); in xfs_da3_node_add()
1031 btree = nodehdr.btree; in xfs_da3_node_add()
1033 ASSERT(oldblk->index >= 0 && oldblk->index <= nodehdr.count); in xfs_da3_node_add()
1043 if (oldblk->index < nodehdr.count) { in xfs_da3_node_add()
1044 tmp = (nodehdr.count - oldblk->index) * (uint)sizeof(*btree); in xfs_da3_node_add()
1053 nodehdr.count += 1; in xfs_da3_node_add()
1054 xfs_da3_node_hdr_to_disk(dp->i_mount, node, &nodehdr); in xfs_da3_node_add()
1062 oldblk->hashval = be32_to_cpu(btree[nodehdr.count - 1].hashval); in xfs_da3_node_add()
1261 struct xfs_da3_icnode_hdr nodehdr; in xfs_da3_node_toosmall() local
1279 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr, node); in xfs_da3_node_toosmall()
1280 if (nodehdr.count > (state->args->geo->node_ents >> 1)) { in xfs_da3_node_toosmall()
1291 if (nodehdr.count == 0) { in xfs_da3_node_toosmall()
1319 count -= nodehdr.count; in xfs_da3_node_toosmall()
1322 forward = nodehdr.forw < nodehdr.back; in xfs_da3_node_toosmall()
1326 blkno = nodehdr.forw; in xfs_da3_node_toosmall()
1328 blkno = nodehdr.back; in xfs_da3_node_toosmall()
1379 struct xfs_da3_icnode_hdr nodehdr; in xfs_da3_node_lasthash() local
1381 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr, bp->b_addr); in xfs_da3_node_lasthash()
1383 *count = nodehdr.count; in xfs_da3_node_lasthash()
1384 if (!nodehdr.count) in xfs_da3_node_lasthash()
1386 return be32_to_cpu(nodehdr.btree[nodehdr.count - 1].hashval); in xfs_da3_node_lasthash()
1428 struct xfs_da3_icnode_hdr nodehdr; in xfs_da3_fixhashpath() local
1431 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr, node); in xfs_da3_fixhashpath()
1432 btree = nodehdr.btree; in xfs_da3_fixhashpath()
1441 lasthash = be32_to_cpu(btree[nodehdr.count - 1].hashval); in xfs_da3_fixhashpath()
1454 struct xfs_da3_icnode_hdr nodehdr; in xfs_da3_node_remove() local
1463 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr, node); in xfs_da3_node_remove()
1464 ASSERT(drop_blk->index < nodehdr.count); in xfs_da3_node_remove()
1471 btree = nodehdr.btree; in xfs_da3_node_remove()
1472 if (index < nodehdr.count - 1) { in xfs_da3_node_remove()
1473 tmp = nodehdr.count - index - 1; in xfs_da3_node_remove()
1478 index = nodehdr.count - 1; in xfs_da3_node_remove()
1483 nodehdr.count -= 1; in xfs_da3_node_remove()
1484 xfs_da3_node_hdr_to_disk(dp->i_mount, node, &nodehdr); in xfs_da3_node_remove()
1591 struct xfs_da3_icnode_hdr nodehdr; in xfs_da3_node_lookup_int() local
1655 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr, node); in xfs_da3_node_lookup_int()
1656 btree = nodehdr.btree; in xfs_da3_node_lookup_int()
1659 if (nodehdr.level >= XFS_DA_NODE_MAXDEPTH) { in xfs_da3_node_lookup_int()
1666 expected_level = nodehdr.level - 1; in xfs_da3_node_lookup_int()
1667 else if (expected_level != nodehdr.level) { in xfs_da3_node_lookup_int()
1673 max = nodehdr.count; in xfs_da3_node_lookup_int()
1988 struct xfs_da3_icnode_hdr nodehdr; in xfs_da3_path_shift() local
2009 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr, in xfs_da3_path_shift()
2012 if (forward && (blk->index < nodehdr.count - 1)) { in xfs_da3_path_shift()
2014 blkno = be32_to_cpu(nodehdr.btree[blk->index].before); in xfs_da3_path_shift()
2018 blkno = be32_to_cpu(nodehdr.btree[blk->index].before); in xfs_da3_path_shift()
2069 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr, in xfs_da3_path_shift()
2071 btree = nodehdr.btree; in xfs_da3_path_shift()
2072 blk->hashval = be32_to_cpu(btree[nodehdr.count - 1].hashval); in xfs_da3_path_shift()
2076 blk->index = nodehdr.count - 1; in xfs_da3_path_shift()