Lines Matching refs:head
21 struct hfs_btree_header_rec *head; in hfs_btree_open() local
82 head = (struct hfs_btree_header_rec *)(kmap(page) + sizeof(struct hfs_bnode_desc)); in hfs_btree_open()
83 tree->root = be32_to_cpu(head->root); in hfs_btree_open()
84 tree->leaf_count = be32_to_cpu(head->leaf_count); in hfs_btree_open()
85 tree->leaf_head = be32_to_cpu(head->leaf_head); in hfs_btree_open()
86 tree->leaf_tail = be32_to_cpu(head->leaf_tail); in hfs_btree_open()
87 tree->node_count = be32_to_cpu(head->node_count); in hfs_btree_open()
88 tree->free_nodes = be32_to_cpu(head->free_nodes); in hfs_btree_open()
89 tree->attributes = be32_to_cpu(head->attributes); in hfs_btree_open()
90 tree->node_size = be16_to_cpu(head->node_size); in hfs_btree_open()
91 tree->max_key_len = be16_to_cpu(head->max_key_len); in hfs_btree_open()
92 tree->depth = be16_to_cpu(head->depth); in hfs_btree_open()
161 struct hfs_btree_header_rec *head; in hfs_btree_write() local
171 head = (struct hfs_btree_header_rec *)(kmap(page) + sizeof(struct hfs_bnode_desc)); in hfs_btree_write()
173 head->root = cpu_to_be32(tree->root); in hfs_btree_write()
174 head->leaf_count = cpu_to_be32(tree->leaf_count); in hfs_btree_write()
175 head->leaf_head = cpu_to_be32(tree->leaf_head); in hfs_btree_write()
176 head->leaf_tail = cpu_to_be32(tree->leaf_tail); in hfs_btree_write()
177 head->node_count = cpu_to_be32(tree->node_count); in hfs_btree_write()
178 head->free_nodes = cpu_to_be32(tree->free_nodes); in hfs_btree_write()
179 head->attributes = cpu_to_be32(tree->attributes); in hfs_btree_write()
180 head->depth = cpu_to_be16(tree->depth); in hfs_btree_write()