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()
1007 struct xfs_da3_icnode_hdr nodehdr; in xfs_da3_node_add() local
1015 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr, node); in xfs_da3_node_add()
1016 btree = nodehdr.btree; in xfs_da3_node_add()
1018 ASSERT(oldblk->index >= 0 && oldblk->index <= nodehdr.count); in xfs_da3_node_add()
1028 if (oldblk->index < nodehdr.count) { in xfs_da3_node_add()
1029 tmp = (nodehdr.count - oldblk->index) * (uint)sizeof(*btree); in xfs_da3_node_add()
1038 nodehdr.count += 1; in xfs_da3_node_add()
1039 xfs_da3_node_hdr_to_disk(dp->i_mount, node, &nodehdr); in xfs_da3_node_add()
1047 oldblk->hashval = be32_to_cpu(btree[nodehdr.count - 1].hashval); in xfs_da3_node_add()
1246 struct xfs_da3_icnode_hdr nodehdr; in xfs_da3_node_toosmall() local
1264 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr, node); in xfs_da3_node_toosmall()
1265 if (nodehdr.count > (state->args->geo->node_ents >> 1)) { in xfs_da3_node_toosmall()
1276 if (nodehdr.count == 0) { in xfs_da3_node_toosmall()
1304 count -= nodehdr.count; in xfs_da3_node_toosmall()
1307 forward = nodehdr.forw < nodehdr.back; in xfs_da3_node_toosmall()
1311 blkno = nodehdr.forw; in xfs_da3_node_toosmall()
1313 blkno = nodehdr.back; in xfs_da3_node_toosmall()
1364 struct xfs_da3_icnode_hdr nodehdr; in xfs_da3_node_lasthash() local
1366 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr, bp->b_addr); in xfs_da3_node_lasthash()
1368 *count = nodehdr.count; in xfs_da3_node_lasthash()
1369 if (!nodehdr.count) in xfs_da3_node_lasthash()
1371 return be32_to_cpu(nodehdr.btree[nodehdr.count - 1].hashval); in xfs_da3_node_lasthash()
1413 struct xfs_da3_icnode_hdr nodehdr; in xfs_da3_fixhashpath() local
1416 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr, node); in xfs_da3_fixhashpath()
1417 btree = nodehdr.btree; in xfs_da3_fixhashpath()
1426 lasthash = be32_to_cpu(btree[nodehdr.count - 1].hashval); in xfs_da3_fixhashpath()
1439 struct xfs_da3_icnode_hdr nodehdr; in xfs_da3_node_remove() local
1448 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr, node); in xfs_da3_node_remove()
1449 ASSERT(drop_blk->index < nodehdr.count); in xfs_da3_node_remove()
1456 btree = nodehdr.btree; in xfs_da3_node_remove()
1457 if (index < nodehdr.count - 1) { in xfs_da3_node_remove()
1458 tmp = nodehdr.count - index - 1; in xfs_da3_node_remove()
1463 index = nodehdr.count - 1; in xfs_da3_node_remove()
1468 nodehdr.count -= 1; in xfs_da3_node_remove()
1469 xfs_da3_node_hdr_to_disk(dp->i_mount, node, &nodehdr); in xfs_da3_node_remove()
1576 struct xfs_da3_icnode_hdr nodehdr; in xfs_da3_node_lookup_int() local
1640 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr, node); in xfs_da3_node_lookup_int()
1641 btree = nodehdr.btree; in xfs_da3_node_lookup_int()
1644 if (nodehdr.level >= XFS_DA_NODE_MAXDEPTH) { in xfs_da3_node_lookup_int()
1651 expected_level = nodehdr.level - 1; in xfs_da3_node_lookup_int()
1652 else if (expected_level != nodehdr.level) { in xfs_da3_node_lookup_int()
1658 max = nodehdr.count; in xfs_da3_node_lookup_int()
1973 struct xfs_da3_icnode_hdr nodehdr; in xfs_da3_path_shift() local
1994 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr, in xfs_da3_path_shift()
1997 if (forward && (blk->index < nodehdr.count - 1)) { in xfs_da3_path_shift()
1999 blkno = be32_to_cpu(nodehdr.btree[blk->index].before); in xfs_da3_path_shift()
2003 blkno = be32_to_cpu(nodehdr.btree[blk->index].before); in xfs_da3_path_shift()
2054 xfs_da3_node_hdr_from_disk(dp->i_mount, &nodehdr, in xfs_da3_path_shift()
2056 btree = nodehdr.btree; in xfs_da3_path_shift()
2057 blk->hashval = be32_to_cpu(btree[nodehdr.count - 1].hashval); in xfs_da3_path_shift()
2061 blk->index = nodehdr.count - 1; in xfs_da3_path_shift()