Searched refs:nodehdr (Results 1 - 3 of 3) sorted by relevance

/linux-4.4.14/fs/xfs/libxfs/
H A Dxfs_da_btree.c516 struct xfs_da3_icnode_hdr nodehdr; xfs_da3_root_split() local
609 dp->d_ops->node_hdr_from_disk(&nodehdr, node); xfs_da3_root_split()
615 nodehdr.count = 2; xfs_da3_root_split()
616 dp->d_ops->node_hdr_to_disk(node, &nodehdr); xfs_da3_root_split()
648 struct xfs_da3_icnode_hdr nodehdr; xfs_da3_node_split() local
658 dp->d_ops->node_hdr_from_disk(&nodehdr, node); xfs_da3_node_split()
668 if (nodehdr.count + newcount > state->args->geo->node_ents) { xfs_da3_node_split()
705 dp->d_ops->node_hdr_from_disk(&nodehdr, node); xfs_da3_node_split()
706 if (oldblk->index <= nodehdr.count) { xfs_da3_node_split()
885 struct xfs_da3_icnode_hdr nodehdr; xfs_da3_node_add() local
893 dp->d_ops->node_hdr_from_disk(&nodehdr, node); xfs_da3_node_add()
896 ASSERT(oldblk->index >= 0 && oldblk->index <= nodehdr.count); xfs_da3_node_add()
906 if (oldblk->index < nodehdr.count) { xfs_da3_node_add()
907 tmp = (nodehdr.count - oldblk->index) * (uint)sizeof(*btree); xfs_da3_node_add()
916 nodehdr.count += 1; xfs_da3_node_add()
917 dp->d_ops->node_hdr_to_disk(node, &nodehdr); xfs_da3_node_add()
924 oldblk->hashval = be32_to_cpu(btree[nodehdr.count - 1].hashval); xfs_da3_node_add()
1126 struct xfs_da3_icnode_hdr nodehdr; xfs_da3_node_toosmall() local
1144 dp->d_ops->node_hdr_from_disk(&nodehdr, node); xfs_da3_node_toosmall()
1145 if (nodehdr.count > (state->args->geo->node_ents >> 1)) { xfs_da3_node_toosmall()
1156 if (nodehdr.count == 0) { xfs_da3_node_toosmall()
1184 count -= nodehdr.count; xfs_da3_node_toosmall()
1187 forward = nodehdr.forw < nodehdr.back; xfs_da3_node_toosmall()
1191 blkno = nodehdr.forw; xfs_da3_node_toosmall()
1193 blkno = nodehdr.back; xfs_da3_node_toosmall()
1246 struct xfs_da3_icnode_hdr nodehdr; xfs_da3_node_lasthash() local
1249 dp->d_ops->node_hdr_from_disk(&nodehdr, node); xfs_da3_node_lasthash()
1251 *count = nodehdr.count; xfs_da3_node_lasthash()
1252 if (!nodehdr.count) xfs_da3_node_lasthash()
1255 return be32_to_cpu(btree[nodehdr.count - 1].hashval); xfs_da3_node_lasthash()
1297 struct xfs_da3_icnode_hdr nodehdr; xfs_da3_fixhashpath() local
1300 dp->d_ops->node_hdr_from_disk(&nodehdr, node); xfs_da3_fixhashpath()
1310 lasthash = be32_to_cpu(btree[nodehdr.count - 1].hashval); xfs_da3_fixhashpath()
1323 struct xfs_da3_icnode_hdr nodehdr; xfs_da3_node_remove() local
1332 dp->d_ops->node_hdr_from_disk(&nodehdr, node); xfs_da3_node_remove()
1333 ASSERT(drop_blk->index < nodehdr.count); xfs_da3_node_remove()
1341 if (index < nodehdr.count - 1) { xfs_da3_node_remove()
1342 tmp = nodehdr.count - index - 1; xfs_da3_node_remove()
1347 index = nodehdr.count - 1; xfs_da3_node_remove()
1352 nodehdr.count -= 1; xfs_da3_node_remove()
1353 dp->d_ops->node_hdr_to_disk(node, &nodehdr); xfs_da3_node_remove()
1460 struct xfs_da3_icnode_hdr nodehdr; xfs_da3_node_lookup_int() local
1518 dp->d_ops->node_hdr_from_disk(&nodehdr, node); xfs_da3_node_lookup_int()
1521 max = nodehdr.count; xfs_da3_node_lookup_int()
1830 struct xfs_da3_icnode_hdr nodehdr; xfs_da3_path_shift() local
1851 dp->d_ops->node_hdr_from_disk(&nodehdr, node); xfs_da3_path_shift()
1854 if (forward && (blk->index < nodehdr.count - 1)) { xfs_da3_path_shift()
1912 dp->d_ops->node_hdr_from_disk(&nodehdr, node); xfs_da3_path_shift()
1914 blk->hashval = be32_to_cpu(btree[nodehdr.count - 1].hashval); xfs_da3_path_shift()
1918 blk->index = nodehdr.count - 1; xfs_da3_path_shift()
/linux-4.4.14/fs/xfs/
H A Dxfs_attr_list.c225 struct xfs_da3_icnode_hdr nodehdr; xfs_attr_node_list() local
315 dp->d_ops->node_hdr_from_disk(&nodehdr, node); xfs_attr_node_list()
317 for (i = 0; i < nodehdr.count; btree++, i++) { xfs_attr_node_list()
326 if (i == nodehdr.count) { xfs_attr_node_list()
/linux-4.4.14/fs/btrfs/
H A Dcheck-integrity.c1127 struct btrfs_node *const nodehdr = (struct btrfs_node *)sf->hdr; btrfsic_process_metablock() local
1130 sf->nr = btrfs_stack_header_nritems(&nodehdr->header); btrfsic_process_metablock()
1136 nodehdr->header.level, sf->nr, btrfsic_process_metablock()
1138 &nodehdr->header), btrfsic_process_metablock()
1140 &nodehdr->header)); btrfsic_process_metablock()
1154 key_ptr_offset = (uintptr_t)(nodehdr->ptrs + sf->i) - btrfsic_process_metablock()
1155 (uintptr_t)nodehdr; btrfsic_process_metablock()

Completed in 215 milliseconds