Lines Matching refs:nodehdr

529 	struct xfs_da3_icnode_hdr nodehdr;  in xfs_da3_root_split()  local
622 dp->d_ops->node_hdr_from_disk(&nodehdr, node); in xfs_da3_root_split()
628 nodehdr.count = 2; in xfs_da3_root_split()
629 dp->d_ops->node_hdr_to_disk(node, &nodehdr); in xfs_da3_root_split()
661 struct xfs_da3_icnode_hdr nodehdr; in xfs_da3_node_split() local
671 dp->d_ops->node_hdr_from_disk(&nodehdr, node); in xfs_da3_node_split()
681 if (nodehdr.count + newcount > state->args->geo->node_ents) { in xfs_da3_node_split()
718 dp->d_ops->node_hdr_from_disk(&nodehdr, node); in xfs_da3_node_split()
719 if (oldblk->index <= nodehdr.count) { in xfs_da3_node_split()
898 struct xfs_da3_icnode_hdr nodehdr; in xfs_da3_node_add() local
906 dp->d_ops->node_hdr_from_disk(&nodehdr, node); in xfs_da3_node_add()
909 ASSERT(oldblk->index >= 0 && oldblk->index <= nodehdr.count); in xfs_da3_node_add()
919 if (oldblk->index < nodehdr.count) { in xfs_da3_node_add()
920 tmp = (nodehdr.count - oldblk->index) * (uint)sizeof(*btree); in xfs_da3_node_add()
929 nodehdr.count += 1; in xfs_da3_node_add()
930 dp->d_ops->node_hdr_to_disk(node, &nodehdr); in xfs_da3_node_add()
937 oldblk->hashval = be32_to_cpu(btree[nodehdr.count - 1].hashval); in xfs_da3_node_add()
1139 struct xfs_da3_icnode_hdr nodehdr; in xfs_da3_node_toosmall() local
1157 dp->d_ops->node_hdr_from_disk(&nodehdr, node); in xfs_da3_node_toosmall()
1158 if (nodehdr.count > (state->args->geo->node_ents >> 1)) { in xfs_da3_node_toosmall()
1169 if (nodehdr.count == 0) { in xfs_da3_node_toosmall()
1197 count -= nodehdr.count; in xfs_da3_node_toosmall()
1200 forward = nodehdr.forw < nodehdr.back; in xfs_da3_node_toosmall()
1204 blkno = nodehdr.forw; in xfs_da3_node_toosmall()
1206 blkno = nodehdr.back; in xfs_da3_node_toosmall()
1259 struct xfs_da3_icnode_hdr nodehdr; in xfs_da3_node_lasthash() local
1262 dp->d_ops->node_hdr_from_disk(&nodehdr, node); in xfs_da3_node_lasthash()
1264 *count = nodehdr.count; in xfs_da3_node_lasthash()
1265 if (!nodehdr.count) in xfs_da3_node_lasthash()
1268 return be32_to_cpu(btree[nodehdr.count - 1].hashval); in xfs_da3_node_lasthash()
1310 struct xfs_da3_icnode_hdr nodehdr; in xfs_da3_fixhashpath() local
1313 dp->d_ops->node_hdr_from_disk(&nodehdr, node); in xfs_da3_fixhashpath()
1323 lasthash = be32_to_cpu(btree[nodehdr.count - 1].hashval); in xfs_da3_fixhashpath()
1336 struct xfs_da3_icnode_hdr nodehdr; in xfs_da3_node_remove() local
1345 dp->d_ops->node_hdr_from_disk(&nodehdr, node); in xfs_da3_node_remove()
1346 ASSERT(drop_blk->index < nodehdr.count); in xfs_da3_node_remove()
1354 if (index < nodehdr.count - 1) { in xfs_da3_node_remove()
1355 tmp = nodehdr.count - index - 1; in xfs_da3_node_remove()
1360 index = nodehdr.count - 1; in xfs_da3_node_remove()
1365 nodehdr.count -= 1; in xfs_da3_node_remove()
1366 dp->d_ops->node_hdr_to_disk(node, &nodehdr); in xfs_da3_node_remove()
1473 struct xfs_da3_icnode_hdr nodehdr; in xfs_da3_node_lookup_int() local
1535 dp->d_ops->node_hdr_from_disk(&nodehdr, node); in xfs_da3_node_lookup_int()
1539 if (nodehdr.level >= XFS_DA_NODE_MAXDEPTH) in xfs_da3_node_lookup_int()
1544 expected_level = nodehdr.level - 1; in xfs_da3_node_lookup_int()
1545 else if (expected_level != nodehdr.level) in xfs_da3_node_lookup_int()
1550 max = nodehdr.count; in xfs_da3_node_lookup_int()
1866 struct xfs_da3_icnode_hdr nodehdr; in xfs_da3_path_shift() local
1887 dp->d_ops->node_hdr_from_disk(&nodehdr, node); in xfs_da3_path_shift()
1890 if (forward && (blk->index < nodehdr.count - 1)) { in xfs_da3_path_shift()
1948 dp->d_ops->node_hdr_from_disk(&nodehdr, node); in xfs_da3_path_shift()
1950 blk->hashval = be32_to_cpu(btree[nodehdr.count - 1].hashval); in xfs_da3_path_shift()
1954 blk->index = nodehdr.count - 1; in xfs_da3_path_shift()