Home
last modified time | relevance | path

Searched refs:fhp (Results 1 – 19 of 19) 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()
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
731 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
803 nfsd_access(struct svc_rqst * rqstp,struct svc_fh * fhp,u32 * access,u32 * supported) nfsd_access() argument
878 __nfsd_open(struct svc_fh * fhp,umode_t type,int may_flags,struct file ** filp) __nfsd_open() argument
925 nfsd_open(struct svc_rqst * rqstp,struct svc_fh * fhp,umode_t type,int may_flags,struct file ** filp) nfsd_open() argument
969 nfsd_open_verified(struct svc_fh * fhp,umode_t type,int may_flags,struct file ** filp) nfsd_open_verified() argument
1027 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
1058 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
1092 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
1171 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
1348 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
1405 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
1555 nfsd_read(struct svc_rqst * rqstp,struct svc_fh * fhp,loff_t offset,unsigned long * count,u32 * eof) nfsd_read() argument
1594 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
1636 nfsd_commit(struct svc_rqst * rqstp,struct svc_fh * fhp,struct nfsd_file * nf,u64 offset,u32 count,__be32 * verf) nfsd_commit() argument
1698 nfsd_create_setattr(struct svc_rqst * rqstp,struct svc_fh * fhp,struct svc_fh * resfhp,struct nfsd_attrs * attrs) nfsd_create_setattr() argument
1760 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
1840 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
1890 nfsd_readlink(struct svc_rqst * rqstp,struct svc_fh * fhp,char * buf,int * lenp) nfsd_readlink() argument
1937 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
2250 nfsd_unlink(struct svc_rqst * rqstp,struct svc_fh * fhp,int type,char * fname,int flen) nfsd_unlink() argument
2380 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
2469 nfsd_readdir(struct svc_rqst * rqstp,struct svc_fh * fhp,loff_t * offsetp,struct readdir_cd * cdp,nfsd_filldir_t func) nfsd_readdir() argument
2539 nfsd_statfs(struct svc_rqst * rqstp,struct svc_fh * fhp,struct kstatfs * stat,int access) nfsd_statfs() argument
2604 nfsd_getxattr(struct svc_rqst * rqstp,struct svc_fh * fhp,char * name,void ** bufp,int * lenp) nfsd_getxattr() argument
2677 nfsd_listxattr(struct svc_rqst * rqstp,struct svc_fh * fhp,char ** bufp,int * lenp) nfsd_listxattr() argument
2742 nfsd_removexattr(struct svc_rqst * rqstp,struct svc_fh * fhp,char * name) nfsd_removexattr() argument
2771 nfsd_setxattr(struct svc_rqst * rqstp,struct svc_fh * fhp,char * name,void * buf,u32 len,u32 flags) nfsd_setxattr() argument
[all...]
H A Dtrace.h231 const struct svc_fh *fhp,
235 TP_ARGS(rqstp, fhp, type, access),
254 __entry->fh_hash = knfsd_fh_hash(&fhp->fh_handle);
255 __entry->inode = d_inode(fhp->fh_dentry);
269 const struct svc_fh *fhp,
274 TP_ARGS(rqstp, fhp, type, access, error),
294 __entry->fh_hash = knfsd_fh_hash(&fhp->fh_handle);
295 if (fhp->fh_dentry)
296 __entry->inode = d_inode(fhp->fh_dentry);
313 struct svc_fh *fhp,
[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.c197 nfsd4_vfs_create(struct svc_fh *fhp, struct dentry *child, in nfsd4_vfs_create() argument
216 path.mnt = fhp->fh_export->ex_path.mnt; in nfsd4_vfs_create()
232 * Upon return, caller must release @fhp and @resfhp.
235 nfsd4_create_file(struct svc_rqst *rqstp, struct svc_fh *fhp, in nfsd4_create_file() argument
254 status = fh_verify(rqstp, fhp, S_IFDIR, NFSD_MAY_EXEC); in nfsd4_create_file()
257 parent = fhp->fh_dentry; in nfsd4_create_file()
260 host_err = fh_want_write(fhp); in nfsd4_create_file()
275 status = fh_verify(rqstp, fhp, S_IFDIR, NFSD_MAY_CREATE); in nfsd4_create_file()
280 status = fh_compose(resfhp, fhp->fh_export, child, fhp); in nfsd4_create_file()
396 set_change_info(struct nfsd4_change_info * cinfo,struct svc_fh * fhp) set_change_info() argument
[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 Dnfs4state.c5274 nfsd4_file_hash_lookup(const struct svc_fh *fhp)
5276 struct inode *inode = d_inode(fhp->fh_dentry); in nfsd4_file_hash_lookup()
5284 if (fh_match(&fi->fi_fhandle, &fhp->fh_handle)) { in nfsd4_file_hash_lookup()
5301 * for the same inode/fhp pair twice.
5304 nfsd4_file_hash_insert(struct nfs4_file *new, const struct svc_fh *fhp)
5306 struct inode *inode = d_inode(fhp->fh_dentry); in nfsd4_file_hash_insert()
5319 if (fh_match(&fi->fi_fhandle, &fhp->fh_handle)) { in nfsd4_file_hash_insert()
5328 nfsd4_file_init(fhp, new); in nfsd4_file_hash_insert()
7071 static inline __be32 nfs4_check_fh(struct svc_fh *fhp, struct nfs4_stid *stp) in check_special_stateids()
7073 if (!fh_match(&fhp in check_special_stateids()
5275 nfsd4_file_hash_lookup(const struct svc_fh * fhp) nfsd4_file_hash_lookup() argument
5305 nfsd4_file_hash_insert(struct nfs4_file * new,const struct svc_fh * fhp) nfsd4_file_hash_insert() argument
7043 nfs4_check_fh(struct svc_fh * fhp,struct nfs4_stid * stp) nfs4_check_fh() argument
7257 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
7385 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
8479 nfsd_test_lock(struct svc_rqst * rqstp,struct svc_fh * fhp,struct file_lock * lock) nfsd_test_lock() argument
[all...]
H A Dxdr4.h948 struct svc_fh *fhp, struct svc_export *exp,
/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(sizeof(*fhp), GFP_KERNEL))) in vxfs_getfsh()
63 memcpy(fhp, bp->b_data, sizeof(*fhp)); in vxfs_getfsh()
[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.c5994 struct ftrace_hash *fhp = container_of(rhp, struct ftrace_hash, rcu); in register_ftrace_direct_cb()
5996 free_ftrace_hash(fhp); in reset_direct()
5991 struct ftrace_hash *fhp = container_of(rhp, struct ftrace_hash, rcu); register_ftrace_direct_cb() local