Home
last modified time | relevance | path

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

12

/OK3568_Linux_fs/kernel/fs/nfsd/
H A Dnfsfh.c153 static __be32 nfsd_set_fh_dentry(struct svc_rqst *rqstp, struct svc_fh *fhp) in nfsd_set_fh_dentry() argument
155 struct knfsd_fh *fh = &fhp->fh_handle; in nfsd_set_fh_dentry()
214 trace_nfsd_set_fh_dentry_badexport(rqstp, fhp, PTR_ERR(exp)); in nfsd_set_fh_dentry()
275 trace_nfsd_set_fh_dentry_badhandle(rqstp, fhp, in nfsd_set_fh_dentry()
292 fhp->fh_dentry = dentry; in nfsd_set_fh_dentry()
293 fhp->fh_export = exp; in nfsd_set_fh_dentry()
328 fh_verify(struct svc_rqst *rqstp, struct svc_fh *fhp, umode_t type, int access) in fh_verify() argument
334 dprintk("nfsd: fh_verify(%s)\n", SVCFH_fmt(fhp)); in fh_verify()
336 if (!fhp->fh_dentry) { in fh_verify()
337 error = nfsd_set_fh_dentry(rqstp, fhp); in fh_verify()
[all …]
H A Dvfs.c173 nfsd_lookup_dentry(struct svc_rqst *rqstp, struct svc_fh *fhp, in nfsd_lookup_dentry() argument
182 dprintk("nfsd: nfsd_lookup(fh %s, %.*s)\n", SVCFH_fmt(fhp), len,name); in nfsd_lookup_dentry()
184 dparent = fhp->fh_dentry; in nfsd_lookup_dentry()
185 exp = exp_get(fhp->fh_export); in nfsd_lookup_dentry()
207 fh_lock_nested(fhp, I_MUTEX_PARENT); in nfsd_lookup_dentry()
221 fh_unlock(fhp); in nfsd_lookup_dentry()
250 nfsd_lookup(struct svc_rqst *rqstp, struct svc_fh *fhp, const char *name, in nfsd_lookup() argument
257 err = fh_verify(rqstp, fhp, S_IFDIR, NFSD_MAY_EXEC); in nfsd_lookup()
260 err = nfsd_lookup_dentry(rqstp, fhp, name, len, &exp, &dentry); in nfsd_lookup()
270 err = fh_compose(resfh, exp, dentry, fhp); in nfsd_lookup()
[all …]
H A Dnfsfh.h79 extern enum fsid_source fsid_source(struct svc_fh *fhp);
162 extern char * SVCFH_fmt(struct svc_fh *fhp);
189 fh_init(struct svc_fh *fhp, int maxsize) in fh_init() argument
191 memset(fhp, 0, sizeof(*fhp)); in fh_init()
192 fhp->fh_maxsize = maxsize; in fh_init()
193 return fhp; in fh_init()
242 fh_clear_wcc(struct svc_fh *fhp) in fh_clear_wcc() argument
244 fhp->fh_post_saved = false; in fh_clear_wcc()
245 fhp->fh_pre_saved = false; in fh_clear_wcc()
271 extern void fill_pre_wcc(struct svc_fh *fhp);
[all …]
H A Dnfs3xdr.c50 decode_fh(__be32 *p, struct svc_fh *fhp) in decode_fh() argument
53 fh_init(fhp, NFS3_FHSIZE); in decode_fh()
58 memcpy(&fhp->fh_handle.fh_base, p, size); in decode_fh()
59 fhp->fh_handle.fh_size = size; in decode_fh()
64 __be32 *nfs3svc_decode_fh(__be32 *p, struct svc_fh *fhp) in nfs3svc_decode_fh() argument
66 return decode_fh(p, fhp); in nfs3svc_decode_fh()
70 encode_fh(__be32 *p, struct svc_fh *fhp) in encode_fh() argument
72 unsigned int size = fhp->fh_handle.fh_size; in encode_fh()
75 memcpy(p, &fhp->fh_handle.fh_base, size); in encode_fh()
144 static __be32 *encode_fsid(__be32 *p, struct svc_fh *fhp) in encode_fsid() argument
[all …]
H A 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
133 struct dentry *dentry = fhp->fh_dentry; in encode_fattr()
[all …]
H A Dvfs.h80 __be32 nfsd_getxattr(struct svc_rqst *rqstp, struct svc_fh *fhp,
82 __be32 nfsd_listxattr(struct svc_rqst *rqstp, struct svc_fh *fhp,
84 __be32 nfsd_removexattr(struct svc_rqst *rqstp, struct svc_fh *fhp,
86 __be32 nfsd_setxattr(struct svc_rqst *rqstp, struct svc_fh *fhp,
94 __be32 nfsd_splice_read(struct svc_rqst *rqstp, struct svc_fh *fhp,
98 __be32 nfsd_readv(struct svc_rqst *rqstp, struct svc_fh *fhp,
109 __be32 nfsd_vfs_write(struct svc_rqst *rqstp, struct svc_fh *fhp,
H A Dtrace.h56 struct svc_fh *fhp,
58 TP_ARGS(rqstp, fhp, status),
66 __entry->fh_hash = knfsd_fh_hash(&fhp->fh_handle);
77 struct svc_fh *fhp, \
79 TP_ARGS(rqstp, fhp, status))
177 struct svc_fh *fhp,
180 TP_ARGS(rqstp, fhp, offset, len),
189 __entry->fh_hash = knfsd_fh_hash(&fhp->fh_handle);
201 struct svc_fh *fhp, \
204 TP_ARGS(rqstp, fhp, offset, len))
[all …]
H A 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()
H A Dxdr4.h767 set_change_info(struct nfsd4_change_info *cinfo, struct svc_fh *fhp) in set_change_info() argument
769 BUG_ON(!fhp->fh_pre_saved); in set_change_info()
770 cinfo->atomic = (u32)fhp->fh_post_saved; in set_change_info()
771 cinfo->change_supported = IS_I_VERSION(d_inode(fhp->fh_dentry)); in set_change_info()
773 cinfo->before_change = fhp->fh_pre_change; in set_change_info()
774 cinfo->after_change = fhp->fh_post_change; in set_change_info()
775 cinfo->before_ctime_sec = fhp->fh_pre_ctime.tv_sec; in set_change_info()
776 cinfo->before_ctime_nsec = fhp->fh_pre_ctime.tv_nsec; in set_change_info()
777 cinfo->after_ctime_sec = fhp->fh_post_attr.ctime.tv_sec; in set_change_info()
778 cinfo->after_ctime_nsec = fhp->fh_post_attr.ctime.tv_nsec; in set_change_info()
[all …]
H A 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()
H A 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,
H A Dxdr.h176 __be32 *nfs2svc_encode_fattr(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp, struct kstat *s…
177 __be32 *nfs2svc_decode_fh(__be32 *p, struct svc_fh *fhp);
H A Dacl.h48 __be32 nfsd4_set_nfs4_acl(struct svc_rqst *rqstp, struct svc_fh *fhp,
H A Dnfsproc.c54 struct svc_fh *fhp; in nfsd_proc_setattr() local
60 fhp = fh_copy(&resp->fh, &argp->fh); in nfsd_proc_setattr()
86 resp->status = fh_verify(rqstp, fhp, 0, NFSD_MAY_NOP); in nfsd_proc_setattr()
93 setattr_prepare(fhp->fh_dentry, iap) != 0) { in nfsd_proc_setattr()
103 resp->status = nfsd_setattr(rqstp, fhp, iap, 0, (time64_t)0); in nfsd_proc_setattr()
H A 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()
H A Dfilecache.h60 __be32 nfsd_file_acquire(struct svc_rqst *rqstp, struct svc_fh *fhp,
H A Dxdr3.h320 struct svc_fh *fhp);
321 __be32 *nfs3svc_decode_fh(__be32 *p, struct svc_fh *fhp);
H A Dfilecache.c937 nfsd_file_acquire(struct svc_rqst *rqstp, struct svc_fh *fhp, in nfsd_file_acquire() argument
948 status = fh_verify(rqstp, fhp, S_IFREG, in nfsd_file_acquire()
953 inode = d_inode(fhp->fh_dentry); in nfsd_file_acquire()
1034 status = nfsd_open_verified(rqstp, fhp, S_IFREG, in nfsd_file_acquire()
H A Dblocklayout.c24 nfsd4_block_proc_layoutget(struct inode *inode, const struct svc_fh *fhp, in nfsd4_block_proc_layoutget() argument
99 error = nfsd4_set_deviceid(&bex->vol_id, fhp, device_generation); in nfsd4_block_proc_layoutget()
H A Dnfs4xdr.c2698 nfsd4_encode_fattr(struct xdr_stream *xdr, struct svc_fh *fhp, in nfsd4_encode_fattr() argument
2752 if ((bmval0 & (FATTR4_WORD0_FILEHANDLE | FATTR4_WORD0_FSID)) && !fhp) { in nfsd4_encode_fattr()
2761 fhp = tempfh; in nfsd4_encode_fattr()
2886 } else switch(fsid_source(fhp)) { in nfsd4_encode_fattr()
2983 p = xdr_reserve_space(xdr, fhp->fh_handle.fh_size + 4); in nfsd4_encode_fattr()
2986 p = xdr_encode_opaque(p, &fhp->fh_handle.fh_base, in nfsd4_encode_fattr()
2987 fhp->fh_handle.fh_size); in nfsd4_encode_fattr()
3266 struct svc_fh *fhp, struct svc_export *exp, in nfsd4_encode_fattr_to_buf() argument
3275 ret = nfsd4_encode_fattr(&xdr, fhp, exp, dentry, bmval, rqstp, in nfsd4_encode_fattr_to_buf()
3537 struct svc_fh *fhp = getattr->ga_fhp; in nfsd4_encode_getattr() local
[all …]
H A Dnfs4state.c5522 static inline __be32 nfs4_check_fh(struct svc_fh *fhp, struct nfs4_stid *stp) in nfs4_check_fh() argument
5524 if (!fh_match(&fhp->fh_handle, &stp->sc_file->fi_fhandle)) in nfs4_check_fh()
5751 nfs4_check_file(struct svc_rqst *rqstp, struct svc_fh *fhp, struct nfs4_stid *s, in nfs4_check_file() argument
5760 status = nfsd_permission(rqstp, fhp->fh_export, fhp->fh_dentry, in nfs4_check_file()
5767 status = nfsd_file_acquire(rqstp, fhp, acc, &nf); in nfs4_check_file()
5860 struct nfsd4_compound_state *cstate, struct svc_fh *fhp, in nfs4_preprocess_stateid_op() argument
5864 struct inode *ino = d_inode(fhp->fh_dentry); in nfs4_preprocess_stateid_op()
5877 status = check_special_stateids(net, fhp, stateid, flags); in nfs4_preprocess_stateid_op()
5907 status = nfs4_check_fh(fhp, s); in nfs4_preprocess_stateid_op()
5911 status = nfs4_check_file(rqstp, fhp, s, nfp, flags); in nfs4_preprocess_stateid_op()
[all …]
/OK3568_Linux_fs/kernel/fs/freevxfs/
H A 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 …]
/OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/
H A Dcgroup_helpers.c254 struct file_handle *fhp, *fhp2; in get_cgroup_id() local
261 fhsize = sizeof(*fhp); in get_cgroup_id()
262 fhp = calloc(1, fhsize); in get_cgroup_id()
263 if (!fhp) { in get_cgroup_id()
267 err = name_to_handle_at(dirfd, cgroup_workdir, fhp, &mount_id, flags); in get_cgroup_id()
268 if (err >= 0 || fhp->handle_bytes != 8) { in get_cgroup_id()
273 fhsize = sizeof(struct file_handle) + fhp->handle_bytes; in get_cgroup_id()
274 fhp2 = realloc(fhp, fhsize); in get_cgroup_id()
280 fhp = fhp2; in get_cgroup_id()
286 memcpy(id.raw_bytes, fhp->f_handle, 8); in get_cgroup_id()
[all …]
/OK3568_Linux_fs/kernel/drivers/media/usb/pvrusb2/
H A Dpvrusb2-v4l2.c913 struct pvr2_v4l2_fh *fhp = file->private_data; in pvr2_v4l2_release() local
914 struct pvr2_v4l2 *vp = fhp->pdi->v4lp; in pvr2_v4l2_release()
915 struct pvr2_hdw *hdw = fhp->channel.mc_head->hdw; in pvr2_v4l2_release()
919 if (fhp->rhp) { in pvr2_v4l2_release()
922 sp = pvr2_ioread_get_stream(fhp->rhp); in pvr2_v4l2_release()
924 pvr2_ioread_destroy(fhp->rhp); in pvr2_v4l2_release()
925 fhp->rhp = NULL; in pvr2_v4l2_release()
928 v4l2_fh_del(&fhp->fh); in pvr2_v4l2_release()
929 v4l2_fh_exit(&fhp->fh); in pvr2_v4l2_release()
932 pvr2_channel_done(&fhp->channel); in pvr2_v4l2_release()
[all …]
/OK3568_Linux_fs/kernel/fs/lockd/
H A Dsvcsubs.c38 u32 *fhp = (u32*)f->data; in nlm_debug_print_fh() local
42 msg, fhp[0], fhp[1], fhp[2], fhp[3], in nlm_debug_print_fh()
43 fhp[4], fhp[5], fhp[6], fhp[7]); in nlm_debug_print_fh()

12