/linux/fs/nfsd/ |
A D | nfsfh.c | 279 fhp->fh_export = exp; in nfsd_set_fh_dentry() 420 (fhp->fh_handle.fh_fsid + fhp->fh_handle.fh_size/4 - 1); in _fh_update() 421 int maxsize = (fhp->fh_maxsize - fhp->fh_handle.fh_size)/4; in _fh_update() 548 if (ref_fh == fhp) in fh_compose() 551 if (fhp->fh_locked || fhp->fh_dentry) { in fh_compose() 576 fh_put(fhp); in fh_compose() 592 if (!fhp->fh_dentry) in fh_update() 601 _fh_update(fhp, fhp->fh_export, dentry); in fh_update() 623 fh_unlock(fhp); in fh_put() 626 fh_clear_wcc(fhp); in fh_put() [all …]
|
A D | vfs.c | 221 fh_unlock(fhp); in nfsd_lookup_dentry() 340 err = nfsd_permission(rqstp, fhp->fh_export, fhp->fh_dentry, in nfsd_get_write_access() 423 fh_lock(fhp); in nfsd_setattr() 455 fh_unlock(fhp); in nfsd_setattr() 1340 err = fh_compose(resfhp, fhp->fh_export, dchild, fhp); in nfsd_create() 1405 err = fh_compose(resfhp, fhp->fh_export, dchild, fhp); in do_nfsd_create() 1509 fh_unlock(fhp); in do_nfsd_create() 1588 fh_lock(fhp); in nfsd_symlink() 1603 cerr = fh_compose(resfhp, fhp->fh_export, dnew, fhp); in nfsd_symlink() 2284 fh_lock(fhp); in nfsd_removexattr() [all …]
|
A D | nfsfh.h | 244 memset(fhp, 0, sizeof(*fhp)); in fh_init() 245 fhp->fh_maxsize = maxsize; in fh_init() 246 return fhp; in fh_init() 295 fhp->fh_pre_saved = false; in fh_clear_wcc() 350 if (fhp->fh_locked) { in fh_lock_nested() 358 fill_pre_wcc(fhp); in fh_lock_nested() 359 fhp->fh_locked = true; in fh_lock_nested() 363 fh_lock(struct svc_fh *fhp) in fh_lock() argument 374 if (fhp->fh_locked) { in fh_unlock() 375 fill_post_wcc(fhp); in fh_unlock() [all …]
|
A D | nfs3xdr.c | 93 fh_init(fhp, NFS3_FHSIZE); in svcxdr_decode_nfs_fh3() 366 switch(fsid_source(fhp)) { in svcxdr_encode_fattr3() 407 if (!fhp->fh_pre_saved) { in svcxdr_encode_pre_op_attr() 476 if (!svcxdr_encode_fattr3(rqstp, xdr, fhp, &fhp->fh_post_attr)) in svcxdr_encode_wcc_data() 504 if (fhp->fh_no_wcc || fhp->fh_pre_saved) in fill_pre_wcc() 523 fhp->fh_pre_saved = true; in fill_pre_wcc() 534 if (fhp->fh_no_wcc) in fill_post_wcc() 537 if (fhp->fh_post_saved) in fill_post_wcc() 543 __be32 err = fh_getattr(fhp, &fhp->fh_post_attr); in fill_post_wcc() 551 fhp->fh_post_change = in fill_post_wcc() [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 | vfs.h | 80 __be32 nfsd_getxattr(struct svc_rqst *rqstp, struct svc_fh *fhp, 82 __be32 nfsd_listxattr(struct svc_rqst *rqstp, struct svc_fh *fhp, 84 __be32 nfsd_removexattr(struct svc_rqst *rqstp, struct svc_fh *fhp, 86 __be32 nfsd_setxattr(struct svc_rqst *rqstp, struct svc_fh *fhp, 94 __be32 nfsd_splice_read(struct svc_rqst *rqstp, struct svc_fh *fhp, 98 __be32 nfsd_readv(struct svc_rqst *rqstp, struct svc_fh *fhp, 109 __be32 nfsd_vfs_write(struct svc_rqst *rqstp, struct svc_fh *fhp,
|
A D | flexfilelayout.c | 22 nfsd4_ff_proc_layoutget(struct inode *inode, const struct svc_fh *fhp, in nfsd4_ff_proc_layoutget() argument 59 error = nfsd4_set_deviceid(&fl->deviceid, fhp, device_generation); in nfsd4_ff_proc_layoutget() 63 fl->fh.size = fhp->fh_handle.fh_size; in nfsd4_ff_proc_layoutget() 64 memcpy(fl->fh.data, &fhp->fh_handle.fh_raw, fl->fh.size); in nfsd4_ff_proc_layoutget()
|
A D | trace.h | 201 struct svc_fh *fhp, 203 TP_ARGS(rqstp, fhp, status), 222 struct svc_fh *fhp, \ 224 TP_ARGS(rqstp, fhp, status)) 322 struct svc_fh *fhp, 346 struct svc_fh *fhp, \ 363 struct svc_fh *fhp, 387 struct svc_fh *fhp, \ 396 TP_PROTO(struct svc_fh *fhp, 400 TP_ARGS(fhp, ino, name, namlen), [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 | xdr4.h | 749 set_change_info(struct nfsd4_change_info *cinfo, struct svc_fh *fhp) in set_change_info() argument 751 BUG_ON(!fhp->fh_pre_saved); in set_change_info() 752 cinfo->atomic = (u32)(fhp->fh_post_saved && !fhp->fh_no_atomic_attr); in set_change_info() 754 cinfo->before_change = fhp->fh_pre_change; in set_change_info() 755 cinfo->after_change = fhp->fh_post_change; in set_change_info() 766 struct svc_fh *fhp, struct svc_export *exp,
|
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 | 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 | acl.h | 48 __be32 nfsd4_set_nfs4_acl(struct svc_rqst *rqstp, struct svc_fh *fhp,
|
A D | nfs4acl.c | 755 nfsd4_set_nfs4_acl(struct svc_rqst *rqstp, struct svc_fh *fhp, in nfsd4_set_nfs4_acl() argument 766 error = fh_verify(rqstp, fhp, 0, NFSD_MAY_SATTR); in nfsd4_set_nfs4_acl() 770 dentry = fhp->fh_dentry; in nfsd4_set_nfs4_acl() 782 fh_lock(fhp); in nfsd4_set_nfs4_acl() 794 fh_unlock(fhp); in nfsd4_set_nfs4_acl()
|
A D | filecache.h | 61 __be32 nfsd_file_acquire(struct svc_rqst *rqstp, struct svc_fh *fhp,
|
A D | nfsproc.c | 54 struct svc_fh *fhp; in nfsd_proc_setattr() local 60 fhp = fh_copy(&resp->fh, &argp->fh); in nfsd_proc_setattr() 86 resp->status = fh_verify(rqstp, fhp, 0, NFSD_MAY_NOP); in nfsd_proc_setattr() 93 setattr_prepare(&init_user_ns, fhp->fh_dentry, iap) != 0) { in nfsd_proc_setattr() 103 resp->status = nfsd_setattr(rqstp, fhp, iap, 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 | filecache.c | 942 nfsd_file_acquire(struct svc_rqst *rqstp, struct svc_fh *fhp, in nfsd_file_acquire() argument 953 status = fh_verify(rqstp, fhp, S_IFREG, in nfsd_file_acquire() 958 inode = d_inode(fhp->fh_dentry); in nfsd_file_acquire() 1039 status = nfsd_open_verified(rqstp, fhp, S_IFREG, in nfsd_file_acquire()
|
A D | nfs4xdr.c | 2885 fhp = tempfh; in nfsd4_encode_fattr() 3010 } else switch(fsid_source(fhp)) { in nfsd4_encode_fattr() 3107 p = xdr_reserve_space(xdr, fhp->fh_handle.fh_size + 4); in nfsd4_encode_fattr() 3110 p = xdr_encode_opaque(p, &fhp->fh_handle.fh_raw, in nfsd4_encode_fattr() 3111 fhp->fh_handle.fh_size); in nfsd4_encode_fattr() 3380 struct svc_fh *fhp, struct svc_export *exp, in nfsd4_encode_fattr_to_buf() argument 3651 struct svc_fh *fhp = getattr->ga_fhp; in nfsd4_encode_getattr() local 3654 return nfsd4_encode_fattr(xdr, fhp, fhp->fh_export, fhp->fh_dentry, in nfsd4_encode_getattr() 3662 struct svc_fh *fhp = *fhpp; in nfsd4_encode_getfh() local 3666 len = fhp->fh_handle.fh_size; in nfsd4_encode_getfh() [all …]
|
A D | nfs4state.c | 5714 if (!fh_match(&fhp->fh_handle, &stp->sc_file->fi_fhandle)) in nfs4_check_fh() 5924 status = nfsd_permission(rqstp, fhp->fh_export, fhp->fh_dentry, in nfs4_check_file() 5931 status = nfsd_file_acquire(rqstp, fhp, acc, &nf); in nfs4_check_file() 6030 struct nfsd4_compound_state *cstate, struct svc_fh *fhp, in nfs4_preprocess_stateid_op() argument 6043 status = check_special_stateids(net, fhp, stateid, flags); in nfs4_preprocess_stateid_op() 6073 status = nfs4_check_fh(fhp, s); in nfs4_preprocess_stateid_op() 6077 status = nfs4_check_file(rqstp, fhp, s, nfp, flags); in nfs4_preprocess_stateid_op() 7054 err = nfsd_file_acquire(rqstp, fhp, NFSD_MAY_READ, &nf); in nfsd_test_lock() 7057 fh_lock(fhp); /* to block new leases till after test_lock: */ in nfsd_test_lock() 7058 err = nfserrno(nfsd_open_break_lease(fhp->fh_dentry->d_inode, in nfsd_test_lock() [all …]
|
/linux/fs/freevxfs/ |
A D | vxfs_fshead.c | 48 vxfs_dumpfsh(struct vxfs_fsh *fhp) in vxfs_dumpfsh() argument 52 printk("version: %u\n", fhp->fsh_version); in vxfs_dumpfsh() 53 printk("fsindex: %u\n", fhp->fsh_fsindex); in vxfs_dumpfsh() 55 fhp->fsh_iauino, fhp->fsh_ninodes); in vxfs_dumpfsh() 57 fhp->fsh_maxinode, fhp->fsh_lctino); in vxfs_dumpfsh() 58 printk("nau: %u\n", fhp->fsh_nau); in vxfs_dumpfsh() 60 fhp->fsh_ilistino[0], fhp->fsh_ilistino[1]); in vxfs_dumpfsh() 83 struct vxfs_fsh *fhp; in vxfs_getfsh() local 85 if (!(fhp = kmalloc(sizeof(*fhp), GFP_KERNEL))) in vxfs_getfsh() 87 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 | 261 struct file_handle *fhp, *fhp2; in get_cgroup_id() local 268 fhsize = sizeof(*fhp); in get_cgroup_id() 269 fhp = calloc(1, fhsize); in get_cgroup_id() 270 if (!fhp) { in get_cgroup_id() 274 err = name_to_handle_at(dirfd, cgroup_workdir, fhp, &mount_id, flags); in get_cgroup_id() 275 if (err >= 0 || fhp->handle_bytes != 8) { in get_cgroup_id() 280 fhsize = sizeof(struct file_handle) + fhp->handle_bytes; in get_cgroup_id() 281 fhp2 = realloc(fhp, fhsize); in get_cgroup_id() 287 fhp = fhp2; in get_cgroup_id() 293 memcpy(id.raw_bytes, fhp->f_handle, 8); in get_cgroup_id() [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()
|