Home
last modified time | relevance | path

Searched refs:fhp (Results 1 – 24 of 24) sorted by relevance

/linux-4.19.296/fs/nfsd/
Dnfsfh.c152 static __be32 nfsd_set_fh_dentry(struct svc_rqst *rqstp, struct svc_fh *fhp) in nfsd_set_fh_dentry() argument
154 struct knfsd_fh *fh = &fhp->fh_handle; in nfsd_set_fh_dentry()
285 fhp->fh_dentry = dentry; in nfsd_set_fh_dentry()
286 fhp->fh_export = exp; in nfsd_set_fh_dentry()
321 fh_verify(struct svc_rqst *rqstp, struct svc_fh *fhp, umode_t type, int access) in fh_verify() argument
327 dprintk("nfsd: fh_verify(%s)\n", SVCFH_fmt(fhp)); in fh_verify()
329 if (!fhp->fh_dentry) { in fh_verify()
330 error = nfsd_set_fh_dentry(rqstp, fhp); in fh_verify()
334 dentry = fhp->fh_dentry; in fh_verify()
335 exp = fhp->fh_export; in fh_verify()
[all …]
Dnfsfh.h76 extern enum fsid_source fsid_source(struct svc_fh *fhp);
159 extern char * SVCFH_fmt(struct svc_fh *fhp);
186 fh_init(struct svc_fh *fhp, int maxsize) in fh_init() argument
188 memset(fhp, 0, sizeof(*fhp)); in fh_init()
189 fhp->fh_maxsize = maxsize; in fh_init()
190 return fhp; in fh_init()
239 fh_clear_wcc(struct svc_fh *fhp) in fh_clear_wcc() argument
241 fhp->fh_post_saved = false; in fh_clear_wcc()
242 fhp->fh_pre_saved = false; in fh_clear_wcc()
268 extern void fill_pre_wcc(struct svc_fh *fhp);
[all …]
Dvfs.c200 nfsd_lookup_dentry(struct svc_rqst *rqstp, struct svc_fh *fhp, in nfsd_lookup_dentry() argument
209 dprintk("nfsd: nfsd_lookup(fh %s, %.*s)\n", SVCFH_fmt(fhp), len,name); in nfsd_lookup_dentry()
211 dparent = fhp->fh_dentry; in nfsd_lookup_dentry()
212 exp = exp_get(fhp->fh_export); in nfsd_lookup_dentry()
234 fh_lock_nested(fhp, I_MUTEX_PARENT); in nfsd_lookup_dentry()
248 fh_unlock(fhp); in nfsd_lookup_dentry()
277 nfsd_lookup(struct svc_rqst *rqstp, struct svc_fh *fhp, const char *name, in nfsd_lookup() argument
284 err = fh_verify(rqstp, fhp, S_IFDIR, NFSD_MAY_EXEC); in nfsd_lookup()
287 err = nfsd_lookup_dentry(rqstp, fhp, name, len, &exp, &dentry); in nfsd_lookup()
297 err = fh_compose(resfh, exp, dentry, fhp); in nfsd_lookup()
[all …]
Dnfs3xdr.c49 decode_fh(__be32 *p, struct svc_fh *fhp) in decode_fh() argument
52 fh_init(fhp, NFS3_FHSIZE); in decode_fh()
57 memcpy(&fhp->fh_handle.fh_base, p, size); in decode_fh()
58 fhp->fh_handle.fh_size = size; in decode_fh()
63 __be32 *nfs3svc_decode_fh(__be32 *p, struct svc_fh *fhp) in nfs3svc_decode_fh() argument
65 return decode_fh(p, fhp); in nfs3svc_decode_fh()
69 encode_fh(__be32 *p, struct svc_fh *fhp) in encode_fh() argument
71 unsigned int size = fhp->fh_handle.fh_size; in encode_fh()
74 memcpy(p, &fhp->fh_handle.fh_base, size); in encode_fh()
143 static __be32 *encode_fsid(__be32 *p, struct svc_fh *fhp) in encode_fsid() argument
[all …]
Dtrace.h55 struct svc_fh *fhp,
58 TP_ARGS(rqstp, fhp, offset, len),
67 __entry->fh_hash = knfsd_fh_hash(&fhp->fh_handle);
79 struct svc_fh *fhp, \
82 TP_ARGS(rqstp, fhp, offset, len))
96 struct svc_fh *fhp,
99 TP_ARGS(rqstp, fhp, offset, status),
108 __entry->fh_hash = knfsd_fh_hash(&fhp->fh_handle);
120 struct svc_fh *fhp, \
123 TP_ARGS(rqstp, fhp, offset, len))
Dnfsxdr.c29 decode_fh(__be32 *p, struct svc_fh *fhp) in decode_fh() argument
31 fh_init(fhp, NFS_FHSIZE); in decode_fh()
32 memcpy(&fhp->fh_handle.fh_base, p, NFS_FHSIZE); in decode_fh()
33 fhp->fh_handle.fh_size = NFS_FHSIZE; in decode_fh()
41 __be32 *nfs2svc_decode_fh(__be32 *p, struct svc_fh *fhp) in nfs2svc_decode_fh() argument
43 return decode_fh(p, fhp); in nfs2svc_decode_fh()
47 encode_fh(__be32 *p, struct svc_fh *fhp) in encode_fh() argument
49 memcpy(p, &fhp->fh_handle.fh_base, NFS_FHSIZE); in encode_fh()
129 encode_fattr(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp, in encode_fattr() argument
132 struct dentry *dentry = fhp->fh_dentry; in encode_fattr()
[all …]
Dflexfilelayout.c22 nfsd4_ff_proc_layoutget(struct inode *inode, const struct svc_fh *fhp, in nfsd4_ff_proc_layoutget() argument
59 error = nfsd4_set_deviceid(&fl->deviceid, fhp, device_generation); in nfsd4_ff_proc_layoutget()
63 fl->fh.size = fhp->fh_handle.fh_size; in nfsd4_ff_proc_layoutget()
64 memcpy(fl->fh.data, &fhp->fh_handle.fh_base, fl->fh.size); in nfsd4_ff_proc_layoutget()
Dxdr4.h685 set_change_info(struct nfsd4_change_info *cinfo, struct svc_fh *fhp) in set_change_info() argument
687 BUG_ON(!fhp->fh_pre_saved); in set_change_info()
688 cinfo->atomic = (u32)fhp->fh_post_saved; in set_change_info()
689 cinfo->change_supported = IS_I_VERSION(d_inode(fhp->fh_dentry)); in set_change_info()
691 cinfo->before_change = fhp->fh_pre_change; in set_change_info()
692 cinfo->after_change = fhp->fh_post_change; in set_change_info()
693 cinfo->before_ctime_sec = fhp->fh_pre_ctime.tv_sec; in set_change_info()
694 cinfo->before_ctime_nsec = fhp->fh_pre_ctime.tv_nsec; in set_change_info()
695 cinfo->after_ctime_sec = fhp->fh_post_attr.ctime.tv_sec; in set_change_info()
696 cinfo->after_ctime_nsec = fhp->fh_post_attr.ctime.tv_nsec; in set_change_info()
[all …]
Dnfs4layouts.c56 nfsd4_alloc_devid_map(const struct svc_fh *fhp) in nfsd4_alloc_devid_map() argument
58 const struct knfsd_fh *fh = &fhp->fh_handle; in nfsd4_alloc_devid_map()
71 if (fhp->fh_export->ex_devid_map) in nfsd4_alloc_devid_map()
82 fhp->fh_export->ex_devid_map = old; in nfsd4_alloc_devid_map()
89 fhp->fh_export->ex_devid_map = map; in nfsd4_alloc_devid_map()
112 nfsd4_set_deviceid(struct nfsd4_deviceid *id, const struct svc_fh *fhp, in nfsd4_set_deviceid() argument
115 if (!fhp->fh_export->ex_devid_map) { in nfsd4_set_deviceid()
116 nfsd4_alloc_devid_map(fhp); in nfsd4_set_deviceid()
117 if (!fhp->fh_export->ex_devid_map) in nfsd4_set_deviceid()
121 id->fsid_idx = fhp->fh_export->ex_devid_map->idx; in nfsd4_set_deviceid()
Dpnfs.h32 __be32 (*proc_layoutget)(struct inode *, const struct svc_fh *fhp,
65 int nfsd4_set_deviceid(struct nfsd4_deviceid *id, const struct svc_fh *fhp,
Dvfs.h81 __be32 nfsd_splice_read(struct svc_rqst *rqstp, struct svc_fh *fhp,
84 __be32 nfsd_readv(struct svc_rqst *rqstp, struct svc_fh *fhp,
92 __be32 nfsd_vfs_write(struct svc_rqst *rqstp, struct svc_fh *fhp,
Dxdr.h162 __be32 *nfs2svc_encode_fattr(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp, struct kstat *s…
163 __be32 *nfs2svc_decode_fh(__be32 *p, struct svc_fh *fhp);
Dacl.h56 __be32 nfsd4_set_nfs4_acl(struct svc_rqst *rqstp, struct svc_fh *fhp,
Dnfsproc.c66 struct svc_fh *fhp; in nfsd_proc_setattr() local
73 fhp = fh_copy(&resp->fh, &argp->fh); in nfsd_proc_setattr()
99 nfserr = fh_verify(rqstp, fhp, 0, NFSD_MAY_NOP); in nfsd_proc_setattr()
106 setattr_prepare(fhp->fh_dentry, iap) != 0) { in nfsd_proc_setattr()
116 nfserr = nfsd_setattr(rqstp, fhp, iap, 0, (time_t)0); in nfsd_proc_setattr()
Dxdr3.h317 struct svc_fh *fhp);
318 __be32 *nfs3svc_decode_fh(__be32 *p, struct svc_fh *fhp);
Dnfs4acl.c755 nfsd4_set_nfs4_acl(struct svc_rqst *rqstp, struct svc_fh *fhp, in nfsd4_set_nfs4_acl() argument
766 error = fh_verify(rqstp, fhp, 0, NFSD_MAY_SATTR); in nfsd4_set_nfs4_acl()
770 dentry = fhp->fh_dentry; in nfsd4_set_nfs4_acl()
782 fh_lock(fhp); in nfsd4_set_nfs4_acl()
793 fh_unlock(fhp); in nfsd4_set_nfs4_acl()
Dblocklayout.c23 nfsd4_block_proc_layoutget(struct inode *inode, const struct svc_fh *fhp, in nfsd4_block_proc_layoutget() argument
98 error = nfsd4_set_deviceid(&bex->vol_id, fhp, device_generation); in nfsd4_block_proc_layoutget()
Dnfs4xdr.c2395 nfsd4_encode_fattr(struct xdr_stream *xdr, struct svc_fh *fhp, in nfsd4_encode_fattr() argument
2449 if ((bmval0 & (FATTR4_WORD0_FILEHANDLE | FATTR4_WORD0_FSID)) && !fhp) { in nfsd4_encode_fattr()
2458 fhp = tempfh; in nfsd4_encode_fattr()
2583 } else switch(fsid_source(fhp)) { in nfsd4_encode_fattr()
2680 p = xdr_reserve_space(xdr, fhp->fh_handle.fh_size + 4); in nfsd4_encode_fattr()
2683 p = xdr_encode_opaque(p, &fhp->fh_handle.fh_base, in nfsd4_encode_fattr()
2684 fhp->fh_handle.fh_size); in nfsd4_encode_fattr()
2954 struct svc_fh *fhp, struct svc_export *exp, in nfsd4_encode_fattr_to_buf() argument
2963 ret = nfsd4_encode_fattr(&xdr, fhp, exp, dentry, bmval, rqstp, in nfsd4_encode_fattr_to_buf()
3237 struct svc_fh *fhp = getattr->ga_fhp; in nfsd4_encode_getattr() local
[all …]
Dnfs4state.c4879 static inline __be32 nfs4_check_fh(struct svc_fh *fhp, struct nfs4_stid *stp) in nfs4_check_fh() argument
4881 if (!fh_match(&fhp->fh_handle, &stp->sc_file->fi_fhandle)) in nfs4_check_fh()
5095 nfs4_check_olstateid(struct svc_fh *fhp, struct nfs4_ol_stateid *ols, int flags) in nfs4_check_olstateid() argument
5106 nfs4_check_file(struct svc_rqst *rqstp, struct svc_fh *fhp, struct nfs4_stid *s, in nfs4_check_file() argument
5115 status = nfsd_permission(rqstp, fhp->fh_export, fhp->fh_dentry, in nfs4_check_file()
5124 status = nfsd_open(rqstp, fhp, S_IFREG, acc, filpp); in nfs4_check_file()
5140 struct nfsd4_compound_state *cstate, struct svc_fh *fhp, in nfs4_preprocess_stateid_op() argument
5143 struct inode *ino = d_inode(fhp->fh_dentry); in nfs4_preprocess_stateid_op()
5158 status = check_special_stateids(net, fhp, stateid, flags); in nfs4_preprocess_stateid_op()
5178 status = nfs4_check_olstateid(fhp, openlockstateid(s), flags); in nfs4_preprocess_stateid_op()
[all …]
Dstate.h605 struct nfsd4_compound_state *cstate, struct svc_fh *fhp,
Dexport.c1077 exp_pseudoroot(struct svc_rqst *rqstp, struct svc_fh *fhp) in exp_pseudoroot() argument
1085 rv = fh_compose(fhp, exp, exp->ex_path.dentry, NULL); in exp_pseudoroot()
Dnfs4proc.c149 do_set_nfs4_acl(struct svc_rqst *rqstp, struct svc_fh *fhp, in do_set_nfs4_acl() argument
154 status = nfsd4_set_nfs4_acl(rqstp, fhp, acl); in do_set_nfs4_acl()
/linux-4.19.296/fs/freevxfs/
Dvxfs_fshead.c48 vxfs_dumpfsh(struct vxfs_fsh *fhp) in vxfs_dumpfsh() argument
52 printk("version: %u\n", fhp->fsh_version); in vxfs_dumpfsh()
53 printk("fsindex: %u\n", fhp->fsh_fsindex); in vxfs_dumpfsh()
55 fhp->fsh_iauino, fhp->fsh_ninodes); in vxfs_dumpfsh()
57 fhp->fsh_maxinode, fhp->fsh_lctino); in vxfs_dumpfsh()
58 printk("nau: %u\n", fhp->fsh_nau); in vxfs_dumpfsh()
60 fhp->fsh_ilistino[0], fhp->fsh_ilistino[1]); in vxfs_dumpfsh()
83 struct vxfs_fsh *fhp; in vxfs_getfsh() local
85 if (!(fhp = kmalloc(sizeof(*fhp), GFP_KERNEL))) in vxfs_getfsh()
87 memcpy(fhp, bp->b_data, sizeof(*fhp)); in vxfs_getfsh()
[all …]
/linux-4.19.296/fs/lockd/
Dsvcsubs.c37 u32 *fhp = (u32*)f->data; in nlm_debug_print_fh() local
41 msg, fhp[0], fhp[1], fhp[2], fhp[3], in nlm_debug_print_fh()
42 fhp[4], fhp[5], fhp[6], fhp[7]); in nlm_debug_print_fh()