/Linux-v6.6/fs/nfsd/ |
D | nfsfh.c | 154 static __be32 nfsd_set_fh_dentry(struct svc_rqst *rqstp, struct svc_fh *fhp) in nfsd_set_fh_dentry() argument 156 struct knfsd_fh *fh = &fhp->fh_handle; in nfsd_set_fh_dentry() 203 trace_nfsd_set_fh_dentry_badexport(rqstp, fhp, PTR_ERR(exp)); in nfsd_set_fh_dentry() 253 trace_nfsd_set_fh_dentry_badhandle(rqstp, fhp, in nfsd_set_fh_dentry() 278 fhp->fh_dentry = dentry; in nfsd_set_fh_dentry() 279 fhp->fh_export = exp; in nfsd_set_fh_dentry() 284 fhp->fh_no_atomic_attr = true; in nfsd_set_fh_dentry() 288 fhp->fh_no_wcc = true; in nfsd_set_fh_dentry() 291 fhp->fh_no_wcc = true; in nfsd_set_fh_dentry() 328 fh_verify(struct svc_rqst *rqstp, struct svc_fh *fhp, umode_t type, int access) in fh_verify() argument [all …]
|
D | vfs.c | 240 nfsd_lookup_dentry(struct svc_rqst *rqstp, struct svc_fh *fhp, in nfsd_lookup_dentry() argument 249 dprintk("nfsd: nfsd_lookup(fh %s, %.*s)\n", SVCFH_fmt(fhp), len,name); in nfsd_lookup_dentry() 251 dparent = fhp->fh_dentry; in nfsd_lookup_dentry() 252 exp = exp_get(fhp->fh_export); in nfsd_lookup_dentry() 311 nfsd_lookup(struct svc_rqst *rqstp, struct svc_fh *fhp, const char *name, in nfsd_lookup() argument 318 err = fh_verify(rqstp, fhp, S_IFDIR, NFSD_MAY_EXEC); in nfsd_lookup() 321 err = nfsd_lookup_dentry(rqstp, fhp, name, len, &exp, &dentry); in nfsd_lookup() 331 err = fh_compose(resfh, exp, dentry, fhp); in nfsd_lookup() 354 commit_metadata(struct svc_fh *fhp) in commit_metadata() argument 356 struct inode *inode = d_inode(fhp->fh_dentry); in commit_metadata() [all …]
|
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() 290 static inline void fh_clear_pre_post_attrs(struct svc_fh *fhp) in fh_clear_pre_post_attrs() argument 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 __be32 __must_check fh_fill_pre_attrs(struct svc_fh *fhp); [all …]
|
D | nfs3xdr.c | 81 svcxdr_decode_nfs_fh3(struct xdr_stream *xdr, struct svc_fh *fhp) in svcxdr_decode_nfs_fh3() argument 93 fh_init(fhp, NFS3_FHSIZE); in svcxdr_decode_nfs_fh3() 94 fhp->fh_handle.fh_size = size; in svcxdr_decode_nfs_fh3() 95 memcpy(&fhp->fh_handle.fh_raw, p, size); in svcxdr_decode_nfs_fh3() 123 svcxdr_encode_nfs_fh3(struct xdr_stream *xdr, const struct svc_fh *fhp) in svcxdr_encode_nfs_fh3() argument 125 u32 size = fhp->fh_handle.fh_size; in svcxdr_encode_nfs_fh3() 134 memcpy(p, &fhp->fh_handle.fh_raw, size); in svcxdr_encode_nfs_fh3() 140 svcxdr_encode_post_op_fh3(struct xdr_stream *xdr, const struct svc_fh *fhp) in svcxdr_encode_post_op_fh3() argument 144 if (!svcxdr_encode_nfs_fh3(xdr, fhp)) in svcxdr_encode_post_op_fh3() 202 svcxdr_decode_diropargs3(struct xdr_stream *xdr, struct svc_fh *fhp, in svcxdr_decode_diropargs3() argument [all …]
|
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_iter_read(struct svc_rqst *rqstp, struct svc_fh *fhp, 117 __be32 nfsd_read(struct svc_rqst *rqstp, struct svc_fh *fhp, 123 __be32 nfsd_vfs_write(struct svc_rqst *rqstp, struct svc_fh *fhp,
|
D | nfsxdr.c | 59 svcxdr_decode_fhandle(struct xdr_stream *xdr, struct svc_fh *fhp) in svcxdr_decode_fhandle() argument 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() 74 svcxdr_encode_fhandle(struct xdr_stream *xdr, const struct svc_fh *fhp) in svcxdr_encode_fhandle() argument 81 memcpy(p, &fhp->fh_handle.fh_raw, NFS_FHSIZE); in svcxdr_encode_fhandle() 122 svcxdr_decode_diropargs(struct xdr_stream *xdr, struct svc_fh *fhp, in svcxdr_decode_diropargs() argument 125 return svcxdr_decode_fhandle(xdr, fhp) && in svcxdr_decode_diropargs() 215 const struct svc_fh *fhp, const struct kstat *stat) in svcxdr_encode_fattr() argument 218 struct dentry *dentry = fhp->fh_dentry; in svcxdr_encode_fattr() [all …]
|
D | filecache.h | 60 __be32 nfsd_file_acquire_gc(struct svc_rqst *rqstp, struct svc_fh *fhp, 62 __be32 nfsd_file_acquire(struct svc_rqst *rqstp, struct svc_fh *fhp, 64 __be32 nfsd_file_acquire_opened(struct svc_rqst *rqstp, struct svc_fh *fhp,
|
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()
|
D | trace.h | 197 const struct svc_fh *fhp, 201 TP_ARGS(rqstp, fhp, type, access), 219 __entry->fh_hash = knfsd_fh_hash(&fhp->fh_handle); 220 __entry->inode = d_inode(fhp->fh_dentry); 234 const struct svc_fh *fhp, 239 TP_ARGS(rqstp, fhp, type, access, error), 259 __entry->fh_hash = knfsd_fh_hash(&fhp->fh_handle); 260 if (fhp->fh_dentry) 261 __entry->inode = d_inode(fhp->fh_dentry); 278 struct svc_fh *fhp, [all …]
|
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()
|
D | filecache.c | 985 nfsd_file_do_acquire(struct svc_rqst *rqstp, struct svc_fh *fhp, in nfsd_file_do_acquire() argument 998 status = fh_verify(rqstp, fhp, S_IFREG, in nfsd_file_do_acquire() 1002 inode = d_inode(fhp->fh_dentry); in nfsd_file_do_acquire() 1091 status = nfsd_open_verified(rqstp, fhp, may_flags, in nfsd_file_do_acquire() 1133 nfsd_file_acquire_gc(struct svc_rqst *rqstp, struct svc_fh *fhp, in nfsd_file_acquire_gc() argument 1136 return nfsd_file_do_acquire(rqstp, fhp, may_flags, NULL, pnf, true); in nfsd_file_acquire_gc() 1157 nfsd_file_acquire(struct svc_rqst *rqstp, struct svc_fh *fhp, in nfsd_file_acquire() argument 1160 return nfsd_file_do_acquire(rqstp, fhp, may_flags, NULL, pnf, false); in nfsd_file_acquire() 1182 nfsd_file_acquire_opened(struct svc_rqst *rqstp, struct svc_fh *fhp, in nfsd_file_acquire_opened() argument 1186 return nfsd_file_do_acquire(rqstp, fhp, may_flags, file, pnf, false); in nfsd_file_acquire_opened()
|
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,
|
D | nfs3proc.c | 223 nfsd3_create_file(struct svc_rqst *rqstp, struct svc_fh *fhp, in nfsd3_create_file() argument 241 status = fh_verify(rqstp, fhp, S_IFDIR, NFSD_MAY_EXEC); in nfsd3_create_file() 245 parent = fhp->fh_dentry; in nfsd3_create_file() 248 host_err = fh_want_write(fhp); in nfsd3_create_file() 261 status = fh_verify(rqstp, fhp, S_IFDIR, NFSD_MAY_CREATE); in nfsd3_create_file() 266 status = fh_compose(resfhp, fhp->fh_export, child, fhp); in nfsd3_create_file() 310 status = fh_fill_pre_attrs(fhp); in nfsd3_create_file() 318 fh_fill_post_attrs(fhp); in nfsd3_create_file() 333 status = nfsd_create_setattr(rqstp, fhp, resfhp, &attrs); in nfsd3_create_file() 339 fh_drop_write(fhp); in nfsd3_create_file()
|
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);
|
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() 232 nfsd4_create_file(struct svc_rqst *rqstp, struct svc_fh *fhp, in nfsd4_create_file() argument 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() 273 status = fh_verify(rqstp, fhp, S_IFDIR, NFSD_MAY_CREATE); in nfsd4_create_file() 278 status = fh_compose(resfhp, fhp->fh_export, child, fhp); in nfsd4_create_file() 303 status = fh_fill_both_attrs(fhp); in nfsd4_create_file() 348 status = fh_fill_pre_attrs(fhp); in nfsd4_create_file() [all …]
|
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()
|
D | xdr3.h | 309 bool svcxdr_decode_nfs_fh3(struct xdr_stream *xdr, struct svc_fh *fhp); 312 const struct svc_fh *fhp);
|
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()
|
D | nfs4xdr.c | 2946 nfsd4_encode_fattr(struct xdr_stream *xdr, struct svc_fh *fhp, in nfsd4_encode_fattr() argument 3009 if ((bmval0 & (FATTR4_WORD0_FILEHANDLE | FATTR4_WORD0_FSID)) && !fhp) { in nfsd4_encode_fattr() 3018 fhp = tempfh; in nfsd4_encode_fattr() 3142 } else switch(fsid_source(fhp)) { in nfsd4_encode_fattr() 3239 p = xdr_reserve_space(xdr, fhp->fh_handle.fh_size + 4); in nfsd4_encode_fattr() 3242 p = xdr_encode_opaque(p, &fhp->fh_handle.fh_raw, in nfsd4_encode_fattr() 3243 fhp->fh_handle.fh_size); in nfsd4_encode_fattr() 3508 struct svc_fh *fhp, struct svc_export *exp, in nfsd4_encode_fattr_to_buf() argument 3517 ret = nfsd4_encode_fattr(&xdr, fhp, exp, dentry, bmval, rqstp, in nfsd4_encode_fattr_to_buf() 3817 struct svc_fh *fhp = getattr->ga_fhp; in nfsd4_encode_getattr() local [all …]
|
D | nfs4state.c | 4713 nfsd4_file_hash_lookup(const struct svc_fh *fhp) in nfsd4_file_hash_lookup() argument 4715 struct inode *inode = d_inode(fhp->fh_dentry); in nfsd4_file_hash_lookup() 4723 if (fh_match(&fi->fi_fhandle, &fhp->fh_handle)) { in nfsd4_file_hash_lookup() 4743 nfsd4_file_hash_insert(struct nfs4_file *new, const struct svc_fh *fhp) in nfsd4_file_hash_insert() argument 4745 struct inode *inode = d_inode(fhp->fh_dentry); in nfsd4_file_hash_insert() 4758 if (fh_match(&fi->fi_fhandle, &fhp->fh_handle)) { in nfsd4_file_hash_insert() 4767 nfsd4_file_init(fhp, new); in nfsd4_file_hash_insert() 6304 static inline __be32 nfs4_check_fh(struct svc_fh *fhp, struct nfs4_stid *stp) in nfs4_check_fh() argument 6306 if (!fh_match(&fhp->fh_handle, &stp->sc_file->fi_fhandle)) in nfs4_check_fh() 6510 nfs4_check_file(struct svc_rqst *rqstp, struct svc_fh *fhp, struct nfs4_stid *s, in nfs4_check_file() argument [all …]
|
/Linux-v6.6/fs/freevxfs/ |
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-v6.6/drivers/media/usb/pvrusb2/ |
D | pvrusb2-v4l2.c | 909 struct pvr2_v4l2_fh *fhp = file->private_data; in pvr2_v4l2_release() local 910 struct pvr2_v4l2 *vp = fhp->pdi->v4lp; in pvr2_v4l2_release() 911 struct pvr2_hdw *hdw = fhp->channel.mc_head->hdw; in pvr2_v4l2_release() 915 if (fhp->rhp) { in pvr2_v4l2_release() 918 sp = pvr2_ioread_get_stream(fhp->rhp); in pvr2_v4l2_release() 920 pvr2_ioread_destroy(fhp->rhp); in pvr2_v4l2_release() 921 fhp->rhp = NULL; in pvr2_v4l2_release() 924 v4l2_fh_del(&fhp->fh); in pvr2_v4l2_release() 925 v4l2_fh_exit(&fhp->fh); in pvr2_v4l2_release() 928 pvr2_channel_done(&fhp->channel); in pvr2_v4l2_release() [all …]
|
/Linux-v6.6/tools/testing/selftests/bpf/ |
D | cgroup_helpers.c | 413 struct file_handle *fhp, *fhp2; in get_cgroup_id() local 420 fhsize = sizeof(*fhp); in get_cgroup_id() 421 fhp = calloc(1, fhsize); in get_cgroup_id() 422 if (!fhp) { in get_cgroup_id() 426 err = name_to_handle_at(dirfd, cgroup_workdir, fhp, &mount_id, flags); in get_cgroup_id() 427 if (err >= 0 || fhp->handle_bytes != 8) { in get_cgroup_id() 432 fhsize = sizeof(struct file_handle) + fhp->handle_bytes; in get_cgroup_id() 433 fhp2 = realloc(fhp, fhsize); in get_cgroup_id() 439 fhp = fhp2; in get_cgroup_id() 445 memcpy(id.raw_bytes, fhp->f_handle, 8); in get_cgroup_id() [all …]
|
/Linux-v6.6/fs/lockd/ |
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-v6.6/tools/testing/selftests/mm/ |
D | hugetlb-madvise.c | 28 int fhp = get_free_hugepages(); \ 29 if (fhp != (exp_free)) { \ 41 unsigned long fhp = 0; in get_free_hugepages() local 47 return fhp; in get_free_hugepages() 49 if (sscanf(line, "HugePages_Free: %lu", &fhp) == 1) in get_free_hugepages() 55 return fhp; in get_free_hugepages()
|