Lines Matching refs:anode
19 struct anode *anode; in hpfs_bplus_lookup() local
29 if (!(anode = hpfs_map_anode(s, a, &bh))) return -1; in hpfs_bplus_lookup()
30 btree = &anode->btree; in hpfs_bplus_lookup()
64 struct anode *anode = NULL, *ranode = NULL; in hpfs_add_sector_to_btree() local
76 if (!(anode = hpfs_map_anode(s, node, &bh))) return -1; in hpfs_add_sector_to_btree()
77 btree = &anode->btree; in hpfs_add_sector_to_btree()
93 if (!(anode = hpfs_map_anode(s, a, &bh))) return -1; in hpfs_add_sector_to_btree()
94 btree = &anode->btree; in hpfs_add_sector_to_btree()
125 up = a != node ? le32_to_cpu(anode->up) : -1; in hpfs_add_sector_to_btree()
126 if (!(anode = hpfs_alloc_anode(s, a, &na, &bh1))) { in hpfs_add_sector_to_btree()
132 anode->up = cpu_to_le32(node); in hpfs_add_sector_to_btree()
133 anode->btree.flags |= BP_fnode_parent; in hpfs_add_sector_to_btree()
134 anode->btree.n_used_nodes = btree->n_used_nodes; in hpfs_add_sector_to_btree()
135 anode->btree.first_free = btree->first_free; in hpfs_add_sector_to_btree()
136 anode->btree.n_free_nodes = 40 - anode->btree.n_used_nodes; in hpfs_add_sector_to_btree()
137 memcpy(&anode->u, &btree->u, btree->n_used_nodes * 12); in hpfs_add_sector_to_btree()
154 btree = &anode->btree; in hpfs_add_sector_to_btree()
166 struct anode *new_anode; in hpfs_add_sector_to_btree()
170 if (!(anode = hpfs_map_anode(s, up, &bh))) return -1; in hpfs_add_sector_to_btree()
171 btree = &anode->btree; in hpfs_add_sector_to_btree()
186 if ((anode = hpfs_map_anode(s, na, &bh))) { in hpfs_add_sector_to_btree()
187 anode->up = cpu_to_le32(up); in hpfs_add_sector_to_btree()
189 anode->btree.flags |= BP_fnode_parent; in hpfs_add_sector_to_btree()
191 anode->btree.flags &= ~BP_fnode_parent; in hpfs_add_sector_to_btree()
197 up = up != node ? le32_to_cpu(anode->up) : -1; in hpfs_add_sector_to_btree()
203 anode = new_anode; in hpfs_add_sector_to_btree()
205 anode->btree.flags |= BP_internal; in hpfs_add_sector_to_btree()
206 anode->btree.n_used_nodes = 1; in hpfs_add_sector_to_btree()
207 anode->btree.n_free_nodes = 59; in hpfs_add_sector_to_btree()
208 anode->btree.first_free = cpu_to_le16(16); in hpfs_add_sector_to_btree()
209 anode->btree.u.internal[0].down = cpu_to_le32(a); in hpfs_add_sector_to_btree()
210 anode->btree.u.internal[0].file_secno = cpu_to_le32(-1); in hpfs_add_sector_to_btree()
213 if ((anode = hpfs_map_anode(s, a, &bh))) { in hpfs_add_sector_to_btree()
214 anode->up = cpu_to_le32(na); in hpfs_add_sector_to_btree()
220 if ((anode = hpfs_map_anode(s, na, &bh))) { in hpfs_add_sector_to_btree()
221 anode->up = cpu_to_le32(node); in hpfs_add_sector_to_btree()
223 anode->btree.flags |= BP_fnode_parent; in hpfs_add_sector_to_btree()
228 if (!(anode = hpfs_map_anode(s, node, &bh))) { in hpfs_add_sector_to_btree()
232 btree = &anode->btree; in hpfs_add_sector_to_btree()
246 struct anode *unode; in hpfs_add_sector_to_btree()
277 struct anode *anode = NULL; in hpfs_remove_btree() local
293 if (!(anode = hpfs_map_anode(s, ano, &bh))) return; in hpfs_remove_btree()
294 btree1 = &anode->btree; in hpfs_remove_btree()
307 ano = le32_to_cpu(anode->up); in hpfs_remove_btree()
309 if (!(anode = hpfs_map_anode(s, ano, &bh))) return; in hpfs_remove_btree()
310 btree1 = &anode->btree; in hpfs_remove_btree()
332 struct anode *anode; in anode_lookup() local
334 if (!(anode = hpfs_map_anode(s, a, &bh))) return -1; in anode_lookup()
335 return hpfs_bplus_lookup(s, NULL, &anode->btree, sec, bh); in anode_lookup()
387 struct anode *anode; in hpfs_ea_remove() local
390 if (!(anode = hpfs_map_anode(s, a, &bh))) return; in hpfs_ea_remove()
391 hpfs_remove_btree(s, &anode->btree); in hpfs_ea_remove()
402 struct anode *anode; in hpfs_truncate_btree() local
412 if (!(anode = hpfs_map_anode(s, f, &bh))) return; in hpfs_truncate_btree()
413 btree = &anode->btree; in hpfs_truncate_btree()
450 if (!(anode = hpfs_map_anode(s, node, &bh))) return; in hpfs_truncate_btree()
451 btree = &anode->btree; in hpfs_truncate_btree()