/fs/hfsplus/ |
D | attributes.c | 39 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 …]
|
D | dir.c | 23 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 …]
|
D | bnode.c | 66 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 …]
|
D | catalog.c | 105 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 …]
|
D | bfind.c | 26 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()
|
D | brec.c | 40 (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 …]
|
D | extents.c | 25 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()
|
D | hfsplus_fs.h | 78 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,
|
D | btree.c | 148 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()
|
D | ioctl.c | 33 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()
|
D | hfsplus_raw.h | 342 hfsplus_cnid cnid; member 359 hfsplus_cnid cnid; member
|
D | xattr.c | 738 if (be32_to_cpu(attr_key.cnid) != inode->i_ino) in hfsplus_listxattr()
|
/fs/hfs/ |
D | bnode.c | 138 __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 …]
|
D | catalog.c | 36 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 …]
|
D | brec.c | 71 __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()
|
D | btree.c | 34 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()
|
D | extent.c | 21 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()
|
D | bfind.c | 26 tree->cnid, __builtin_return_address(0)); in hfs_find_init() 36 fd->tree->cnid, __builtin_return_address(0)); in hfs_find_exit()
|
D | inode.c | 387 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()
|
D | btree.h | 21 u32 cnid; member
|