Lines Matching refs:anode

18 	struct anode *anode;  in hpfs_bplus_lookup()  local
28 if (!(anode = hpfs_map_anode(s, a, &bh))) return -1; in hpfs_bplus_lookup()
29 btree = &anode->btree; in hpfs_bplus_lookup()
63 struct anode *anode = NULL, *ranode = NULL; in hpfs_add_sector_to_btree() local
75 if (!(anode = hpfs_map_anode(s, node, &bh))) return -1; in hpfs_add_sector_to_btree()
76 btree = &anode->btree; in hpfs_add_sector_to_btree()
92 if (!(anode = hpfs_map_anode(s, a, &bh))) return -1; in hpfs_add_sector_to_btree()
93 btree = &anode->btree; in hpfs_add_sector_to_btree()
124 up = a != node ? le32_to_cpu(anode->up) : -1; in hpfs_add_sector_to_btree()
125 if (!(anode = hpfs_alloc_anode(s, a, &na, &bh1))) { in hpfs_add_sector_to_btree()
131 anode->up = cpu_to_le32(node); in hpfs_add_sector_to_btree()
132 anode->btree.fnode_parent = 1; in hpfs_add_sector_to_btree()
133 anode->btree.n_used_nodes = btree->n_used_nodes; in hpfs_add_sector_to_btree()
134 anode->btree.first_free = btree->first_free; in hpfs_add_sector_to_btree()
135 anode->btree.n_free_nodes = 40 - anode->btree.n_used_nodes; in hpfs_add_sector_to_btree()
136 memcpy(&anode->u, &btree->u, btree->n_used_nodes * 12); in hpfs_add_sector_to_btree()
153 btree = &anode->btree; in hpfs_add_sector_to_btree()
165 struct anode *new_anode; in hpfs_add_sector_to_btree()
169 if (!(anode = hpfs_map_anode(s, up, &bh))) return -1; in hpfs_add_sector_to_btree()
170 btree = &anode->btree; in hpfs_add_sector_to_btree()
185 if ((anode = hpfs_map_anode(s, na, &bh))) { in hpfs_add_sector_to_btree()
186 anode->up = cpu_to_le32(up); in hpfs_add_sector_to_btree()
187 anode->btree.fnode_parent = up == node && fnod; in hpfs_add_sector_to_btree()
193 up = up != node ? le32_to_cpu(anode->up) : -1; in hpfs_add_sector_to_btree()
199 anode = new_anode; in hpfs_add_sector_to_btree()
201 anode->btree.internal = 1; in hpfs_add_sector_to_btree()
202 anode->btree.n_used_nodes = 1; in hpfs_add_sector_to_btree()
203 anode->btree.n_free_nodes = 59; in hpfs_add_sector_to_btree()
204 anode->btree.first_free = cpu_to_le16(16); in hpfs_add_sector_to_btree()
205 anode->btree.u.internal[0].down = cpu_to_le32(a); in hpfs_add_sector_to_btree()
206 anode->btree.u.internal[0].file_secno = cpu_to_le32(-1); in hpfs_add_sector_to_btree()
209 if ((anode = hpfs_map_anode(s, a, &bh))) { in hpfs_add_sector_to_btree()
210 anode->up = cpu_to_le32(na); in hpfs_add_sector_to_btree()
216 if ((anode = hpfs_map_anode(s, na, &bh))) { in hpfs_add_sector_to_btree()
217 anode->up = cpu_to_le32(node); in hpfs_add_sector_to_btree()
218 if (fnod) anode->btree.fnode_parent = 1; in hpfs_add_sector_to_btree()
223 if (!(anode = hpfs_map_anode(s, node, &bh))) { in hpfs_add_sector_to_btree()
227 btree = &anode->btree; in hpfs_add_sector_to_btree()
240 struct anode *unode; in hpfs_add_sector_to_btree()
271 struct anode *anode = NULL; in hpfs_remove_btree() local
287 if (!(anode = hpfs_map_anode(s, ano, &bh))) return; in hpfs_remove_btree()
288 btree1 = &anode->btree; in hpfs_remove_btree()
301 ano = le32_to_cpu(anode->up); in hpfs_remove_btree()
303 if (!(anode = hpfs_map_anode(s, ano, &bh))) return; in hpfs_remove_btree()
304 btree1 = &anode->btree; in hpfs_remove_btree()
326 struct anode *anode; in anode_lookup() local
328 if (!(anode = hpfs_map_anode(s, a, &bh))) return -1; in anode_lookup()
329 return hpfs_bplus_lookup(s, NULL, &anode->btree, sec, bh); in anode_lookup()
381 struct anode *anode; in hpfs_ea_remove() local
384 if (!(anode = hpfs_map_anode(s, a, &bh))) return; in hpfs_ea_remove()
385 hpfs_remove_btree(s, &anode->btree); in hpfs_ea_remove()
396 struct anode *anode; in hpfs_truncate_btree() local
406 if (!(anode = hpfs_map_anode(s, f, &bh))) return; in hpfs_truncate_btree()
407 btree = &anode->btree; in hpfs_truncate_btree()
444 if (!(anode = hpfs_map_anode(s, node, &bh))) return; in hpfs_truncate_btree()
445 btree = &anode->btree; in hpfs_truncate_btree()
487 hpfs_ea_remove(s, ea_sec(ea), ea->anode, ea_len(ea)); in hpfs_remove_fnode()