Lines Matching refs:cnid

137 	__be32 cnid;  in hfs_bnode_dump()  local
159 hfs_bnode_read(node, &cnid, key_off + tmp, 4); in hfs_bnode_dump()
160 hfs_dbg_cont(BNODE_MOD, ",%d)", be32_to_cpu(cnid)); in hfs_bnode_dump()
175 __be32 cnid; in hfs_bnode_unlink() local
183 cnid = cpu_to_be32(tmp->next); in hfs_bnode_unlink()
184 hfs_bnode_write(tmp, &cnid, offsetof(struct hfs_bnode_desc, next), 4); in hfs_bnode_unlink()
194 cnid = cpu_to_be32(tmp->prev); in hfs_bnode_unlink()
195 hfs_bnode_write(tmp, &cnid, offsetof(struct hfs_bnode_desc, prev), 4); in hfs_bnode_unlink()
218 struct hfs_bnode *hfs_bnode_findhash(struct hfs_btree *tree, u32 cnid) in hfs_bnode_findhash() argument
222 if (cnid >= tree->node_count) { in hfs_bnode_findhash()
223 pr_err("request for non-existent node %d in B*Tree\n", cnid); in hfs_bnode_findhash()
227 for (node = tree->node_hash[hfs_bnode_hash(cnid)]; in hfs_bnode_findhash()
229 if (node->this == cnid) { in hfs_bnode_findhash()
236 static struct hfs_bnode *__hfs_bnode_create(struct hfs_btree *tree, u32 cnid) in __hfs_bnode_create() argument
244 if (cnid >= tree->node_count) { in __hfs_bnode_create()
245 pr_err("request for non-existent node %d in B*Tree\n", cnid); in __hfs_bnode_create()
255 node->this = cnid; in __hfs_bnode_create()
259 node->tree->cnid, node->this); in __hfs_bnode_create()
262 node2 = hfs_bnode_findhash(tree, cnid); in __hfs_bnode_create()
264 hash = hfs_bnode_hash(cnid); in __hfs_bnode_create()
277 off = (loff_t)cnid * tree->node_size; in __hfs_bnode_create()
302 node->tree->cnid, node->this, atomic_read(&node->refcnt)); in hfs_bnode_unhash()
448 node->tree->cnid, node->this, in hfs_bnode_get()
461 node->tree->cnid, node->this, in hfs_bnode_put()