- vfid = v9fs_fid_lookup(file->f_dentry);
- if (!vfid) {
- dprintk(DEBUG_ERROR, "Couldn't resolve fid from dentry\n");
- return -EBADF;
- }
-
- fid = v9fs_get_idpool(&v9ses->fidpool);
- if (fid < 0) {
- eprintk(KERN_WARNING, "newfid fails!\n");
- return -ENOSPC;
- }
-
- err = v9fs_t_walk(v9ses, vfid->fid, fid, NULL, NULL);
- if (err < 0) {
- dprintk(DEBUG_ERROR, "rewalk didn't work\n");
- goto put_fid;
- }