/linux-6.3-rc2/fs/nfsd/ |
A D | nfsfh.c | 415 (fhp->fh_handle.fh_fsid + fhp->fh_handle.fh_size/4 - 1); in _fh_update() 416 int maxsize = (fhp->fh_maxsize - fhp->fh_handle.fh_size)/4; in _fh_update() 543 if (ref_fh == fhp) in fh_compose() 571 fh_put(fhp); in fh_compose() 596 _fh_update(fhp, fhp->fh_export, dentry); in fh_update() 621 if (fhp->fh_no_wcc || fhp->fh_pre_saved) in fh_fill_pre_attrs() 662 err = fh_getattr(fhp, &fhp->fh_post_attr); in fh_fill_post_attrs() 689 fhp->fh_pre_change = fhp->fh_post_change; in fh_fill_both_attrs() 690 fhp->fh_pre_mtime = fhp->fh_post_attr.mtime; in fh_fill_both_attrs() 691 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() 405 err = nfsd_permission(rqstp, fhp->fh_export, fhp->fh_dentry, in nfsd_get_write_access() 516 dentry = fhp->fh_dentry; in nfsd_setattr() 900 fh_put(fhp); in nfsd_open() 1094 exp = fhp->fh_export; in nfsd_vfs_write() 1463 err = fh_compose(resfhp, fhp->fh_export, dchild, fhp); in nfsd_create() 1569 cerr = fh_compose(resfhp, fhp->fh_export, dnew, fhp); in nfsd_symlink() 1579 fh_drop_write(fhp); in nfsd_symlink() 1878 fh_drop_write(fhp); in nfsd_unlink() 2282 fh_drop_write(fhp); in nfsd_removexattr() [all …]
|
A D | nfsfh.h | 129 extern enum fsid_source fsid_source(const struct svc_fh *fhp); 212 extern char * SVCFH_fmt(struct svc_fh *fhp); 239 fh_init(struct svc_fh *fhp, int maxsize) in fh_init() argument 241 memset(fhp, 0, sizeof(*fhp)); in fh_init() 242 fhp->fh_maxsize = maxsize; in fh_init() 243 return fhp; in fh_init() 292 fhp->fh_post_saved = false; in fh_clear_pre_post_attrs() 293 fhp->fh_pre_saved = false; in fh_clear_pre_post_attrs() 297 extern void fh_fill_pre_attrs(struct svc_fh *fhp); 298 extern void 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() 366 switch(fsid_source(fhp)) { in svcxdr_encode_fattr3() 407 if (!fhp->fh_pre_saved) { in svcxdr_encode_pre_op_attr() 430 const struct svc_fh *fhp) in svcxdr_encode_post_op_attr() argument 462 const struct svc_fh *fhp) in svcxdr_encode_wcc_data() argument 476 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 | 89 __be32 nfsd_create_setattr(struct svc_rqst *rqstp, struct svc_fh *fhp, 91 __be32 nfsd_commit(struct svc_rqst *rqst, struct svc_fh *fhp, 95 __be32 nfsd_getxattr(struct svc_rqst *rqstp, struct svc_fh *fhp, 97 __be32 nfsd_listxattr(struct svc_rqst *rqstp, struct svc_fh *fhp, 99 __be32 nfsd_removexattr(struct svc_rqst *rqstp, struct svc_fh *fhp, 101 __be32 nfsd_setxattr(struct svc_rqst *rqstp, struct svc_fh *fhp, 109 __be32 nfsd_splice_read(struct svc_rqst *rqstp, struct svc_fh *fhp, 113 __be32 nfsd_readv(struct svc_rqst *rqstp, struct svc_fh *fhp, 124 __be32 nfsd_vfs_write(struct svc_rqst *rqstp, struct svc_fh *fhp,
|
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 | 59 __be32 nfsd_file_acquire_gc(struct svc_rqst *rqstp, struct svc_fh *fhp, 61 __be32 nfsd_file_acquire(struct svc_rqst *rqstp, struct svc_fh *fhp, 63 __be32 nfsd_file_acquire_opened(struct svc_rqst *rqstp, 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 | trace.h | 197 const struct svc_fh *fhp, 234 const struct svc_fh *fhp, 260 if (fhp->fh_dentry) 278 struct svc_fh *fhp, 280 TP_ARGS(rqstp, fhp, status), 299 struct svc_fh *fhp, \ 399 struct svc_fh *fhp, 423 struct svc_fh *fhp, \ 440 struct svc_fh *fhp, 464 struct svc_fh *fhp, \ [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 | filecache.c | 1063 nfsd_file_do_acquire(struct svc_rqst *rqstp, struct svc_fh *fhp, in nfsd_file_do_acquire() argument 1078 status = fh_verify(rqstp, fhp, S_IFREG, in nfsd_file_do_acquire() 1082 key.inode = d_inode(fhp->fh_dentry); in nfsd_file_do_acquire() 1163 status = nfsd_open_verified(rqstp, fhp, may_flags, in nfsd_file_do_acquire() 1199 nfsd_file_acquire_gc(struct svc_rqst *rqstp, struct svc_fh *fhp, in nfsd_file_acquire_gc() argument 1202 return nfsd_file_do_acquire(rqstp, fhp, may_flags, NULL, pnf, true); in nfsd_file_acquire_gc() 1220 nfsd_file_acquire(struct svc_rqst *rqstp, struct svc_fh *fhp, in nfsd_file_acquire() argument 1223 return nfsd_file_do_acquire(rqstp, fhp, may_flags, NULL, pnf, false); in nfsd_file_acquire() 1242 nfsd_file_acquire_opened(struct svc_rqst *rqstp, struct svc_fh *fhp, in nfsd_file_acquire_opened() argument 1246 return nfsd_file_do_acquire(rqstp, fhp, may_flags, file, pnf, false); in nfsd_file_acquire_opened()
|
A D | pnfs.h | 32 __be32 (*proc_layoutget)(struct inode *, const struct svc_fh *fhp, 65 int nfsd4_set_deviceid(struct nfsd4_deviceid *id, const struct svc_fh *fhp,
|
A D | nfs3proc.c | 235 nfsd3_create_file(struct svc_rqst *rqstp, struct svc_fh *fhp, in nfsd3_create_file() argument 253 status = fh_verify(rqstp, fhp, S_IFDIR, NFSD_MAY_EXEC); in nfsd3_create_file() 257 parent = fhp->fh_dentry; in nfsd3_create_file() 260 host_err = fh_want_write(fhp); in nfsd3_create_file() 273 status = fh_verify(rqstp, fhp, S_IFDIR, NFSD_MAY_CREATE); in nfsd3_create_file() 278 status = fh_compose(resfhp, fhp->fh_export, child, fhp); in nfsd3_create_file() 322 fh_fill_pre_attrs(fhp); in nfsd3_create_file() 328 fh_fill_post_attrs(fhp); in nfsd3_create_file() 343 status = nfsd_create_setattr(rqstp, fhp, resfhp, &attrs); in nfsd3_create_file() 349 fh_drop_write(fhp); in nfsd3_create_file()
|
A D | xdr4.h | 778 set_change_info(struct nfsd4_change_info *cinfo, struct svc_fh *fhp) in set_change_info() argument 780 BUG_ON(!fhp->fh_pre_saved); in set_change_info() 781 cinfo->atomic = (u32)(fhp->fh_post_saved && !fhp->fh_no_atomic_attr); in set_change_info() 783 cinfo->before_change = fhp->fh_pre_change; in set_change_info() 784 cinfo->after_change = fhp->fh_post_change; in set_change_info() 795 struct svc_fh *fhp, struct svc_export *exp,
|
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 | nfsproc.c | 57 struct svc_fh *fhp; in nfsd_proc_setattr() local 63 fhp = fh_copy(&resp->fh, &argp->fh); in nfsd_proc_setattr() 89 resp->status = fh_verify(rqstp, fhp, 0, NFSD_MAY_NOP); in nfsd_proc_setattr() 96 setattr_prepare(&nop_mnt_idmap, fhp->fh_dentry, iap) != 0) { in nfsd_proc_setattr() 106 resp->status = nfsd_setattr(rqstp, fhp, &attrs, 0, (time64_t)0); 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 | nfs4proc.c | 194 nfsd4_vfs_create(struct svc_fh *fhp, struct dentry *child, in nfsd4_vfs_create() argument 213 path.mnt = fhp->fh_export->ex_path.mnt; in nfsd4_vfs_create() 251 status = fh_verify(rqstp, fhp, S_IFDIR, NFSD_MAY_EXEC); in nfsd4_create_file() 254 parent = fhp->fh_dentry; in nfsd4_create_file() 257 host_err = fh_want_write(fhp); in nfsd4_create_file() 278 status = fh_compose(resfhp, fhp->fh_export, child, fhp); in nfsd4_create_file() 305 fh_fill_both_attrs(fhp); in nfsd4_create_file() 348 fh_fill_pre_attrs(fhp); in nfsd4_create_file() 349 status = nfsd4_vfs_create(fhp, child, open); in nfsd4_create_file() 353 fh_fill_post_attrs(fhp); in nfsd4_create_file() [all …]
|
A D | nfs4xdr.c | 2993 fhp = tempfh; in nfsd4_encode_fattr() 3117 } else switch(fsid_source(fhp)) { in nfsd4_encode_fattr() 3214 p = xdr_reserve_space(xdr, fhp->fh_handle.fh_size + 4); in nfsd4_encode_fattr() 3217 p = xdr_encode_opaque(p, &fhp->fh_handle.fh_raw, in nfsd4_encode_fattr() 3218 fhp->fh_handle.fh_size); in nfsd4_encode_fattr() 3492 struct svc_fh *fhp, struct svc_export *exp, in nfsd4_encode_fattr_to_buf() argument 3786 struct svc_fh *fhp = getattr->ga_fhp; in nfsd4_encode_getattr() local 3789 return nfsd4_encode_fattr(xdr, fhp, fhp->fh_export, fhp->fh_dentry, in nfsd4_encode_getattr() 3799 struct svc_fh *fhp = *fhpp; in nfsd4_encode_getfh() local 3803 len = fhp->fh_handle.fh_size; in nfsd4_encode_getfh() [all …]
|
/linux-6.3-rc2/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-6.3-rc2/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-6.3-rc2/tools/testing/selftests/bpf/ |
A D | cgroup_helpers.c | 401 struct file_handle *fhp, *fhp2; in get_cgroup_id() local 408 fhsize = sizeof(*fhp); in get_cgroup_id() 409 fhp = calloc(1, fhsize); in get_cgroup_id() 410 if (!fhp) { in get_cgroup_id() 414 err = name_to_handle_at(dirfd, cgroup_workdir, fhp, &mount_id, flags); in get_cgroup_id() 415 if (err >= 0 || fhp->handle_bytes != 8) { in get_cgroup_id() 420 fhsize = sizeof(struct file_handle) + fhp->handle_bytes; in get_cgroup_id() 421 fhp2 = realloc(fhp, fhsize); in get_cgroup_id() 427 fhp = fhp2; in get_cgroup_id() 433 memcpy(id.raw_bytes, fhp->f_handle, 8); in get_cgroup_id() [all …]
|
/linux-6.3-rc2/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-6.3-rc2/tools/testing/selftests/mm/ |
A D | hugetlb-madvise.c | 27 int fhp = get_free_hugepages(); \ 28 if (fhp != (exp_free)) { \ 64 unsigned long fhp = 0; in get_free_hugepages() local 70 return fhp; in get_free_hugepages() 72 if (sscanf(line, "HugePages_Free: %lu", &fhp) == 1) in get_free_hugepages() 78 return fhp; in get_free_hugepages()
|