• Home
  • Raw
  • Download

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()
34 hfs_find_exit(&fd); in hfs_lookup()
42 inode = hfs_iget(dir->i_sb, &fd.search_key->cat, &rec); in hfs_lookup()
43 hfs_find_exit(&fd); in hfs_lookup()
61 struct hfs_find_data fd; in hfs_readdir() local
68 err = hfs_find_init(HFS_SB(sb)->cat_tree, &fd); in hfs_readdir()
71 hfs_cat_build_key(sb, fd.search_key, inode->i_ino, NULL); in hfs_readdir()
72 err = hfs_brec_find(&fd); in hfs_readdir()
83 if (fd.entrylength > sizeof(entry) || fd.entrylength < 0) { in hfs_readdir()
88 hfs_bnode_read(fd.bnode, &entry, fd.entryoffset, fd.entrylength); in hfs_readdir()
106 err = hfs_brec_goto(&fd, ctx->pos - 1); in hfs_readdir()
111 if (be32_to_cpu(fd.key->cat.ParID) != inode->i_ino) { in hfs_readdir()
117 if (fd.entrylength > sizeof(entry) || fd.entrylength < 0) { in hfs_readdir()
122 hfs_bnode_read(fd.bnode, &entry, fd.entryoffset, fd.entrylength); in hfs_readdir()
124 len = hfs_mac2asc(sb, strbuf, &fd.key->cat.CName); in hfs_readdir()
126 if (fd.entrylength < sizeof(struct hfs_cat_dir)) { in hfs_readdir()
135 if (fd.entrylength < sizeof(struct hfs_cat_file)) { in hfs_readdir()
151 err = hfs_brec_goto(&fd, 1); in hfs_readdir()
172 memcpy(&rd->key, &fd.key->cat, sizeof(struct hfs_cat_key)); in hfs_readdir()
174 hfs_find_exit(&fd); in hfs_readdir()