Home
last modified time | relevance | path

Searched refs:cnid (Results 1 – 17 of 17) sorted by relevance

/fs/hfs/
Dbnode.c137 __be32 cnid; in hfs_bnode_dump() local
158 hfs_bnode_read(node, &cnid, key_off + tmp, 4); in hfs_bnode_dump()
159 dprint(DBG_BNODE_MOD, ",%d)", be32_to_cpu(cnid)); in hfs_bnode_dump()
174 __be32 cnid; in hfs_bnode_unlink() local
182 cnid = cpu_to_be32(tmp->next); in hfs_bnode_unlink()
183 hfs_bnode_write(tmp, &cnid, offsetof(struct hfs_bnode_desc, next), 4); in hfs_bnode_unlink()
193 cnid = cpu_to_be32(tmp->prev); in hfs_bnode_unlink()
194 hfs_bnode_write(tmp, &cnid, offsetof(struct hfs_bnode_desc, prev), 4); in hfs_bnode_unlink()
217 struct hfs_bnode *hfs_bnode_findhash(struct hfs_btree *tree, u32 cnid) in hfs_bnode_findhash() argument
221 if (cnid >= tree->node_count) { in hfs_bnode_findhash()
[all …]
Dcatalog.c36 static int hfs_cat_build_record(hfs_cat_rec *rec, u32 cnid, struct inode *inode) in hfs_cat_build_record() argument
43 rec->dir.DirID = cpu_to_be32(cnid); in hfs_cat_build_record()
55 rec->file.FlNum = cpu_to_be32(cnid); in hfs_cat_build_record()
82 int hfs_cat_create(u32 cnid, struct inode *dir, struct qstr *str, struct inode *inode) in hfs_cat_create() argument
90 dprint(DBG_CAT_MOD, "create_cat: %s,%u(%d)\n", str->name, cnid, inode->i_nlink); in hfs_cat_create()
97 hfs_cat_build_key(sb, fd.search_key, cnid, NULL); in hfs_cat_create()
112 entry_size = hfs_cat_build_record(&entry, cnid, inode); in hfs_cat_create()
131 hfs_cat_build_key(sb, fd.search_key, cnid, NULL); in hfs_cat_create()
174 int hfs_cat_find_brec(struct super_block *sb, u32 cnid, in hfs_cat_find_brec() argument
180 hfs_cat_build_key(sb, fd->search_key, cnid, NULL); in hfs_cat_find_brec()
[all …]
Dbrec.c73 __be32 cnid; in hfs_brec_insert() local
150 cnid = cpu_to_be32(new_node->this); in hfs_brec_insert()
151 entry = &cnid; in hfs_brec_insert()
152 entry_len = sizeof(cnid); in hfs_brec_insert()
421 __be32 cnid; in hfs_brec_update_parent() local
426 cnid = cpu_to_be32(new_node->this); in hfs_brec_update_parent()
429 hfs_brec_insert(fd, &cnid, sizeof(cnid)); in hfs_brec_update_parent()
453 __be32 cnid; in hfs_btree_inc_height() local
507 cnid = cpu_to_be32(node->this); in hfs_btree_inc_height()
508 hfs_bnode_write(new_node, &cnid, 14 + key_size, 4); in hfs_btree_inc_height()
Dbtree.c33 tree->cnid = id; in hfs_btree_open()
134 node->tree->cnid, node->this, atomic_read(&node->refcnt)); in hfs_btree_close()
176 __be32 cnid; in hfs_bmap_new_bmap() local
186 cnid = cpu_to_be32(idx); in hfs_bmap_new_bmap()
187 hfs_bnode_write(prev, &cnid, offsetof(struct hfs_bnode_desc, next), 4); in hfs_bmap_new_bmap()
Dextent.c21 static void hfs_ext_build_key(hfs_btree_key *key, u32 cnid, u16 block, u8 type) in hfs_ext_build_key() argument
25 key->ext.FNum = cpu_to_be32(cnid); in hfs_ext_build_key()
142 u32 cnid, u32 block, u8 type) in __hfs_ext_read_extent() argument
146 hfs_ext_build_key(fd->search_key, cnid, block, type); in __hfs_ext_read_extent()
276 u32 cnid = be32_to_cpu(file->FlNum); in hfs_free_fork() local
303 res = __hfs_ext_read_extent(&fd, extent, cnid, total_blocks, type); in hfs_free_fork()
Dbfind.c25 dprint(DBG_BNODE_REFS, "find_init: %d (%p)\n", tree->cnid, __builtin_return_address(0)); in hfs_find_init()
34 dprint(DBG_BNODE_REFS, "find_exit: %d (%p)\n", fd->tree->cnid, __builtin_return_address(0)); in hfs_find_exit()
Dinode.c350 u32 cnid; in hfs_iget() local
354 cnid = be32_to_cpu(rec->dir.DirID); in hfs_iget()
357 cnid = be32_to_cpu(rec->file.FlNum); in hfs_iget()
362 inode = iget5_locked(sb, cnid, hfs_test_inode, hfs_read_inode, &data); in hfs_iget()
Dbtree.h21 u32 cnid; member
/fs/hfsplus/
Ddir.c20 struct inode *inode, u32 cnid) in hfsplus_instantiate() argument
22 dentry->d_fsdata = (void *)(unsigned long)cnid; in hfsplus_instantiate()
35 u32 cnid, linkid = 0; in hfsplus_lookup() local
61 cnid = be32_to_cpu(entry.folder.id); in hfsplus_lookup()
62 dentry->d_fsdata = (void *)(unsigned long)cnid; in hfsplus_lookup()
68 cnid = be32_to_cpu(entry.file.id); in hfsplus_lookup()
82 cnid = (unsigned long)dentry->d_fsdata; in hfsplus_lookup()
85 dentry->d_fsdata = (void *)(unsigned long)cnid; in hfsplus_lookup()
93 dentry->d_fsdata = (void *)(unsigned long)cnid; in hfsplus_lookup()
100 inode = hfsplus_iget(dir->i_sb, cnid); in hfsplus_lookup()
[all …]
Dcatalog.c87 static int hfsplus_cat_build_record(hfsplus_cat_entry *entry, u32 cnid, struct inode *inode) in hfsplus_cat_build_record() argument
113 file->id = cpu_to_be32(cnid); in hfsplus_cat_build_record()
119 if (cnid == inode->i_ino) { in hfsplus_cat_build_record()
153 int hfsplus_find_cat(struct super_block *sb, u32 cnid, in hfsplus_find_cat() argument
160 hfsplus_cat_build_key(sb, fd->search_key, cnid, NULL); in hfsplus_find_cat()
181 int hfsplus_create_cat(u32 cnid, struct inode *dir, struct qstr *str, struct inode *inode) in hfsplus_create_cat() argument
189 dprint(DBG_CAT_MOD, "create_cat: %s,%u(%d)\n", str->name, cnid, inode->i_nlink); in hfsplus_create_cat()
193 hfsplus_cat_build_key(sb, fd.search_key, cnid, NULL); in hfsplus_create_cat()
208 entry_size = hfsplus_cat_build_record(&entry, cnid, inode); in hfsplus_create_cat()
227 hfsplus_cat_build_key(sb, fd.search_key, cnid, NULL); in hfsplus_create_cat()
[all …]
Dbnode.c297 __be32 cnid; in hfs_bnode_dump() local
318 hfs_bnode_read(node, &cnid, key_off + tmp, 4); in hfs_bnode_dump()
319 dprint(DBG_BNODE_MOD, ",%d)", be32_to_cpu(cnid)); in hfs_bnode_dump()
334 __be32 cnid; in hfs_bnode_unlink() local
342 cnid = cpu_to_be32(tmp->next); in hfs_bnode_unlink()
343 hfs_bnode_write(tmp, &cnid, offsetof(struct hfs_bnode_desc, next), 4); in hfs_bnode_unlink()
353 cnid = cpu_to_be32(tmp->prev); in hfs_bnode_unlink()
354 hfs_bnode_write(tmp, &cnid, offsetof(struct hfs_bnode_desc, prev), 4); in hfs_bnode_unlink()
377 struct hfs_bnode *hfs_bnode_findhash(struct hfs_btree *tree, u32 cnid) in hfs_bnode_findhash() argument
381 if (cnid >= tree->node_count) { in hfs_bnode_findhash()
[all …]
Dextents.c25 k1id = k1->ext.cnid; in hfsplus_ext_cmp_key()
26 k2id = k2->ext.cnid; in hfsplus_ext_cmp_key()
40 static void hfsplus_ext_build_key(hfsplus_btree_key *key, u32 cnid, in hfsplus_ext_build_key() argument
44 key->ext.cnid = cpu_to_be32(cnid); in hfsplus_ext_build_key()
119 u32 cnid, u32 block, u8 type) in __hfsplus_ext_read_extent() argument
123 hfsplus_ext_build_key(fd->search_key, cnid, block, type); in __hfsplus_ext_read_extent()
124 fd->key->ext.cnid = 0; in __hfsplus_ext_read_extent()
128 if (fd->key->ext.cnid != fd->search_key->ext.cnid || in __hfsplus_ext_read_extent()
309 int hfsplus_free_fork(struct super_block *sb, u32 cnid, struct hfsplus_fork_raw *fork, int type) in hfsplus_free_fork() argument
332 res = __hfsplus_ext_read_extent(&fd, ext_entry, cnid, in hfsplus_free_fork()
Dbrec.c60 __be32 cnid; in hfs_brec_insert() local
137 cnid = cpu_to_be32(new_node->this); in hfs_brec_insert()
138 entry = &cnid; in hfs_brec_insert()
139 entry_len = sizeof(cnid); in hfs_brec_insert()
394 __be32 cnid; in hfs_brec_update_parent() local
399 cnid = cpu_to_be32(new_node->this); in hfs_brec_update_parent()
402 hfs_brec_insert(fd, &cnid, sizeof(cnid)); in hfs_brec_update_parent()
426 __be32 cnid; in hfs_btree_inc_height() local
479 cnid = cpu_to_be32(node->this); in hfs_btree_inc_height()
480 hfs_bnode_write(new_node, &cnid, 14 + key_size, 4); in hfs_btree_inc_height()
Dbtree.c36 tree->cnid = id; in hfs_btree_open()
112 node->tree->cnid, node->this, atomic_read(&node->refcnt)); in hfs_btree_close()
154 __be32 cnid; in hfs_bmap_new_bmap() local
162 cnid = cpu_to_be32(idx); in hfs_bmap_new_bmap()
163 hfs_bnode_write(prev, &cnid, offsetof(struct hfs_bnode_desc, next), 4); in hfs_bmap_new_bmap()
Dbfind.c25 dprint(DBG_BNODE_REFS, "find_init: %d (%p)\n", tree->cnid, __builtin_return_address(0)); in hfs_find_init()
34 dprint(DBG_BNODE_REFS, "find_exit: %d (%p)\n", fd->tree->cnid, __builtin_return_address(0)); in hfs_find_exit()
Dhfsplus_raw.h322 hfsplus_cnid cnid; member
Dhfsplus_fs.h50 u32 cnid; member