Home
last modified time | relevance | path

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

12

/linux-6.15/fs/nfsd/
H A Dnfsfh.c466 (fhp->fh_handle.fh_fsid + fhp->fh_handle.fh_size/4 - 1); in _fh_update()
467 int maxsize = (fhp->fh_maxsize - fhp->fh_handle.fh_size)/4; in _fh_update()
597 if (ref_fh == fhp) in fh_compose()
625 fh_put(fhp); in fh_compose()
650 _fh_update(fhp, fhp->fh_export, dentry); in fh_update()
674 if (fhp->fh_no_wcc || fhp->fh_pre_saved) in fh_fill_pre_attrs()
707 err = fh_getattr(fhp, &fhp->fh_post_attr); in fh_fill_post_attrs()
733 fhp->fh_pre_change = fhp->fh_post_change; in fh_fill_both_attrs()
734 fhp->fh_pre_mtime = fhp->fh_post_attr.mtime; in fh_fill_both_attrs()
735 fhp->fh_pre_ctime = fhp->fh_post_attr.ctime; in fh_fill_both_attrs()
[all …]
H A Dvfs.c249 dparent = fhp->fh_dentry; in nfsd_lookup_dentry()
424 fhp->fh_export, fhp->fh_dentry, in nfsd_get_write_access()
533 dentry = fhp->fh_dentry; in nfsd_setattr()
935 fh_put(fhp); in nfsd_open()
1180 exp = fhp->fh_export; in nfsd_vfs_write()
1563 err = fh_compose(resfhp, fhp->fh_export, dchild, fhp); in nfsd_create()
1673 cerr = fh_compose(resfhp, fhp->fh_export, dnew, fhp); in nfsd_symlink()
1684 fh_drop_write(fhp); in nfsd_symlink()
2045 fh_drop_write(fhp); in nfsd_unlink()
2494 fh_drop_write(fhp); in nfsd_removexattr()
[all …]
H A Dnfsfh.h131 extern enum fsid_source fsid_source(const struct svc_fh *fhp);
214 extern char * SVCFH_fmt(struct svc_fh *fhp);
243 fh_init(struct svc_fh *fhp, int maxsize) in fh_init() argument
245 memset(fhp, 0, sizeof(*fhp)); in fh_init()
246 fhp->fh_maxsize = maxsize; in fh_init()
247 return fhp; in fh_init()
289 fhp->fh_post_saved = false; in fh_clear_pre_post_attrs()
290 fhp->fh_pre_saved = false; in fh_clear_pre_post_attrs()
294 __be32 __must_check fh_fill_pre_attrs(struct svc_fh *fhp);
295 __be32 fh_fill_post_attrs(struct svc_fh *fhp);
[all …]
H A Dnfs3xdr.c93 fh_init(fhp, NFS3_FHSIZE); in svcxdr_decode_nfs_fh3()
94 fhp->fh_handle.fh_size = size; in svcxdr_decode_nfs_fh3()
125 u32 size = fhp->fh_handle.fh_size; in svcxdr_encode_nfs_fh3()
144 if (!svcxdr_encode_nfs_fh3(xdr, fhp)) in svcxdr_encode_post_op_fh3()
363 switch(fsid_source(fhp)) { in svcxdr_encode_fattr3()
404 if (!fhp->fh_pre_saved) { in svcxdr_encode_pre_op_attr()
427 const struct svc_fh *fhp) in svcxdr_encode_post_op_attr() argument
459 const struct svc_fh *fhp) in svcxdr_encode_wcc_data() argument
473 if (!svcxdr_encode_fattr3(rqstp, xdr, fhp, &fhp->fh_post_attr)) in svcxdr_encode_wcc_data()
1112 fh_init(fhp, NFS3_FHSIZE); in svcxdr_encode_entry3_plus()
[all …]
H A Dvfs.h99 __be32 nfsd_create_setattr(struct svc_rqst *rqstp, struct svc_fh *fhp,
101 __be32 nfsd_commit(struct svc_rqst *rqst, struct svc_fh *fhp,
105 __be32 nfsd_getxattr(struct svc_rqst *rqstp, struct svc_fh *fhp,
107 __be32 nfsd_listxattr(struct svc_rqst *rqstp, struct svc_fh *fhp,
109 __be32 nfsd_removexattr(struct svc_rqst *rqstp, struct svc_fh *fhp,
111 __be32 nfsd_setxattr(struct svc_rqst *rqstp, struct svc_fh *fhp,
117 int nfsd_open_verified(struct svc_fh *fhp, int may_flags,
119 __be32 nfsd_splice_read(struct svc_rqst *rqstp, struct svc_fh *fhp,
123 __be32 nfsd_iter_read(struct svc_rqst *rqstp, struct svc_fh *fhp,
128 __be32 nfsd_read(struct svc_rqst *rqstp, struct svc_fh *fhp,
[all …]
H A Dnfsxdr.c66 fh_init(fhp, NFS_FHSIZE); in svcxdr_decode_fhandle()
67 memcpy(&fhp->fh_handle.fh_raw, p, NFS_FHSIZE); in svcxdr_decode_fhandle()
68 fhp->fh_handle.fh_size = NFS_FHSIZE; in svcxdr_decode_fhandle()
81 memcpy(p, &fhp->fh_handle.fh_raw, NFS_FHSIZE); in svcxdr_encode_fhandle()
125 return svcxdr_decode_fhandle(xdr, fhp) && in svcxdr_decode_diropargs()
218 struct dentry *dentry = fhp->fh_dentry; in svcxdr_encode_fattr()
245 switch (fsid_source(fhp)) { in svcxdr_encode_fattr()
247 fsid = (u32)fhp->fh_export->ex_fsid; in svcxdr_encode_fattr()
250 fsid = ((u32 *)fhp->fh_export->ex_uuid)[0]; in svcxdr_encode_fattr()
251 fsid ^= ((u32 *)fhp->fh_export->ex_uuid)[1]; in svcxdr_encode_fattr()
[all …]
H A Dfilecache.h71 __be32 nfsd_file_acquire_gc(struct svc_rqst *rqstp, struct svc_fh *fhp,
73 __be32 nfsd_file_acquire(struct svc_rqst *rqstp, struct svc_fh *fhp,
75 __be32 nfsd_file_acquire_opened(struct svc_rqst *rqstp, struct svc_fh *fhp,
79 struct auth_domain *client, struct svc_fh *fhp,
H A Dflexfilelayout.c23 nfsd4_ff_proc_layoutget(struct inode *inode, const struct svc_fh *fhp, 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 Dfilecache.c1050 struct svc_fh *fhp, in nfsd_file_do_acquire() argument
1064 status = fh_verify(rqstp, fhp, S_IFREG, in nfsd_file_do_acquire()
1072 inode = d_inode(fhp->fh_dentry); in nfsd_file_do_acquire()
1120 fh_put(fhp); in nfsd_file_do_acquire()
1150 ret = nfsd_open_verified(fhp, may_flags, &nf->nf_file); in nfsd_file_do_acquire()
1159 fh_put(fhp); in nfsd_file_do_acquire()
1210 fhp, may_flags, NULL, pnf, true); in nfsd_file_acquire_gc()
1235 fhp, may_flags, NULL, pnf, false); in nfsd_file_acquire()
1267 struct auth_domain *client, struct svc_fh *fhp, in nfsd_file_acquire_local() argument
1279 fhp, may_flags, NULL, pnf, false); in nfsd_file_acquire_local()
[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 Dtrace.h212 const struct svc_fh *fhp,
250 const struct svc_fh *fhp,
276 if (fhp->fh_dentry)
294 struct svc_fh *fhp,
296 TP_ARGS(rqstp, fhp, status),
315 struct svc_fh *fhp, \
416 struct svc_fh *fhp,
440 struct svc_fh *fhp, \
457 struct svc_fh *fhp,
481 struct svc_fh *fhp, \
[all …]
H A Dpnfs.h32 __be32 (*proc_layoutget)(struct inode *, const struct svc_fh *fhp,
66 int nfsd4_set_deviceid(struct nfsd4_deviceid *id, const struct svc_fh *fhp,
H A Dnfs3proc.c256 nfsd3_create_file(struct svc_rqst *rqstp, struct svc_fh *fhp, in nfsd3_create_file() argument
274 status = fh_verify(rqstp, fhp, S_IFDIR, NFSD_MAY_EXEC); in nfsd3_create_file()
278 parent = fhp->fh_dentry; in nfsd3_create_file()
281 host_err = fh_want_write(fhp); in nfsd3_create_file()
294 status = fh_verify(rqstp, fhp, S_IFDIR, NFSD_MAY_CREATE); in nfsd3_create_file()
299 status = fh_compose(resfhp, fhp->fh_export, child, fhp); in nfsd3_create_file()
343 status = fh_fill_pre_attrs(fhp); in nfsd3_create_file()
351 fh_fill_post_attrs(fhp); in nfsd3_create_file()
366 status = nfsd_create_setattr(rqstp, fhp, resfhp, &attrs); in nfsd3_create_file()
372 fh_drop_write(fhp); in nfsd3_create_file()
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.c216 path.mnt = fhp->fh_export->ex_path.mnt; in nfsd4_vfs_create()
257 parent = fhp->fh_dentry; in nfsd4_create_file()
260 host_err = fh_want_write(fhp); in nfsd4_create_file()
281 status = fh_compose(resfhp, fhp->fh_export, child, fhp); in nfsd4_create_file()
306 status = fh_fill_both_attrs(fhp); in nfsd4_create_file()
351 status = fh_fill_pre_attrs(fhp); in nfsd4_create_file()
358 fh_fill_post_attrs(fhp); in nfsd4_create_file()
384 fh_drop_write(fhp); in nfsd4_create_file()
400 cinfo->atomic = (u32)(fhp->fh_pre_saved && fhp->fh_post_saved && !fhp->fh_no_atomic_attr); in set_change_info()
414 if (WARN_ON_ONCE(!fhp->fh_pre_saved)) in set_change_info()
[all …]
H A Dnfsproc.c83 struct svc_fh *fhp; in nfsd_proc_setattr() local
89 fhp = fh_copy(&resp->fh, &argp->fh); in nfsd_proc_setattr()
115 resp->status = fh_verify(rqstp, fhp, 0, NFSD_MAY_NOP); in nfsd_proc_setattr()
122 setattr_prepare(&nop_mnt_idmap, fhp->fh_dentry, iap) != 0) { in nfsd_proc_setattr()
132 resp->status = nfsd_setattr(rqstp, fhp, &attrs, NULL); in nfsd_proc_setattr()
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 Dblocklayout.c21 nfsd4_block_proc_layoutget(struct inode *inode, const struct svc_fh *fhp, in nfsd4_block_proc_layoutget() argument
96 error = nfsd4_set_deviceid(&bex->vol_id, fhp, device_generation); in nfsd4_block_proc_layoutget()
H A Dnfs4xdr.c2938 struct svc_fh *fhp; member
3076 switch (fsid_source(args->fhp)) { in nfsd4_encode_fattr4_fsid()
3569 struct svc_fh *fhp, struct svc_export *exp, in nfsd4_encode_fattr4() argument
3663 !fhp) { in nfsd4_encode_fattr4()
3672 args.fhp = tempfh; in nfsd4_encode_fattr4()
3674 args.fhp = fhp; in nfsd4_encode_fattr4()
3766 struct svc_fh *fhp, struct svc_export *exp, in nfsd4_encode_fattr_to_buf() argument
4094 struct svc_fh *fhp = getattr->ga_fhp; in nfsd4_encode_getattr() local
4098 return nfsd4_encode_fattr4(resp->rqstp, xdr, fhp, fhp->fh_export, in nfsd4_encode_getattr()
4099 fhp->fh_dentry, getattr->ga_bmval, 0); in nfsd4_encode_getattr()
[all …]
/linux-6.15/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-6.15/drivers/media/usb/pvrusb2/
H A Dpvrusb2-v4l2.c891 if (fhp->rhp) { in pvr2_v4l2_release()
897 fhp->rhp = NULL; in pvr2_v4l2_release()
911 kfree(fhp); in pvr2_v4l2_release()
945 fhp = kzalloc(sizeof(*fhp),GFP_KERNEL); in pvr2_v4l2_open()
946 if (!fhp) { in pvr2_v4l2_open()
952 fhp->pdi = dip; in pvr2_v4l2_open()
974 fhp); in pvr2_v4l2_open()
976 kfree(fhp); in pvr2_v4l2_open()
991 fhp); in pvr2_v4l2_open()
993 kfree(fhp); in pvr2_v4l2_open()
[all …]
/linux-6.15/tools/testing/selftests/bpf/
H A Dcgroup_helpers.c439 struct file_handle *fhp, *fhp2; in get_cgroup_id_from_path() local
444 fhsize = sizeof(*fhp); in get_cgroup_id_from_path()
445 fhp = calloc(1, fhsize); in get_cgroup_id_from_path()
446 if (!fhp) { in get_cgroup_id_from_path()
450 err = name_to_handle_at(dirfd, cgroup_workdir, fhp, &mount_id, flags); in get_cgroup_id_from_path()
451 if (err >= 0 || fhp->handle_bytes != 8) { in get_cgroup_id_from_path()
456 fhsize = sizeof(struct file_handle) + fhp->handle_bytes; in get_cgroup_id_from_path()
457 fhp2 = realloc(fhp, fhsize); in get_cgroup_id_from_path()
463 fhp = fhp2; in get_cgroup_id_from_path()
469 memcpy(id.raw_bytes, fhp->f_handle, 8); in get_cgroup_id_from_path()
[all …]
/linux-6.15/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-6.15/tools/testing/selftests/mm/
H A Dvm_util.c387 unsigned long fhp = 0; in get_free_hugepages() local
393 return fhp; in get_free_hugepages()
395 if (sscanf(line, "HugePages_Free: %lu", &fhp) == 1) in get_free_hugepages()
401 return fhp; in get_free_hugepages()
H A Dhugetlb-madvise.c29 int fhp = get_free_hugepages(); \
30 if (fhp != (exp_free)) { \

12