| /linux/fs/nfsd/ |
| A D | nfsfh.c | 465 (fhp->fh_handle.fh_fsid + fhp->fh_handle.fh_size/4 - 1); in _fh_update() 466 int maxsize = (fhp->fh_maxsize - fhp->fh_handle.fh_size)/4; in _fh_update() 596 if (ref_fh == fhp) in fh_compose() 624 fh_put(fhp); in fh_compose() 649 _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() 709 err = fh_getattr(fhp, &fhp->fh_post_attr); in fh_fill_post_attrs() 735 fhp->fh_pre_change = fhp->fh_post_change; in fh_fill_both_attrs() 736 fhp->fh_pre_mtime = fhp->fh_post_attr.mtime; in fh_fill_both_attrs() 737 fhp->fh_pre_ctime = fhp->fh_post_attr.ctime; in fh_fill_both_attrs() [all …]
|
| A D | vfs.c | 251 dparent = fhp->fh_dentry; in nfsd_lookup_dentry() 426 fhp->fh_export, fhp->fh_dentry, in nfsd_get_write_access() 535 dentry = fhp->fh_dentry; in nfsd_setattr() 938 fh_put(fhp); in nfsd_open() 1185 exp = fhp->fh_export; in nfsd_vfs_write() 1580 err = fh_compose(resfhp, fhp->fh_export, dchild, fhp); in nfsd_create() 1690 cerr = fh_compose(resfhp, fhp->fh_export, dnew, fhp); in nfsd_symlink() 1701 fh_drop_write(fhp); in nfsd_symlink() 2011 fh_drop_write(fhp); in nfsd_unlink() 2458 fh_drop_write(fhp); in nfsd_removexattr() [all …]
|
| A D | nfsfh.h | 131 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() 296 fhp->fh_post_saved = false; in fh_clear_pre_post_attrs() 297 fhp->fh_pre_saved = false; in fh_clear_pre_post_attrs() 302 __be32 __must_check fh_fill_pre_attrs(struct svc_fh *fhp); 303 __be32 fh_fill_post_attrs(struct svc_fh *fhp); [all …]
|
| A D | nfs3xdr.c | 93 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 …]
|
| A D | vfs.h | 99 __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_rqst *rqstp, struct svc_fh *fhp, 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 …]
|
| A D | nfsxdr.c | 66 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 …]
|
| A D | filecache.h | 64 __be32 nfsd_file_acquire_gc(struct svc_rqst *rqstp, struct svc_fh *fhp, 66 __be32 nfsd_file_acquire(struct svc_rqst *rqstp, struct svc_fh *fhp, 68 __be32 nfsd_file_acquire_opened(struct svc_rqst *rqstp, struct svc_fh *fhp, 72 struct auth_domain *client, struct svc_fh *fhp,
|
| A D | flexfilelayout.c | 23 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()
|
| A D | filecache.c | 1018 struct svc_fh *fhp, in nfsd_file_do_acquire() argument 1032 status = fh_verify(rqstp, fhp, S_IFREG, in nfsd_file_do_acquire() 1040 inode = d_inode(fhp->fh_dentry); in nfsd_file_do_acquire() 1096 fh_put(fhp); in nfsd_file_do_acquire() 1126 ret = nfsd_open_verified(rqstp, fhp, may_flags, in nfsd_file_do_acquire() 1136 fh_put(fhp); in nfsd_file_do_acquire() 1184 fhp, may_flags, NULL, pnf, true); in nfsd_file_acquire_gc() 1209 fhp, may_flags, NULL, pnf, false); in nfsd_file_acquire() 1242 struct auth_domain *client, struct svc_fh *fhp, in nfsd_file_acquire_local() argument 1254 fhp, may_flags, NULL, pnf, true); in nfsd_file_acquire_local() [all …]
|
| A D | nfs4layouts.c | 56 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()
|
| A D | trace.h | 200 const struct svc_fh *fhp, 238 const struct svc_fh *fhp, 264 if (fhp->fh_dentry) 282 struct svc_fh *fhp, 284 TP_ARGS(rqstp, fhp, status), 303 struct svc_fh *fhp, \ 404 struct svc_fh *fhp, 428 struct svc_fh *fhp, \ 445 struct svc_fh *fhp, 469 struct svc_fh *fhp, \ [all …]
|
| A D | pnfs.h | 32 __be32 (*proc_layoutget)(struct inode *, const struct svc_fh *fhp, 66 int nfsd4_set_deviceid(struct nfsd4_deviceid *id, const struct svc_fh *fhp,
|
| A D | nfs3proc.c | 256 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()
|
| A D | xdr.h | 172 bool svcxdr_decode_fhandle(struct xdr_stream *xdr, struct svc_fh *fhp); 175 const struct svc_fh *fhp, const struct kstat *stat);
|
| A D | nfs4proc.c | 214 path.mnt = fhp->fh_export->ex_path.mnt; in nfsd4_vfs_create() 255 parent = fhp->fh_dentry; in nfsd4_create_file() 258 host_err = fh_want_write(fhp); in nfsd4_create_file() 279 status = fh_compose(resfhp, fhp->fh_export, child, fhp); in nfsd4_create_file() 304 status = fh_fill_both_attrs(fhp); in nfsd4_create_file() 349 status = fh_fill_pre_attrs(fhp); in nfsd4_create_file() 356 fh_fill_post_attrs(fhp); in nfsd4_create_file() 382 fh_drop_write(fhp); in nfsd4_create_file() 398 cinfo->atomic = (u32)(fhp->fh_pre_saved && fhp->fh_post_saved && !fhp->fh_no_atomic_attr); in set_change_info() 412 if (WARN_ON_ONCE(!fhp->fh_pre_saved)) in set_change_info() [all …]
|
| A D | nfsproc.c | 83 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()
|
| A D | xdr3.h | 309 bool svcxdr_decode_nfs_fh3(struct xdr_stream *xdr, struct svc_fh *fhp); 312 const struct svc_fh *fhp);
|
| A D | blocklayout.c | 21 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()
|
| A D | nfs4xdr.c | 2925 struct svc_fh *fhp; member 3067 switch (fsid_source(args->fhp)) { in nfsd4_encode_fattr4_fsid() 3510 struct svc_fh *fhp, struct svc_export *exp, in nfsd4_encode_fattr4() argument 3588 !fhp) { in nfsd4_encode_fattr4() 3597 args.fhp = tempfh; in nfsd4_encode_fattr4() 3599 args.fhp = fhp; in nfsd4_encode_fattr4() 3691 struct svc_fh *fhp, struct svc_export *exp, in nfsd4_encode_fattr_to_buf() argument 4019 struct svc_fh *fhp = getattr->ga_fhp; in nfsd4_encode_getattr() local 4023 return nfsd4_encode_fattr4(resp->rqstp, xdr, fhp, fhp->fh_export, in nfsd4_encode_getattr() 4024 fhp->fh_dentry, getattr->ga_bmval, 0); in nfsd4_encode_getattr() [all …]
|
| /linux/fs/freevxfs/ |
| A D | vxfs_fshead.c | 24 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/drivers/media/usb/pvrusb2/ |
| A D | pvrusb2-v4l2.c | 915 if (fhp->rhp) { in pvr2_v4l2_release() 921 fhp->rhp = NULL; in pvr2_v4l2_release() 935 kfree(fhp); in pvr2_v4l2_release() 969 fhp = kzalloc(sizeof(*fhp),GFP_KERNEL); in pvr2_v4l2_open() 970 if (!fhp) { in pvr2_v4l2_open() 976 fhp->pdi = dip; in pvr2_v4l2_open() 998 fhp); in pvr2_v4l2_open() 1000 kfree(fhp); in pvr2_v4l2_open() 1015 fhp); in pvr2_v4l2_open() 1017 kfree(fhp); in pvr2_v4l2_open() [all …]
|
| /linux/tools/testing/selftests/bpf/ |
| A D | cgroup_helpers.c | 439 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/fs/lockd/ |
| A D | svcsubs.c | 38 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/ |
| A D | vm_util.c | 371 unsigned long fhp = 0; in get_free_hugepages() local 377 return fhp; in get_free_hugepages() 379 if (sscanf(line, "HugePages_Free: %lu", &fhp) == 1) in get_free_hugepages() 385 return fhp; in get_free_hugepages()
|
| A D | hugetlb-madvise.c | 29 int fhp = get_free_hugepages(); \ 30 if (fhp != (exp_free)) { \
|