Lines Matching refs:nodehdr

641 	struct xfs_da3_icnode_hdr nodehdr;  in xfs_da3_root_split()  local
733 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr, node); in xfs_da3_root_split()
734 btree = nodehdr.btree; in xfs_da3_root_split()
739 nodehdr.count = 2; in xfs_da3_root_split()
740 xfs_da3_node_hdr_to_disk(dp->i_mount, node, &nodehdr); in xfs_da3_root_split()
772 struct xfs_da3_icnode_hdr nodehdr; in xfs_da3_node_split() local
782 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr, node); in xfs_da3_node_split()
792 if (nodehdr.count + newcount > state->args->geo->node_ents) { in xfs_da3_node_split()
829 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr, node); in xfs_da3_node_split()
830 if (oldblk->index <= nodehdr.count) { in xfs_da3_node_split()
1010 struct xfs_da3_icnode_hdr nodehdr; in xfs_da3_node_add() local
1018 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr, node); in xfs_da3_node_add()
1019 btree = nodehdr.btree; in xfs_da3_node_add()
1021 ASSERT(oldblk->index >= 0 && oldblk->index <= nodehdr.count); in xfs_da3_node_add()
1031 if (oldblk->index < nodehdr.count) { in xfs_da3_node_add()
1032 tmp = (nodehdr.count - oldblk->index) * (uint)sizeof(*btree); in xfs_da3_node_add()
1041 nodehdr.count += 1; in xfs_da3_node_add()
1042 xfs_da3_node_hdr_to_disk(dp->i_mount, node, &nodehdr); in xfs_da3_node_add()
1050 oldblk->hashval = be32_to_cpu(btree[nodehdr.count - 1].hashval); in xfs_da3_node_add()
1249 struct xfs_da3_icnode_hdr nodehdr; in xfs_da3_node_toosmall() local
1267 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr, node); in xfs_da3_node_toosmall()
1268 if (nodehdr.count > (state->args->geo->node_ents >> 1)) { in xfs_da3_node_toosmall()
1279 if (nodehdr.count == 0) { in xfs_da3_node_toosmall()
1307 count -= nodehdr.count; in xfs_da3_node_toosmall()
1310 forward = nodehdr.forw < nodehdr.back; in xfs_da3_node_toosmall()
1314 blkno = nodehdr.forw; in xfs_da3_node_toosmall()
1316 blkno = nodehdr.back; in xfs_da3_node_toosmall()
1367 struct xfs_da3_icnode_hdr nodehdr; in xfs_da3_node_lasthash() local
1369 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr, bp->b_addr); in xfs_da3_node_lasthash()
1371 *count = nodehdr.count; in xfs_da3_node_lasthash()
1372 if (!nodehdr.count) in xfs_da3_node_lasthash()
1374 return be32_to_cpu(nodehdr.btree[nodehdr.count - 1].hashval); in xfs_da3_node_lasthash()
1416 struct xfs_da3_icnode_hdr nodehdr; in xfs_da3_fixhashpath() local
1419 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr, node); in xfs_da3_fixhashpath()
1420 btree = nodehdr.btree; in xfs_da3_fixhashpath()
1429 lasthash = be32_to_cpu(btree[nodehdr.count - 1].hashval); in xfs_da3_fixhashpath()
1442 struct xfs_da3_icnode_hdr nodehdr; in xfs_da3_node_remove() local
1451 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr, node); in xfs_da3_node_remove()
1452 ASSERT(drop_blk->index < nodehdr.count); in xfs_da3_node_remove()
1459 btree = nodehdr.btree; in xfs_da3_node_remove()
1460 if (index < nodehdr.count - 1) { in xfs_da3_node_remove()
1461 tmp = nodehdr.count - index - 1; in xfs_da3_node_remove()
1466 index = nodehdr.count - 1; in xfs_da3_node_remove()
1471 nodehdr.count -= 1; in xfs_da3_node_remove()
1472 xfs_da3_node_hdr_to_disk(dp->i_mount, node, &nodehdr); in xfs_da3_node_remove()
1579 struct xfs_da3_icnode_hdr nodehdr; in xfs_da3_node_lookup_int() local
1643 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr, node); in xfs_da3_node_lookup_int()
1644 btree = nodehdr.btree; in xfs_da3_node_lookup_int()
1647 if (nodehdr.level >= XFS_DA_NODE_MAXDEPTH) { in xfs_da3_node_lookup_int()
1654 expected_level = nodehdr.level - 1; in xfs_da3_node_lookup_int()
1655 else if (expected_level != nodehdr.level) { in xfs_da3_node_lookup_int()
1661 max = nodehdr.count; in xfs_da3_node_lookup_int()
1976 struct xfs_da3_icnode_hdr nodehdr; in xfs_da3_path_shift() local
1997 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr, in xfs_da3_path_shift()
2000 if (forward && (blk->index < nodehdr.count - 1)) { in xfs_da3_path_shift()
2002 blkno = be32_to_cpu(nodehdr.btree[blk->index].before); in xfs_da3_path_shift()
2006 blkno = be32_to_cpu(nodehdr.btree[blk->index].before); in xfs_da3_path_shift()
2057 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr, in xfs_da3_path_shift()
2059 btree = nodehdr.btree; in xfs_da3_path_shift()
2060 blk->hashval = be32_to_cpu(btree[nodehdr.count - 1].hashval); in xfs_da3_path_shift()
2064 blk->index = nodehdr.count - 1; in xfs_da3_path_shift()