Home
last modified time | relevance | path

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

/fs/hfsplus/
Dattributes.c39 k1_cnid = k1->attr.cnid; in hfsplus_attr_bin_cmp_key()
40 k2_cnid = k2->attr.cnid; in hfsplus_attr_bin_cmp_key()
50 u32 cnid, const char *name) in hfsplus_attr_build_key() argument
55 key->attr.cnid = cpu_to_be32(cnid); in hfsplus_attr_build_key()
96 u32 cnid, const void *value, size_t size) in hfsplus_attr_build_record() argument
136 int hfsplus_find_attr(struct super_block *sb, u32 cnid, in hfsplus_find_attr() argument
141 hfs_dbg(ATTR_MOD, "find_attr: %s,%d\n", name ? name : NULL, cnid); in hfsplus_find_attr()
149 err = hfsplus_attr_build_key(sb, fd->search_key, cnid, name); in hfsplus_find_attr()
156 err = hfsplus_attr_build_key(sb, fd->search_key, cnid, NULL); in hfsplus_find_attr()
260 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.c66 node->tree->cnid == HFSPLUS_ATTR_CNID) in hfs_bnode_read_key()
302 __be32 cnid; in hfs_bnode_dump() local
319 node->tree->cnid == HFSPLUS_ATTR_CNID) in hfs_bnode_dump()
324 hfs_bnode_read(node, &cnid, key_off + tmp, 4); in hfs_bnode_dump()
325 hfs_dbg_cont(BNODE_MOD, ",%d)", be32_to_cpu(cnid)); in hfs_bnode_dump()
340 __be32 cnid; in hfs_bnode_unlink() local
348 cnid = cpu_to_be32(tmp->next); in hfs_bnode_unlink()
349 hfs_bnode_write(tmp, &cnid, in hfs_bnode_unlink()
360 cnid = cpu_to_be32(tmp->prev); in hfs_bnode_unlink()
361 hfs_bnode_write(tmp, &cnid, in hfs_bnode_unlink()
[all …]
Dcatalog.c105 u32 cnid, struct inode *inode) in hfsplus_cat_build_record() argument
135 file->id = cpu_to_be32(cnid); in hfsplus_cat_build_record()
141 if (cnid == inode->i_ino) { in hfsplus_cat_build_record()
193 int hfsplus_find_cat(struct super_block *sb, u32 cnid, in hfsplus_find_cat() argument
200 hfsplus_cat_build_key_with_cnid(sb, fd->search_key, cnid); in hfsplus_find_cat()
252 int hfsplus_create_cat(u32 cnid, struct inode *dir, in hfsplus_create_cat() argument
262 str->name, cnid, inode->i_nlink); in hfsplus_create_cat()
267 hfsplus_cat_build_key_with_cnid(sb, fd.search_key, cnid); in hfsplus_create_cat()
291 entry_size = hfsplus_cat_build_record(&entry, cnid, inode); in hfsplus_create_cat()
313 hfsplus_cat_build_key_with_cnid(sb, fd.search_key, cnid); in hfsplus_create_cat()
[all …]
Dbfind.c26 tree->cnid, __builtin_return_address(0)); in hfs_find_init()
27 switch (tree->cnid) { in hfs_find_init()
48 fd->tree->cnid, __builtin_return_address(0)); in hfs_find_exit()
62 if (bnode->tree->cnid == HFSPLUS_EXT_CNID) { in hfs_find_1st_rec_by_cnid()
63 cur_cnid = fd->key->ext.cnid; in hfs_find_1st_rec_by_cnid()
64 search_cnid = fd->search_key->ext.cnid; in hfs_find_1st_rec_by_cnid()
65 } else if (bnode->tree->cnid == HFSPLUS_CAT_CNID) { in hfs_find_1st_rec_by_cnid()
68 } else if (bnode->tree->cnid == HFSPLUS_ATTR_CNID) { in hfs_find_1st_rec_by_cnid()
69 cur_cnid = fd->key->attr.cnid; in hfs_find_1st_rec_by_cnid()
70 search_cnid = fd->search_key->attr.cnid; in hfs_find_1st_rec_by_cnid()
Dbrec.c40 (node->tree->cnid != HFSPLUS_ATTR_CNID)) { in hfs_brec_keylen()
69 __be32 cnid; in hfs_brec_insert() local
152 cnid = cpu_to_be32(new_node->this); in hfs_brec_insert()
153 entry = &cnid; in hfs_brec_insert()
154 entry_len = sizeof(cnid); in hfs_brec_insert()
164 (tree->cnid == HFSPLUS_ATTR_CNID)) in hfs_brec_insert()
380 (tree->cnid == HFSPLUS_ATTR_CNID)) in hfs_brec_update_parent()
428 __be32 cnid; in hfs_brec_update_parent() local
433 cnid = cpu_to_be32(new_node->this); in hfs_brec_update_parent()
436 hfs_brec_insert(fd, &cnid, sizeof(cnid)); in hfs_brec_update_parent()
[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()
153 u32 cnid, u32 block, u8 type) in __hfsplus_ext_read_extent() argument
157 hfsplus_ext_build_key(fd->search_key, cnid, block, type); in __hfsplus_ext_read_extent()
158 fd->key->ext.cnid = 0; in __hfsplus_ext_read_extent()
162 if (fd->key->ext.cnid != fd->search_key->ext.cnid || in __hfsplus_ext_read_extent()
386 int hfsplus_free_fork(struct super_block *sb, u32 cnid, in hfsplus_free_fork() argument
412 res = __hfsplus_ext_read_extent(&fd, ext_entry, cnid, in hfsplus_free_fork()
Dhfsplus_fs.h78 u32 cnid; member
376 u32 cnid, const char *name);
379 int hfsplus_find_attr(struct super_block *sb, u32 cnid, const char *name,
385 int hfsplus_delete_all_attrs(struct inode *dir, u32 cnid);
414 struct hfs_bnode *hfs_bnode_findhash(struct hfs_btree *tree, u32 cnid);
452 int hfsplus_find_cat(struct super_block *sb, u32 cnid,
454 int hfsplus_create_cat(u32 cnid, struct inode *dir, const struct qstr *str,
456 int hfsplus_delete_cat(u32 cnid, struct inode *dir, const struct qstr *str);
457 int hfsplus_rename_cat(u32 cnid, struct inode *src_dir, const struct qstr *src_name,
470 int hfsplus_free_fork(struct super_block *sb, u32 cnid,
Dbtree.c148 tree->cnid = id; in hfs_btree_open()
271 node->tree->cnid, node->this, in hfs_btree_close()
316 __be32 cnid; in hfs_bmap_new_bmap() local
324 cnid = cpu_to_be32(idx); in hfs_bmap_new_bmap()
325 hfs_bnode_write(prev, &cnid, offsetof(struct hfs_bnode_desc, next), 4); in hfs_bmap_new_bmap()
Dioctl.c33 u32 cnid = (unsigned long)dentry->d_fsdata; in hfsplus_ioctl_bless() local
49 vh->finder_info[1] = bvh->finder_info[1] = cpu_to_be32(cnid); in hfsplus_ioctl_bless()
Dhfsplus_raw.h342 hfsplus_cnid cnid; member
359 hfsplus_cnid cnid; member
Dxattr.c738 if (be32_to_cpu(attr_key.cnid) != inode->i_ino) in hfsplus_listxattr()
/fs/hfs/
Dbnode.c138 __be32 cnid; in hfs_bnode_dump() local
160 hfs_bnode_read(node, &cnid, key_off + tmp, 4); in hfs_bnode_dump()
161 hfs_dbg_cont(BNODE_MOD, ",%d)", be32_to_cpu(cnid)); in hfs_bnode_dump()
176 __be32 cnid; in hfs_bnode_unlink() local
184 cnid = cpu_to_be32(tmp->next); in hfs_bnode_unlink()
185 hfs_bnode_write(tmp, &cnid, offsetof(struct hfs_bnode_desc, next), 4); in hfs_bnode_unlink()
195 cnid = cpu_to_be32(tmp->prev); in hfs_bnode_unlink()
196 hfs_bnode_write(tmp, &cnid, offsetof(struct hfs_bnode_desc, prev), 4); in hfs_bnode_unlink()
219 struct hfs_bnode *hfs_bnode_findhash(struct hfs_btree *tree, u32 cnid) in hfs_bnode_findhash() argument
223 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()
100 hfs_cat_build_key(sb, fd.search_key, cnid, NULL); in hfs_cat_create()
115 entry_size = hfs_cat_build_record(&entry, cnid, inode); in hfs_cat_create()
134 hfs_cat_build_key(sb, fd.search_key, cnid, NULL); in hfs_cat_create()
179 int hfs_cat_find_brec(struct super_block *sb, u32 cnid, in hfs_cat_find_brec() argument
185 hfs_cat_build_key(sb, fd->search_key, cnid, NULL); in hfs_cat_find_brec()
[all …]
Dbrec.c71 __be32 cnid; in hfs_brec_insert() local
152 cnid = cpu_to_be32(new_node->this); in hfs_brec_insert()
153 entry = &cnid; in hfs_brec_insert()
154 entry_len = sizeof(cnid); in hfs_brec_insert()
424 __be32 cnid; in hfs_brec_update_parent() local
429 cnid = cpu_to_be32(new_node->this); in hfs_brec_update_parent()
432 hfs_brec_insert(fd, &cnid, sizeof(cnid)); in hfs_brec_update_parent()
456 __be32 cnid; in hfs_btree_inc_height() local
510 cnid = cpu_to_be32(node->this); in hfs_btree_inc_height()
511 hfs_bnode_write(new_node, &cnid, 14 + key_size, 4); in hfs_btree_inc_height()
Dbtree.c34 tree->cnid = id; in hfs_btree_open()
149 node->tree->cnid, node->this, in hfs_btree_close()
192 __be32 cnid; in hfs_bmap_new_bmap() local
202 cnid = cpu_to_be32(idx); in hfs_bmap_new_bmap()
203 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()
147 u32 cnid, u32 block, u8 type) in __hfs_ext_read_extent() argument
151 hfs_ext_build_key(fd->search_key, cnid, block, type); in __hfs_ext_read_extent()
287 u32 cnid = be32_to_cpu(file->FlNum); in hfs_free_fork() local
316 res = __hfs_ext_read_extent(&fd, extent, cnid, total_blocks, type); in hfs_free_fork()
Dbfind.c26 tree->cnid, __builtin_return_address(0)); in hfs_find_init()
36 fd->tree->cnid, __builtin_return_address(0)); in hfs_find_exit()
Dinode.c387 u32 cnid; in hfs_iget() local
391 cnid = be32_to_cpu(rec->dir.DirID); in hfs_iget()
394 cnid = be32_to_cpu(rec->file.FlNum); in hfs_iget()
399 inode = iget5_locked(sb, cnid, hfs_test_inode, hfs_read_inode, &data); in hfs_iget()
Dbtree.h21 u32 cnid; member