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 in nfsd_set_fh_dentry()
320 __fh_verify(struct svc_rqst * rqstp,struct net * net,struct svc_cred * cred,struct auth_domain * client,struct auth_domain * gssclient,struct svc_fh * fhp,umode_t type,int access) __fh_verify() argument
434 fh_verify_local(struct net * net,struct svc_cred * cred,struct auth_domain * client,struct svc_fh * fhp,umode_t type,int access) fh_verify_local() argument
469 fh_verify(struct svc_rqst * rqstp,struct svc_fh * fhp,umode_t type,int access) fh_verify() argument
483 _fh_update(struct svc_fh * fhp,struct svc_export * exp,struct dentry * dentry) _fh_update() argument
538 set_version_and_fsid_type(struct svc_fh * fhp,struct svc_export * exp,struct svc_fh * ref_fh) set_version_and_fsid_type() argument
593 fh_compose(struct svc_fh * fhp,struct svc_export * exp,struct dentry * dentry,struct svc_fh * ref_fh) fh_compose() argument
659 fh_update(struct svc_fh * fhp) fh_update() argument
693 fh_getattr(const struct svc_fh * fhp,struct kstat * stat) fh_getattr() argument
717 fh_fill_pre_attrs(struct svc_fh * fhp) fh_fill_pre_attrs() argument
745 fh_fill_post_attrs(struct svc_fh * fhp) fh_fill_post_attrs() argument
774 fh_fill_both_attrs(struct svc_fh * fhp) fh_fill_both_attrs() argument
794 fh_put(struct svc_fh * fhp) fh_put() argument
815 SVCFH_fmt(struct svc_fh * fhp) SVCFH_fmt() argument
826 fsid_source(const struct svc_fh * fhp) fsid_source() argument
[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()
298 * @fhp: the file handle of the directory
304 * N.B. After this call _both_ fhp and resfh need an fh_put
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) commit_metadata() argument
421 nfsd_get_write_access(struct svc_rqst * rqstp,struct svc_fh * fhp,struct iattr * iap) nfsd_get_write_access() argument
502 nfsd_setattr(struct svc_rqst * rqstp,struct svc_fh * fhp,struct nfsd_attrs * attr,const struct timespec64 * guardtime) nfsd_setattr() argument
751 nfsd4_vfs_fallocate(struct svc_rqst * rqstp,struct svc_fh * fhp,struct file * file,loff_t offset,loff_t len,int flags) nfsd4_vfs_fallocate() argument
823 nfsd_access(struct svc_rqst * rqstp,struct svc_fh * fhp,u32 * access,u32 * supported) nfsd_access() argument
898 __nfsd_open(struct svc_fh * fhp,umode_t type,int may_flags,struct file ** filp) __nfsd_open() argument
945 nfsd_open(struct svc_rqst * rqstp,struct svc_fh * fhp,umode_t type,int may_flags,struct file ** filp) nfsd_open() argument
989 nfsd_open_verified(struct svc_fh * fhp,umode_t type,int may_flags,struct file ** filp) nfsd_open_verified() argument
1047 nfsd_finish_read(struct svc_rqst * rqstp,struct svc_fh * fhp,struct file * file,loff_t offset,unsigned long * count,u32 * eof,ssize_t host_err) nfsd_finish_read() argument
1078 nfsd_splice_read(struct svc_rqst * rqstp,struct svc_fh * fhp,struct file * file,loff_t offset,unsigned long * count,u32 * eof) nfsd_splice_read() argument
1112 nfsd_direct_read(struct svc_rqst * rqstp,struct svc_fh * fhp,struct nfsd_file * nf,loff_t offset,unsigned long * count,u32 * eof) nfsd_direct_read() argument
1191 nfsd_iter_read(struct svc_rqst * rqstp,struct svc_fh * fhp,struct nfsd_file * nf,loff_t offset,unsigned long * count,unsigned int base,u32 * eof) nfsd_iter_read() argument
1368 nfsd_direct_write(struct svc_rqst * rqstp,struct svc_fh * fhp,struct nfsd_file * nf,unsigned int nvecs,unsigned long * cnt,struct kiocb * kiocb) nfsd_direct_write() argument
1425 nfsd_vfs_write(struct svc_rqst * rqstp,struct svc_fh * fhp,struct nfsd_file * nf,loff_t offset,const struct xdr_buf * payload,unsigned long * cnt,int stable,__be32 * verf) nfsd_vfs_write() argument
1575 nfsd_read(struct svc_rqst * rqstp,struct svc_fh * fhp,loff_t offset,unsigned long * count,u32 * eof) nfsd_read() argument
1614 nfsd_write(struct svc_rqst * rqstp,struct svc_fh * fhp,loff_t offset,const struct xdr_buf * payload,unsigned long * cnt,int stable,__be32 * verf) nfsd_write() argument
1656 nfsd_commit(struct svc_rqst * rqstp,struct svc_fh * fhp,struct nfsd_file * nf,u64 offset,u32 count,__be32 * verf) nfsd_commit() argument
1718 nfsd_create_setattr(struct svc_rqst * rqstp,struct svc_fh * fhp,struct svc_fh * resfhp,struct nfsd_attrs * attrs) nfsd_create_setattr() argument
1780 nfsd_create_locked(struct svc_rqst * rqstp,struct svc_fh * fhp,struct nfsd_attrs * attrs,int type,dev_t rdev,struct svc_fh * resfhp) nfsd_create_locked() argument
1860 nfsd_create(struct svc_rqst * rqstp,struct svc_fh * fhp,char * fname,int flen,struct nfsd_attrs * attrs,int type,dev_t rdev,struct svc_fh * resfhp) nfsd_create() argument
1910 nfsd_readlink(struct svc_rqst * rqstp,struct svc_fh * fhp,char * buf,int * lenp) nfsd_readlink() argument
1957 nfsd_symlink(struct svc_rqst * rqstp,struct svc_fh * fhp,char * fname,int flen,char * path,struct nfsd_attrs * attrs,struct svc_fh * resfhp) nfsd_symlink() argument
2270 nfsd_unlink(struct svc_rqst * rqstp,struct svc_fh * fhp,int type,char * fname,int flen) nfsd_unlink() argument
2400 nfsd_buffered_readdir(struct file * file,struct svc_fh * fhp,nfsd_filldir_t func,struct readdir_cd * cdp,loff_t * offsetp) nfsd_buffered_readdir() argument
2489 nfsd_readdir(struct svc_rqst * rqstp,struct svc_fh * fhp,loff_t * offsetp,struct readdir_cd * cdp,nfsd_filldir_t func) nfsd_readdir() argument
2559 nfsd_statfs(struct svc_rqst * rqstp,struct svc_fh * fhp,struct kstatfs * stat,int access) nfsd_statfs() argument
2624 nfsd_getxattr(struct svc_rqst * rqstp,struct svc_fh * fhp,char * name,void ** bufp,int * lenp) nfsd_getxattr() argument
2697 nfsd_listxattr(struct svc_rqst * rqstp,struct svc_fh * fhp,char ** bufp,int * lenp) nfsd_listxattr() argument
2762 nfsd_removexattr(struct svc_rqst * rqstp,struct svc_fh * fhp,char * name) nfsd_removexattr() argument
2791 nfsd_setxattr(struct svc_rqst * rqstp,struct svc_fh * fhp,char * name,void * buf,u32 len,u32 flags) nfsd_setxattr() argument
[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.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()
5306 * for the same inode/fhp pair twice.
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 in nfs4_check_fh()
7310 nfs4_check_file(struct svc_rqst * rqstp,struct svc_fh * fhp,struct nfs4_stid * s,struct nfsd_file ** nfp,int flags) nfs4_check_file() argument
7438 nfs4_preprocess_stateid_op(struct svc_rqst * rqstp,struct nfsd4_compound_state * cstate,struct svc_fh * fhp,stateid_t * stateid,int flags,struct nfsd_file ** nfp,struct nfs4_stid ** cstid) nfs4_preprocess_stateid_op() argument
8532 nfsd_test_lock(struct svc_rqst * rqstp,struct svc_fh * fhp,struct file_lock * lock) nfsd_test_lock() argument
[all...]
H A Dstate.h793 struct nfsd4_compound_state *cstate, struct svc_fh *fhp,
H A Dexport.c1341 exp_pseudoroot(struct svc_rqst *rqstp, struct svc_fh *fhp) in exp_pseudoroot() argument
1349 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() local
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; in get_cgroup_id_from_path()
498 fhp2 = realloc(fhp, fhsize); in get_cgroup_id_from_path()
504 fhp = fhp2; in get_cgroup_id_from_path()
510 memcpy(id.raw_bytes, fhp->f_handle, 8); in get_cgroup_id_from_path()
[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()