Searched defs:fhp (Results 1 - 13 of 13) sorted by relevance

/fs/freevxfs/
H A Dvxfs_fshead.c47 vxfs_dumpfsh(struct vxfs_fsh *fhp) argument
51 printk("version: %u\n", fhp->fsh_version);
52 printk("fsindex: %u\n", fhp->fsh_fsindex);
54 fhp->fsh_iauino, fhp->fsh_ninodes);
56 fhp->fsh_maxinode, fhp->fsh_lctino);
57 printk("nau: %u\n", fhp->fsh_nau);
59 fhp->fsh_ilistino[0], fhp
82 struct vxfs_fsh *fhp; local
[all...]
/fs/lockd/
H A Dsvcsubs.c37 u32 *fhp = (u32*)f->data; local
41 msg, fhp[0], fhp[1], fhp[2], fhp[3],
42 fhp[4], fhp[5], fhp[6], fhp[7]);
/fs/nfsd/
H A Dnfsfh.c135 static __be32 nfsd_set_fh_dentry(struct svc_rqst *rqstp, struct svc_fh *fhp) argument
137 struct knfsd_fh *fh = &fhp->fh_handle;
268 fhp->fh_dentry = dentry;
269 fhp->fh_export = exp;
279 * @fhp: filehandle to be verified
287 * called on @fhp when the caller is finished with the filehandle.
304 fh_verify(struct svc_rqst *rqstp, struct svc_fh *fhp, umode_t type, int access) argument
310 dprintk("nfsd: fh_verify(%s)\n", SVCFH_fmt(fhp));
312 if (!fhp->fh_dentry) {
313 error = nfsd_set_fh_dentry(rqstp, fhp);
391 _fh_update(struct svc_fh *fhp, struct svc_export *exp, struct dentry *dentry) argument
457 set_version_and_fsid_type(struct svc_fh *fhp, struct svc_export *exp, struct svc_fh *ref_fh) argument
512 fh_compose(struct svc_fh *fhp, struct svc_export *exp, struct dentry *dentry, struct svc_fh *ref_fh) argument
592 fh_update(struct svc_fh *fhp) argument
626 fh_put(struct svc_fh *fhp) argument
650 SVCFH_fmt(struct svc_fh *fhp) argument
666 fsid_source(struct svc_fh *fhp) argument
[all...]
H A Dnfsfh.h73 extern enum fsid_source fsid_source(struct svc_fh *fhp);
156 extern char * SVCFH_fmt(struct svc_fh *fhp);
183 fh_init(struct svc_fh *fhp, int maxsize) argument
185 memset(fhp, 0, sizeof(*fhp));
186 fhp->fh_maxsize = maxsize;
187 return fhp;
196 fh_clear_wcc(struct svc_fh *fhp) argument
198 fhp->fh_post_saved = 0;
199 fhp
206 fill_pre_wcc(struct svc_fh *fhp) argument
236 fh_lock_nested(struct svc_fh *fhp, unsigned int subclass) argument
256 fh_lock(struct svc_fh *fhp) argument
265 fh_unlock(struct svc_fh *fhp) argument
[all...]
H A Dnfsxdr.c28 decode_fh(__be32 *p, struct svc_fh *fhp) argument
30 fh_init(fhp, NFS_FHSIZE);
31 memcpy(&fhp->fh_handle.fh_base, p, NFS_FHSIZE);
32 fhp->fh_handle.fh_size = NFS_FHSIZE;
40 __be32 *nfs2svc_decode_fh(__be32 *p, struct svc_fh *fhp) argument
42 return decode_fh(p, fhp);
46 encode_fh(__be32 *p, struct svc_fh *fhp) argument
48 memcpy(p, &fhp->fh_handle.fh_base, NFS_FHSIZE);
144 encode_fattr(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp, argument
147 struct dentry *dentry = fhp
200 nfs2svc_encode_fattr(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp, struct kstat *stat) argument
[all...]
H A Dnfs3xdr.c48 decode_fh(__be32 *p, struct svc_fh *fhp) argument
51 fh_init(fhp, NFS3_FHSIZE);
56 memcpy(&fhp->fh_handle.fh_base, p, size);
57 fhp->fh_handle.fh_size = size;
62 __be32 *nfs3svc_decode_fh(__be32 *p, struct svc_fh *fhp) argument
64 return decode_fh(p, fhp);
68 encode_fh(__be32 *p, struct svc_fh *fhp) argument
70 unsigned int size = fhp->fh_handle.fh_size;
73 memcpy(p, &fhp->fh_handle.fh_base, size);
142 static __be32 *encode_fsid(__be32 *p, struct svc_fh *fhp) argument
164 encode_fattr3(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp, struct kstat *stat) argument
190 encode_saved_post_attr(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp) argument
203 encode_post_op_attr(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp) argument
223 nfs3svc_encode_post_op_attr(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp) argument
232 encode_wcc_data(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp) argument
255 fill_post_wcc(struct svc_fh *fhp) argument
807 compose_entry_fh(struct nfsd3_readdirres *cd, struct svc_fh *fhp, const char *name, int namlen) argument
[all...]
H A Dnfs4acl.c815 nfsd4_set_nfs4_acl(struct svc_rqst *rqstp, struct svc_fh *fhp, argument
826 error = fh_verify(rqstp, fhp, 0, NFSD_MAY_SATTR);
830 dentry = fhp->fh_dentry;
H A Dexport.c1058 exp_pseudoroot(struct svc_rqst *rqstp, struct svc_fh *fhp) argument
1066 rv = fh_compose(fhp, exp, exp->ex_path.dentry, NULL);
H A Dnfs4proc.c159 do_set_nfs4_acl(struct svc_rqst *rqstp, struct svc_fh *fhp, argument
164 status = nfsd4_set_nfs4_acl(rqstp, fhp, acl);
H A Dvfs.c180 nfsd_lookup_dentry(struct svc_rqst *rqstp, struct svc_fh *fhp, argument
189 dprintk("nfsd: nfsd_lookup(fh %s, %.*s)\n", SVCFH_fmt(fhp), len,name);
191 dparent = fhp->fh_dentry;
192 exp = exp_get(fhp->fh_export);
214 fh_lock_nested(fhp, I_MUTEX_PARENT);
240 * N.B. After this call _both_ fhp and resfh need an fh_put
251 nfsd_lookup(struct svc_rqst *rqstp, struct svc_fh *fhp, const char *name, argument
258 err = fh_verify(rqstp, fhp, S_IFDIR, NFSD_MAY_EXEC);
261 err = nfsd_lookup_dentry(rqstp, fhp, name, len, &exp, &dentry);
271 err = fh_compose(resfh, exp, dentry, fhp);
284 commit_metadata(struct svc_fh *fhp) argument
363 nfsd_get_write_access(struct svc_rqst *rqstp, struct svc_fh *fhp, struct iattr *iap) argument
397 nfsd_setattr(struct svc_rqst *rqstp, struct svc_fh *fhp, struct iattr *iap, int check_guard, time_t guardtime) argument
510 nfsd4_set_nfs4_label(struct svc_rqst *rqstp, struct svc_fh *fhp, struct xdr_netobj *label) argument
529 nfsd4_set_nfs4_label(struct svc_rqst *rqstp, struct svc_fh *fhp, struct xdr_netobj *label) argument
582 nfsd_access(struct svc_rqst *rqstp, struct svc_fh *fhp, u32 *access, u32 *supported) argument
657 nfsd_open(struct svc_rqst *rqstp, struct svc_fh *fhp, umode_t type, int may_flags, struct file **filp) argument
928 nfsd_vfs_write(struct svc_rqst *rqstp, struct svc_fh *fhp, struct file *file, loff_t offset, struct kvec *vec, int vlen, unsigned long *cnt, int *stablep) argument
989 nfsd_get_tmp_read_open(struct svc_rqst *rqstp, struct svc_fh *fhp, struct file **file, struct raparms **ra) argument
1028 nfsd_read(struct svc_rqst *rqstp, struct svc_fh *fhp, loff_t offset, struct kvec *vec, int vlen, unsigned long *count) argument
1052 nfsd_write(struct svc_rqst *rqstp, struct svc_fh *fhp, struct file *file, loff_t offset, struct kvec *vec, int vlen, unsigned long *cnt, int *stablep) argument
1090 nfsd_commit(struct svc_rqst *rqstp, struct svc_fh *fhp, loff_t offset, unsigned long count) argument
1169 nfsd_create(struct svc_rqst *rqstp, struct svc_fh *fhp, char *fname, int flen, struct iattr *iap, int type, dev_t rdev, struct svc_fh *resfhp) argument
1309 do_nfsd_create(struct svc_rqst *rqstp, struct svc_fh *fhp, char *fname, int flen, struct iattr *iap, struct svc_fh *resfhp, int createmode, u32 *verifier, bool *truncp, bool *created) argument
1479 nfsd_readlink(struct svc_rqst *rqstp, struct svc_fh *fhp, char *buf, int *lenp) argument
1525 nfsd_symlink(struct svc_rqst *rqstp, struct svc_fh *fhp, char *fname, int flen, char *path, struct svc_fh *resfhp) argument
1749 nfsd_unlink(struct svc_rqst *rqstp, struct svc_fh *fhp, int type, char *fname, int flen) argument
1928 nfsd_readdir(struct svc_rqst *rqstp, struct svc_fh *fhp, loff_t *offsetp, struct readdir_cd *cdp, filldir_t func) argument
1965 nfsd_statfs(struct svc_rqst *rqstp, struct svc_fh *fhp, struct kstatfs *stat, int access) argument
[all...]
H A Dnfs4xdr.c2035 * Note: @fhp can be NULL; in this case, we might have to compose the filehandle
2039 nfsd4_encode_fattr(struct xdr_stream *xdr, struct svc_fh *fhp, argument
2095 if ((bmval0 & (FATTR4_WORD0_FILEHANDLE | FATTR4_WORD0_FSID)) && !fhp) {
2104 fhp = tempfh;
2249 } else switch(fsid_source(fhp)) {
2346 p = xdr_reserve_space(xdr, fhp->fh_handle.fh_size + 4);
2349 p = xdr_encode_opaque(p, &fhp->fh_handle.fh_base,
2350 fhp->fh_handle.fh_size);
2579 struct svc_fh *fhp, struct svc_export *exp,
2588 ret = nfsd4_encode_fattr(&xdr, fhp, ex
2578 nfsd4_encode_fattr_to_buf(__be32 **p, int words, struct svc_fh *fhp, struct svc_export *exp, struct dentry *dentry, u32 *bmval, struct svc_rqst *rqstp, int ignore_crossmnt) argument
2868 struct svc_fh *fhp = getattr->ga_fhp; local
2884 struct svc_fh *fhp = *fhpp; local
[all...]
H A Dxdr4.h563 set_change_info(struct nfsd4_change_info *cinfo, struct svc_fh *fhp) argument
565 BUG_ON(!fhp->fh_pre_saved);
566 cinfo->atomic = fhp->fh_post_saved;
567 cinfo->change_supported = IS_I_VERSION(fhp->fh_dentry->d_inode);
569 cinfo->before_change = fhp->fh_pre_change;
570 cinfo->after_change = fhp->fh_post_change;
571 cinfo->before_ctime_sec = fhp->fh_pre_ctime.tv_sec;
572 cinfo->before_ctime_nsec = fhp->fh_pre_ctime.tv_nsec;
573 cinfo->after_ctime_sec = fhp->fh_post_attr.ctime.tv_sec;
574 cinfo->after_ctime_nsec = fhp
[all...]
H A Dnfs4state.c4289 static inline __be32 nfs4_check_fh(struct svc_fh *fhp, struct nfs4_ol_stateid *stp) argument
4291 if (!nfsd_fh_match(&fhp->fh_handle, &stp->st_stid.sc_file->fi_fhandle))
5388 static __be32 nfsd_test_lock(struct svc_rqst *rqstp, struct svc_fh *fhp, struct file_lock *lock) argument
5391 __be32 err = nfsd_open(rqstp, fhp, S_IFREG, NFSD_MAY_READ, &file);

Completed in 225 milliseconds