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()
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 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()
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()
305 status = fh_fill_both_attrs(fhp); in nfsd4_create_file()
350 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 Dnfs4state.c5275 nfsd4_file_hash_lookup(const struct svc_fh *fhp) in nfsd4_file_hash_lookup() argument
5277 struct inode *inode = d_inode(fhp->fh_dentry); in nfsd4_file_hash_lookup()
5285 if (fh_match(&fi->fi_fhandle, &fhp->fh_handle)) { in nfsd4_file_hash_lookup()
5305 nfsd4_file_hash_insert(struct nfs4_file *new, const struct svc_fh *fhp) in nfsd4_file_hash_insert() argument
5307 struct inode *inode = d_inode(fhp->fh_dentry); in nfsd4_file_hash_insert()
5320 if (fh_match(&fi->fi_fhandle, &fhp->fh_handle)) { in nfsd4_file_hash_insert()
5329 nfsd4_file_init(fhp, new); in nfsd4_file_hash_insert()
7043 static inline __be32 nfs4_check_fh(struct svc_fh *fhp, struct nfs4_stid *stp) in nfs4_check_fh() argument
7045 if (!fh_match(&fhp->fh_handle, &stp->sc_file->fi_fhandle)) in nfs4_check_fh()
7257 nfs4_check_file(struct svc_rqst *rqstp, struct svc_fh *fhp, struct nfs4_stid *s, in nfs4_check_file() 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