Lines Matching refs:fd
24 struct hfs_find_data fd; in hfs_lookup() local
28 res = hfs_find_init(HFS_SB(dir->i_sb)->cat_tree, &fd); in hfs_lookup()
31 hfs_cat_build_key(dir->i_sb, fd.search_key, dir->i_ino, &dentry->d_name); in hfs_lookup()
32 res = hfs_brec_read(&fd, &rec, sizeof(rec)); in hfs_lookup()
37 inode = hfs_iget(dir->i_sb, &fd.search_key->cat, &rec); in hfs_lookup()
41 hfs_find_exit(&fd); in hfs_lookup()
55 struct hfs_find_data fd; in hfs_readdir() local
62 err = hfs_find_init(HFS_SB(sb)->cat_tree, &fd); in hfs_readdir()
65 hfs_cat_build_key(sb, fd.search_key, inode->i_ino, NULL); in hfs_readdir()
66 err = hfs_brec_find(&fd); in hfs_readdir()
77 if (fd.entrylength > sizeof(entry) || fd.entrylength < 0) { in hfs_readdir()
82 hfs_bnode_read(fd.bnode, &entry, fd.entryoffset, fd.entrylength); in hfs_readdir()
100 err = hfs_brec_goto(&fd, ctx->pos - 1); in hfs_readdir()
105 if (be32_to_cpu(fd.key->cat.ParID) != inode->i_ino) { in hfs_readdir()
111 if (fd.entrylength > sizeof(entry) || fd.entrylength < 0) { in hfs_readdir()
116 hfs_bnode_read(fd.bnode, &entry, fd.entryoffset, fd.entrylength); in hfs_readdir()
118 len = hfs_mac2asc(sb, strbuf, &fd.key->cat.CName); in hfs_readdir()
120 if (fd.entrylength < sizeof(struct hfs_cat_dir)) { in hfs_readdir()
129 if (fd.entrylength < sizeof(struct hfs_cat_file)) { in hfs_readdir()
145 err = hfs_brec_goto(&fd, 1); in hfs_readdir()
166 memcpy(&rd->key, &fd.key->cat, sizeof(struct hfs_cat_key)); in hfs_readdir()
168 hfs_find_exit(&fd); in hfs_readdir()