Lines Matching refs:cnid
145 __be32 cnid; in hfs_bnode_dump() local
167 hfs_bnode_read(node, &cnid, key_off + tmp, 4); in hfs_bnode_dump()
168 hfs_dbg_cont(BNODE_MOD, ",%d)", be32_to_cpu(cnid)); in hfs_bnode_dump()
183 __be32 cnid; in hfs_bnode_unlink() local
191 cnid = cpu_to_be32(tmp->next); in hfs_bnode_unlink()
192 hfs_bnode_write(tmp, &cnid, offsetof(struct hfs_bnode_desc, next), 4); in hfs_bnode_unlink()
202 cnid = cpu_to_be32(tmp->prev); in hfs_bnode_unlink()
203 hfs_bnode_write(tmp, &cnid, offsetof(struct hfs_bnode_desc, prev), 4); in hfs_bnode_unlink()
226 struct hfs_bnode *hfs_bnode_findhash(struct hfs_btree *tree, u32 cnid) in hfs_bnode_findhash() argument
230 if (cnid >= tree->node_count) { in hfs_bnode_findhash()
231 pr_err("request for non-existent node %d in B*Tree\n", cnid); in hfs_bnode_findhash()
235 for (node = tree->node_hash[hfs_bnode_hash(cnid)]; in hfs_bnode_findhash()
237 if (node->this == cnid) { in hfs_bnode_findhash()
244 static struct hfs_bnode *__hfs_bnode_create(struct hfs_btree *tree, u32 cnid) in __hfs_bnode_create() argument
252 if (cnid >= tree->node_count) { in __hfs_bnode_create()
253 pr_err("request for non-existent node %d in B*Tree\n", cnid); in __hfs_bnode_create()
263 node->this = cnid; in __hfs_bnode_create()
267 node->tree->cnid, node->this); in __hfs_bnode_create()
270 node2 = hfs_bnode_findhash(tree, cnid); in __hfs_bnode_create()
272 hash = hfs_bnode_hash(cnid); in __hfs_bnode_create()
285 off = (loff_t)cnid * tree->node_size; in __hfs_bnode_create()
306 node->tree->cnid, node->this, atomic_read(&node->refcnt)); in hfs_bnode_unhash()
451 node->tree->cnid, node->this, in hfs_bnode_get()
464 node->tree->cnid, node->this, in hfs_bnode_put()