Home
last modified time | relevance | path

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

/linux-4.19.296/fs/hfsplus/
Dattributes.c40 k1_cnid = k1->attr.cnid; in hfsplus_attr_bin_cmp_key()
41 k2_cnid = k2->attr.cnid; in hfsplus_attr_bin_cmp_key()
51 u32 cnid, const char *name) in hfsplus_attr_build_key() argument
56 key->attr.cnid = cpu_to_be32(cnid); in hfsplus_attr_build_key()
97 u32 cnid, const void *value, size_t size) in hfsplus_attr_build_record() argument
137 int hfsplus_find_attr(struct super_block *sb, u32 cnid, in hfsplus_find_attr() argument
142 hfs_dbg(ATTR_MOD, "find_attr: %s,%d\n", name ? name : NULL, cnid); in hfsplus_find_attr()
150 err = hfsplus_attr_build_key(sb, fd->search_key, cnid, name); in hfsplus_find_attr()
157 err = hfsplus_attr_build_key(sb, fd->search_key, cnid, NULL); in hfsplus_find_attr()
266 static int __hfsplus_delete_attr(struct inode *inode, u32 cnid, in __hfsplus_delete_attr() argument
[all …]
Ddir.c23 struct inode *inode, u32 cnid) in hfsplus_instantiate() argument
25 dentry->d_fsdata = (void *)(unsigned long)cnid; in hfsplus_instantiate()
38 u32 cnid, linkid = 0; in hfsplus_lookup() local
68 cnid = be32_to_cpu(entry.folder.id); in hfsplus_lookup()
69 dentry->d_fsdata = (void *)(unsigned long)cnid; in hfsplus_lookup()
75 cnid = be32_to_cpu(entry.file.id); in hfsplus_lookup()
95 cnid = (unsigned long)dentry->d_fsdata; in hfsplus_lookup()
98 dentry->d_fsdata = (void *)(unsigned long)cnid; in hfsplus_lookup()
111 dentry->d_fsdata = (void *)(unsigned long)cnid; in hfsplus_lookup()
118 inode = hfsplus_iget(dir->i_sb, cnid); in hfsplus_lookup()
[all …]
Dbnode.c67 node->tree->cnid == HFSPLUS_ATTR_CNID) in hfs_bnode_read_key()
301 __be32 cnid; in hfs_bnode_dump() local
318 node->tree->cnid == HFSPLUS_ATTR_CNID) in hfs_bnode_dump()
323 hfs_bnode_read(node, &cnid, key_off + tmp, 4); in hfs_bnode_dump()
324 hfs_dbg_cont(BNODE_MOD, ",%d)", be32_to_cpu(cnid)); in hfs_bnode_dump()
339 __be32 cnid; in hfs_bnode_unlink() local
347 cnid = cpu_to_be32(tmp->next); in hfs_bnode_unlink()
348 hfs_bnode_write(tmp, &cnid, in hfs_bnode_unlink()
359 cnid = cpu_to_be32(tmp->prev); in hfs_bnode_unlink()
360 hfs_bnode_write(tmp, &cnid, in hfs_bnode_unlink()
[all …]
Dcatalog.c106 u32 cnid, struct inode *inode) in hfsplus_cat_build_record() argument
136 file->id = cpu_to_be32(cnid); in hfsplus_cat_build_record()
142 if (cnid == inode->i_ino) { in hfsplus_cat_build_record()
194 int hfsplus_find_cat(struct super_block *sb, u32 cnid, in hfsplus_find_cat() argument
201 hfsplus_cat_build_key_with_cnid(sb, fd->search_key, cnid); in hfsplus_find_cat()
253 int hfsplus_create_cat(u32 cnid, struct inode *dir, in hfsplus_create_cat() argument
263 str->name, cnid, inode->i_nlink); in hfsplus_create_cat()
276 hfsplus_cat_build_key_with_cnid(sb, fd.search_key, cnid); in hfsplus_create_cat()
300 entry_size = hfsplus_cat_build_record(&entry, cnid, inode); in hfsplus_create_cat()
322 hfsplus_cat_build_key_with_cnid(sb, fd.search_key, cnid); in hfsplus_create_cat()
[all …]
Dbfind.c27 tree->cnid, __builtin_return_address(0)); in hfs_find_init()
28 switch (tree->cnid) { in hfs_find_init()
49 fd->tree->cnid, __builtin_return_address(0)); in hfs_find_exit()
63 if (bnode->tree->cnid == HFSPLUS_EXT_CNID) { in hfs_find_1st_rec_by_cnid()
64 cur_cnid = fd->key->ext.cnid; in hfs_find_1st_rec_by_cnid()
65 search_cnid = fd->search_key->ext.cnid; in hfs_find_1st_rec_by_cnid()
66 } else if (bnode->tree->cnid == HFSPLUS_CAT_CNID) { in hfs_find_1st_rec_by_cnid()
69 } else if (bnode->tree->cnid == HFSPLUS_ATTR_CNID) { in hfs_find_1st_rec_by_cnid()
70 cur_cnid = fd->key->attr.cnid; in hfs_find_1st_rec_by_cnid()
71 search_cnid = fd->search_key->attr.cnid; in hfs_find_1st_rec_by_cnid()
Dbrec.c41 (node->tree->cnid != HFSPLUS_ATTR_CNID)) { in hfs_brec_keylen()
70 __be32 cnid; in hfs_brec_insert() local
154 cnid = cpu_to_be32(new_node->this); in hfs_brec_insert()
155 entry = &cnid; in hfs_brec_insert()
156 entry_len = sizeof(cnid); in hfs_brec_insert()
166 (tree->cnid == HFSPLUS_ATTR_CNID)) in hfs_brec_insert()
382 (tree->cnid == HFSPLUS_ATTR_CNID)) in hfs_brec_update_parent()
430 __be32 cnid; in hfs_brec_update_parent() local
439 cnid = cpu_to_be32(new_node->this); in hfs_brec_update_parent()
442 hfs_brec_insert(fd, &cnid, sizeof(cnid)); in hfs_brec_update_parent()
[all …]
Dhfsplus_fs.h78 u32 cnid; member
379 u32 cnid, const char *name);
382 int hfsplus_find_attr(struct super_block *sb, u32 cnid, const char *name,
388 int hfsplus_delete_all_attrs(struct inode *dir, u32 cnid);
418 struct hfs_bnode *hfs_bnode_findhash(struct hfs_btree *tree, u32 cnid);
456 int hfsplus_find_cat(struct super_block *sb, u32 cnid,
458 int hfsplus_create_cat(u32 cnid, struct inode *dir, const struct qstr *str,
460 int hfsplus_delete_cat(u32 cnid, struct inode *dir, const struct qstr *str);
461 int hfsplus_rename_cat(u32 cnid, struct inode *src_dir, const struct qstr *src_name,
474 int hfsplus_free_fork(struct super_block *sb, u32 cnid,
Dextents.c26 k1id = k1->ext.cnid; in hfsplus_ext_cmp_key()
27 k2id = k2->ext.cnid; in hfsplus_ext_cmp_key()
41 static void hfsplus_ext_build_key(hfsplus_btree_key *key, u32 cnid, in hfsplus_ext_build_key() argument
45 key->ext.cnid = cpu_to_be32(cnid); in hfsplus_ext_build_key()
158 u32 cnid, u32 block, u8 type) in __hfsplus_ext_read_extent() argument
162 hfsplus_ext_build_key(fd->search_key, cnid, block, type); in __hfsplus_ext_read_extent()
163 fd->key->ext.cnid = 0; in __hfsplus_ext_read_extent()
167 if (fd->key->ext.cnid != fd->search_key->ext.cnid || in __hfsplus_ext_read_extent()
396 int hfsplus_free_fork(struct super_block *sb, u32 cnid, in hfsplus_free_fork() argument
422 res = __hfsplus_ext_read_extent(&fd, ext_entry, cnid, in hfsplus_free_fork()
Dbtree.c149 tree->cnid = id; in hfs_btree_open()
272 node->tree->cnid, node->this, in hfs_btree_close()
317 __be32 cnid; in hfs_bmap_new_bmap() local
325 cnid = cpu_to_be32(idx); in hfs_bmap_new_bmap()
326 hfs_bnode_write(prev, &cnid, offsetof(struct hfs_bnode_desc, next), 4); in hfs_bmap_new_bmap()
Dioctl.c34 u32 cnid = (unsigned long)dentry->d_fsdata; in hfsplus_ioctl_bless() local
50 vh->finder_info[1] = bvh->finder_info[1] = cpu_to_be32(cnid); in hfsplus_ioctl_bless()
Dhfsplus_raw.h343 hfsplus_cnid cnid; member
360 hfsplus_cnid cnid; member
Dxattr.c733 if (be32_to_cpu(attr_key.cnid) != inode->i_ino) in hfsplus_listxattr()
/linux-4.19.296/fs/hfs/
Dbnode.c152 __be32 cnid; in hfs_bnode_dump() local
174 hfs_bnode_read(node, &cnid, key_off + tmp, 4); in hfs_bnode_dump()
175 hfs_dbg_cont(BNODE_MOD, ",%d)", be32_to_cpu(cnid)); in hfs_bnode_dump()
190 __be32 cnid; in hfs_bnode_unlink() local
198 cnid = cpu_to_be32(tmp->next); in hfs_bnode_unlink()
199 hfs_bnode_write(tmp, &cnid, offsetof(struct hfs_bnode_desc, next), 4); in hfs_bnode_unlink()
209 cnid = cpu_to_be32(tmp->prev); in hfs_bnode_unlink()
210 hfs_bnode_write(tmp, &cnid, offsetof(struct hfs_bnode_desc, prev), 4); in hfs_bnode_unlink()
233 struct hfs_bnode *hfs_bnode_findhash(struct hfs_btree *tree, u32 cnid) in hfs_bnode_findhash() argument
237 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, const struct qstr *str, struct inode *inode) in hfs_cat_create() argument
91 str->name, cnid, inode->i_nlink); in hfs_cat_create()
108 hfs_cat_build_key(sb, fd.search_key, cnid, NULL); in hfs_cat_create()
123 entry_size = hfs_cat_build_record(&entry, cnid, inode); in hfs_cat_create()
142 hfs_cat_build_key(sb, fd.search_key, cnid, NULL); in hfs_cat_create()
187 int hfs_cat_find_brec(struct super_block *sb, u32 cnid, in hfs_cat_find_brec() argument
193 hfs_cat_build_key(sb, fd->search_key, cnid, NULL); in hfs_cat_find_brec()
[all …]
Dbrec.c72 __be32 cnid; in hfs_brec_insert() local
154 cnid = cpu_to_be32(new_node->this); in hfs_brec_insert()
155 entry = &cnid; in hfs_brec_insert()
156 entry_len = sizeof(cnid); in hfs_brec_insert()
426 __be32 cnid; in hfs_brec_update_parent() local
435 cnid = cpu_to_be32(new_node->this); in hfs_brec_update_parent()
438 hfs_brec_insert(fd, &cnid, sizeof(cnid)); in hfs_brec_update_parent()
463 __be32 cnid; in hfs_btree_inc_height() local
517 cnid = cpu_to_be32(node->this); in hfs_btree_inc_height()
518 hfs_bnode_write(new_node, &cnid, 14 + key_size, 4); in hfs_btree_inc_height()
Dbtree.c35 tree->cnid = id; in hfs_btree_open()
150 node->tree->cnid, node->this, in hfs_btree_close()
193 __be32 cnid; in hfs_bmap_new_bmap() local
203 cnid = cpu_to_be32(idx); in hfs_bmap_new_bmap()
204 hfs_bnode_write(prev, &cnid, offsetof(struct hfs_bnode_desc, next), 4); in hfs_bmap_new_bmap()
Dbfind.c27 tree->cnid, __builtin_return_address(0)); in hfs_find_init()
28 switch (tree->cnid) { in hfs_find_init()
49 fd->tree->cnid, __builtin_return_address(0)); in hfs_find_exit()
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()
151 u32 cnid, u32 block, u8 type) in __hfs_ext_read_extent() argument
155 hfs_ext_build_key(fd->search_key, cnid, block, type); in __hfs_ext_read_extent()
291 u32 cnid = be32_to_cpu(file->FlNum); in hfs_free_fork() local
320 res = __hfs_ext_read_extent(&fd, extent, cnid, total_blocks, type); in hfs_free_fork()
Dinode.c388 u32 cnid; in hfs_iget() local
392 cnid = be32_to_cpu(rec->dir.DirID); in hfs_iget()
395 cnid = be32_to_cpu(rec->file.FlNum); in hfs_iget()
400 inode = iget5_locked(sb, cnid, hfs_test_inode, hfs_read_inode, &data); in hfs_iget()
Dbtree.h29 u32 cnid; member