Lines Matching refs:fid
71 struct p9_fid *fid = filp->private_data; in v9fs_alloc_rdir_buf() local
73 if (!fid->rdir) in v9fs_alloc_rdir_buf()
74 fid->rdir = kzalloc(sizeof(struct p9_rdir) + buflen, GFP_KERNEL); in v9fs_alloc_rdir_buf()
75 return fid->rdir; in v9fs_alloc_rdir_buf()
90 struct p9_fid *fid; in v9fs_dir_readdir() local
96 fid = file->private_data; in v9fs_dir_readdir()
98 buflen = fid->clnt->msize - P9_IOHDRSZ; in v9fs_dir_readdir()
123 err = p9stat_read(fid->clnt, rdir->buf + rdir->head, in v9fs_dir_readdir()
151 struct p9_fid *fid; in v9fs_dir_readdir_dotl() local
157 fid = file->private_data; in v9fs_dir_readdir_dotl()
159 buflen = fid->clnt->msize - P9_READDIRHDRSZ; in v9fs_dir_readdir_dotl()
167 err = p9_client_readdir(fid, rdir->buf, buflen, in v9fs_dir_readdir_dotl()
178 err = p9dirent_read(fid->clnt, rdir->buf + rdir->head, in v9fs_dir_readdir_dotl()
208 struct p9_fid *fid; in v9fs_dir_release() local
210 fid = filp->private_data; in v9fs_dir_release()
212 inode, filp, fid ? fid->fid : -1); in v9fs_dir_release()
213 if (fid) { in v9fs_dir_release()
215 hlist_del(&fid->ilist); in v9fs_dir_release()
217 p9_client_clunk(fid); in v9fs_dir_release()