Home
last modified time | relevance | path

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

/linux/fs/nfsd/
H A Dnfsfh.c149 struct svc_fh *fhp) in nfsd_set_fh_dentry() argument
151 struct knfsd_fh *fh = &fhp->fh_handle; in nfsd_set_fh_dentry()
200 trace_nfsd_set_fh_dentry_badexport(rqstp, fhp, PTR_ERR(exp)); in nfsd_set_fh_dentry()
247 trace_nfsd_set_fh_dentry_badhandle(rqstp, fhp, in nfsd_set_fh_dentry()
272 switch (fhp->fh_maxsize) { in nfsd_set_fh_dentry()
275 fhp->fh_no_atomic_attr = true; in nfsd_set_fh_dentry()
276 fhp->fh_64bit_cookies = true; in nfsd_set_fh_dentry()
280 fhp->fh_no_wcc = true; in nfsd_set_fh_dentry()
281 fhp->fh_64bit_cookies = true; in nfsd_set_fh_dentry()
286 fhp->fh_no_wcc = true; in nfsd_set_fh_dentry()
[all …]
H A Dnfsfh.h134 extern enum fsid_source fsid_source(const struct svc_fh *fhp);
217 extern char * SVCFH_fmt(struct svc_fh *fhp);
225 __be32 fh_getattr(const struct svc_fh *fhp, struct kstat *stat);
247 fh_init(struct svc_fh *fhp, int maxsize) in fh_init() argument
249 memset(fhp, 0, sizeof(*fhp)); in fh_init()
250 fhp->fh_maxsize = maxsize; in fh_init()
251 return fhp; in fh_init()
288 static inline int fh_want_write(struct svc_fh *fhp) in fh_want_write() argument
292 if (fhp->fh_want_write) in fh_want_write()
294 ret = mnt_want_write(fhp->fh_export->ex_path.mnt); in fh_want_write()
[all …]
H A Dvfs.c243 nfsd_lookup_dentry(struct svc_rqst *rqstp, struct svc_fh *fhp, in nfsd_lookup_dentry() argument
252 trace_nfsd_vfs_lookup(rqstp, fhp, name, len); in nfsd_lookup_dentry()
254 dparent = fhp->fh_dentry; in nfsd_lookup_dentry()
255 exp = exp_get(fhp->fh_export); in nfsd_lookup_dentry()
315 nfsd_lookup(struct svc_rqst *rqstp, struct svc_fh *fhp, const char *name, in nfsd_lookup() argument
322 err = fh_verify(rqstp, fhp, S_IFDIR, NFSD_MAY_EXEC); in nfsd_lookup()
325 err = nfsd_lookup_dentry(rqstp, fhp, name, len, &exp, &dentry); in nfsd_lookup()
335 err = fh_compose(resfh, exp, dentry, fhp); in nfsd_lookup()
376 commit_metadata(struct svc_fh *fhp) in commit_metadata() argument
378 struct inode *inode = d_inode(fhp->fh_dentry); in commit_metadata()
[all …]
H A Dvfs.h101 __be32 nfsd_create_setattr(struct svc_rqst *rqstp, struct svc_fh *fhp,
103 __be32 nfsd_commit(struct svc_rqst *rqst, struct svc_fh *fhp,
107 __be32 nfsd_getxattr(struct svc_rqst *rqstp, struct svc_fh *fhp,
109 __be32 nfsd_listxattr(struct svc_rqst *rqstp, struct svc_fh *fhp,
111 __be32 nfsd_removexattr(struct svc_rqst *rqstp, struct svc_fh *fhp,
113 __be32 nfsd_setxattr(struct svc_rqst *rqstp, struct svc_fh *fhp,
119 int nfsd_open_verified(struct svc_fh *fhp, umode_t type, int may_flags,
121 __be32 nfsd_splice_read(struct svc_rqst *rqstp, struct svc_fh *fhp,
125 __be32 nfsd_iter_read(struct svc_rqst *rqstp, struct svc_fh *fhp,
130 __be32 nfsd_read(struct svc_rqst *rqstp, struct svc_fh *fhp,
[all …]
H A Dfilecache.c1055 nfsd_file_get_dio_attrs(const struct svc_fh *fhp, struct nfsd_file *nf) in nfsd_file_get_dio_attrs() argument
1065 status = fh_getattr(fhp, &stat); in nfsd_file_get_dio_attrs()
1087 struct svc_fh *fhp, in nfsd_file_do_acquire() argument
1101 status = fh_verify(rqstp, fhp, type, in nfsd_file_do_acquire()
1104 status = fh_verify_local(net, cred, client, fhp, type, in nfsd_file_do_acquire()
1109 inode = d_inode(fhp->fh_dentry); in nfsd_file_do_acquire()
1157 fh_put(fhp); in nfsd_file_do_acquire()
1190 ret = nfsd_open_verified(fhp, type, may_flags, &nf->nf_file); in nfsd_file_do_acquire()
1199 fh_put(fhp); in nfsd_file_do_acquire()
1205 status = nfsd_file_get_dio_attrs(fhp, nf); in nfsd_file_do_acquire()
[all …]
H A Dflexfilelayout.c24 const struct svc_fh *fhp, struct nfsd4_layoutget *args) in nfsd4_ff_proc_layoutget() argument
60 error = nfsd4_set_deviceid(&fl->deviceid, fhp, device_generation); in nfsd4_ff_proc_layoutget()
64 fl->fh.size = fhp->fh_handle.fh_size; in nfsd4_ff_proc_layoutget()
65 memcpy(fl->fh.data, &fhp->fh_handle.fh_raw, fl->fh.size); in nfsd4_ff_proc_layoutget()
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.h33 const struct svc_fh *fhp, struct nfsd4_layoutget *lgp);
67 int nfsd4_set_deviceid(struct nfsd4_deviceid *id, const struct svc_fh *fhp,
H A Dblocklayout.c26 nfsd4_block_map_extent(struct inode *inode, const struct svc_fh *fhp, in nfsd4_block_map_extent() argument
78 error = nfsd4_set_deviceid(&bex->vol_id, fhp, device_generation); in nfsd4_block_map_extent()
89 const struct svc_fh *fhp, struct nfsd4_layoutget *args) in nfsd4_block_proc_layoutget() argument
144 nfserr = nfsd4_block_map_extent(inode, fhp, offset, length, in nfsd4_block_proc_layoutget()
H A Dxdr.h172 bool svcxdr_decode_fhandle(struct xdr_stream *xdr, struct svc_fh *fhp);
175 const struct svc_fh *fhp, const struct kstat *stat);
H A Dnfs4proc.c205 nfsd4_vfs_create(struct svc_fh *fhp, struct dentry **child, in nfsd4_vfs_create() argument
227 path.mnt = fhp->fh_export->ex_path.mnt; in nfsd4_vfs_create()
248 nfsd4_create_file(struct svc_rqst *rqstp, struct svc_fh *fhp, in nfsd4_create_file() argument
267 status = fh_verify(rqstp, fhp, S_IFDIR, NFSD_MAY_EXEC); in nfsd4_create_file()
270 parent = fhp->fh_dentry; in nfsd4_create_file()
273 host_err = fh_want_write(fhp); in nfsd4_create_file()
300 status = fh_verify(rqstp, fhp, S_IFDIR, NFSD_MAY_CREATE); in nfsd4_create_file()
305 status = fh_compose(resfhp, fhp->fh_export, child, fhp); in nfsd4_create_file()
330 status = fh_fill_both_attrs(fhp); in nfsd4_create_file()
375 status = fh_fill_pre_attrs(fhp); in nfsd4_create_file()
[all …]
H A Dxdr3.h309 bool svcxdr_decode_nfs_fh3(struct xdr_stream *xdr, struct svc_fh *fhp);
312 const struct svc_fh *fhp);
H A Dnfs4xdr.c3143 struct svc_fh *fhp; member
3291 switch (fsid_source(args->fhp)) { in nfsd4_encode_fattr4_fsid()
3361 return nfsd4_encode_nfs_fh4(xdr, &args->fhp->fh_handle); in nfsd4_encode_fattr4_filehandle()
3860 struct svc_fh *fhp, struct svc_export *exp, in nfsd4_encode_fattr4() argument
3958 !fhp) { in nfsd4_encode_fattr4()
3967 args.fhp = tempfh; in nfsd4_encode_fattr4()
3969 args.fhp = fhp; in nfsd4_encode_fattr4()
4116 struct svc_fh *fhp, struct svc_export *exp, in nfsd4_encode_fattr_to_buf() argument
4125 ret = nfsd4_encode_fattr4(rqstp, &xdr, fhp, exp, dentry, bmval, in nfsd4_encode_fattr_to_buf()
4446 struct svc_fh *fhp = getattr->ga_fhp; in nfsd4_encode_getattr() local
[all …]
H A Dnfs4state.c5279 nfsd4_file_hash_lookup(const struct svc_fh *fhp) in nfsd4_file_hash_lookup() argument
5281 struct inode *inode = d_inode(fhp->fh_dentry); in nfsd4_file_hash_lookup()
5289 if (fh_match(&fi->fi_fhandle, &fhp->fh_handle)) { in nfsd4_file_hash_lookup()
5309 nfsd4_file_hash_insert(struct nfs4_file *new, const struct svc_fh *fhp) in nfsd4_file_hash_insert() argument
5311 struct inode *inode = d_inode(fhp->fh_dentry); in nfsd4_file_hash_insert()
5324 if (fh_match(&fi->fi_fhandle, &fhp->fh_handle)) { in nfsd4_file_hash_insert()
5333 nfsd4_file_init(fhp, new); in nfsd4_file_hash_insert()
7096 static inline __be32 nfs4_check_fh(struct svc_fh *fhp, struct nfs4_stid *stp) in nfs4_check_fh() argument
7098 if (!fh_match(&fhp->fh_handle, &stp->sc_file->fi_fhandle)) in nfs4_check_fh()
7310 nfs4_check_file(struct svc_rqst *rqstp, struct svc_fh *fhp, struct nfs4_stid *s, in nfs4_check_file() argument
[all …]
H A Dstate.h786 struct nfsd4_compound_state *cstate, struct svc_fh *fhp,
H A Dexport.c1329 exp_pseudoroot(struct svc_rqst *rqstp, struct svc_fh *fhp) in exp_pseudoroot() argument
1337 rv = fh_compose(fhp, exp, exp->ex_path.dentry, NULL); in exp_pseudoroot()
/linux/fs/freevxfs/
H A Dvxfs_fshead.c24 vxfs_dumpfsh(struct vxfs_fsh *fhp) in vxfs_dumpfsh() argument
28 printk("version: %u\n", fhp->fsh_version); in vxfs_dumpfsh()
29 printk("fsindex: %u\n", fhp->fsh_fsindex); in vxfs_dumpfsh()
31 fhp->fsh_iauino, fhp->fsh_ninodes); in vxfs_dumpfsh()
33 fhp->fsh_maxinode, fhp->fsh_lctino); in vxfs_dumpfsh()
34 printk("nau: %u\n", fhp->fsh_nau); in vxfs_dumpfsh()
36 fhp->fsh_ilistino[0], fhp->fsh_ilistino[1]); in vxfs_dumpfsh()
59 struct vxfs_fsh *fhp; in vxfs_getfsh() local
61 if (!(fhp = kmalloc_obj(*fhp))) in vxfs_getfsh()
63 memcpy(fhp, bp->b_data, sizeof(*fhp)); in vxfs_getfsh()
[all …]
/linux/drivers/media/usb/pvrusb2/
H A Dpvrusb2-v4l2.c888 struct pvr2_v4l2_fh *fhp = to_pvr2_v4l2_fh(file); in pvr2_v4l2_release() local
889 struct pvr2_v4l2 *vp = fhp->pdi->v4lp; in pvr2_v4l2_release()
890 struct pvr2_hdw *hdw = fhp->channel.mc_head->hdw; in pvr2_v4l2_release()
894 if (fhp->rhp) { in pvr2_v4l2_release()
897 sp = pvr2_ioread_get_stream(fhp->rhp); in pvr2_v4l2_release()
899 pvr2_ioread_destroy(fhp->rhp); in pvr2_v4l2_release()
900 fhp->rhp = NULL; in pvr2_v4l2_release()
903 v4l2_fh_del(&fhp->fh, file); in pvr2_v4l2_release()
904 v4l2_fh_exit(&fhp->fh); in pvr2_v4l2_release()
906 pvr2_channel_done(&fhp->channel); in pvr2_v4l2_release()
[all …]
/linux/tools/testing/selftests/bpf/
H A Dcgroup_helpers.c480 struct file_handle *fhp, *fhp2; in get_cgroup_id_from_path()
485 fhsize = sizeof(*fhp); in get_cgroup_id_from_path()
486 fhp = calloc(1, fhsize); in get_cgroup_id_from_path()
487 if (!fhp) { in get_cgroup_id_from_path()
491 err = name_to_handle_at(dirfd, cgroup_workdir, fhp, &mount_id, flags); in get_cgroup_id_from_path()
492 if (err >= 0 || fhp->handle_bytes != 8) { in get_cgroup_id_from_path()
497 fhsize = sizeof(struct file_handle) + fhp->handle_bytes;
498 fhp2 = realloc(fhp, fhsize); in get_cgroup_id()
504 fhp = fhp2; in get_cgroup_id()
510 memcpy(id.raw_bytes, fhp in cgroup_setup_and_join()
460 struct file_handle *fhp, *fhp2; get_cgroup_id_from_path() local
[all...]
/linux/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()
/linux/tools/testing/selftests/mm/
H A Dvm_util.c401 unsigned long fhp = 0; in get_free_hugepages() local
407 return fhp; in get_free_hugepages()
409 if (sscanf(line, "HugePages_Free: %lu", &fhp) == 1) in get_free_hugepages()
415 return fhp; in get_free_hugepages()
H A Dhugetlb-madvise.c29 int fhp = get_free_hugepages(); \
30 if (fhp != (exp_free)) { \
/linux/kernel/trace/
H A Dftrace.c6009 struct ftrace_hash *fhp = container_of(rhp, struct ftrace_hash, rcu); in register_ftrace_direct_cb() local
6011 free_ftrace_hash(fhp); in register_ftrace_direct_cb()