Lines Matching refs:fh
155 struct knfsd_fh *fh = &fhp->fh_handle; in nfsd_set_fh_dentry() local
160 int data_left = fh->fh_size/4; in nfsd_set_fh_dentry()
166 if (rqstp->rq_vers == 4 && fh->fh_size == 0) in nfsd_set_fh_dentry()
169 if (fh->fh_version == 1) { in nfsd_set_fh_dentry()
174 if (fh->fh_auth_type != 0) in nfsd_set_fh_dentry()
176 len = key_len(fh->fh_fsid_type) / 4; in nfsd_set_fh_dentry()
179 if (fh->fh_fsid_type == FSID_MAJOR_MINOR) { in nfsd_set_fh_dentry()
182 fh->fh_fsid_type = FSID_ENCODE_DEV; in nfsd_set_fh_dentry()
189 fh->fh_fsid[0] = new_encode_dev(MKDEV(ntohl((__force __be32)fh->fh_fsid[0]), in nfsd_set_fh_dentry()
190 ntohl((__force __be32)fh->fh_fsid[1]))); in nfsd_set_fh_dentry()
191 fh->fh_fsid[1] = fh->fh_fsid[2]; in nfsd_set_fh_dentry()
196 exp = rqst_exp_find(rqstp, fh->fh_fsid_type, fh->fh_fsid); in nfsd_set_fh_dentry()
197 fid = (struct fid *)(fh->fh_fsid + len); in nfsd_set_fh_dentry()
203 if (fh->fh_size != NFS_FHSIZE) in nfsd_set_fh_dentry()
206 xdev = old_decode_dev(fh->ofh_xdev); in nfsd_set_fh_dentry()
207 xino = u32_to_ino_t(fh->ofh_xino); in nfsd_set_fh_dentry()
255 if (fh->fh_version != 1) { in nfsd_set_fh_dentry()
256 sfid.i32.ino = fh->ofh_ino; in nfsd_set_fh_dentry()
257 sfid.i32.gen = fh->ofh_generation; in nfsd_set_fh_dentry()
258 sfid.i32.parent_ino = fh->ofh_dirino; in nfsd_set_fh_dentry()
261 if (fh->ofh_dirino == 0) in nfsd_set_fh_dentry()
266 fileid_type = fh->fh_fileid_type; in nfsd_set_fh_dentry()
437 struct knfsd_fh *fh) in _fh_update_old() argument
439 fh->ofh_ino = ino_t_to_u32(d_inode(dentry)->i_ino); in _fh_update_old()
440 fh->ofh_generation = d_inode(dentry)->i_generation; in _fh_update_old()
443 fh->ofh_dirino = 0; in _fh_update_old()
673 struct knfsd_fh *fh = &fhp->fh_handle; in SVCFH_fmt() local
677 fh->fh_size, in SVCFH_fmt()
678 fh->fh_base.fh_pad[0], in SVCFH_fmt()
679 fh->fh_base.fh_pad[1], in SVCFH_fmt()
680 fh->fh_base.fh_pad[2], in SVCFH_fmt()
681 fh->fh_base.fh_pad[3], in SVCFH_fmt()
682 fh->fh_base.fh_pad[4], in SVCFH_fmt()
683 fh->fh_base.fh_pad[5]); in SVCFH_fmt()