Lines Matching refs:vdir
500 struct venus_dirent *vdir;
515 vdir = kmalloc(sizeof(*vdir), GFP_KERNEL);
516 if (!vdir) return -ENOMEM;
534 ret = kernel_read(host_file, coda_file->f_pos - 2, (char *)vdir,
535 sizeof(*vdir));
544 if (ret < vdir_size || ret < vdir_size + vdir->d_namlen) {
551 if (vdir->d_reclen < vdir_size + vdir->d_namlen) {
558 name.len = vdir->d_namlen;
559 name.name = vdir->d_name;
563 (vdir->d_name[1] == '.' && name.len == 2)))
564 vdir->d_fileno = name.len = 0;
567 if (vdir->d_fileno && name.len) {
573 if (!ino) ino = vdir->d_fileno;
575 type = CDT2DT(vdir->d_type);
584 coda_file->f_pos += vdir->d_reclen;
587 kfree(vdir);