Home
last modified time | relevance | path

Searched refs:fhp (Results 1 - 25 of 56) sorted by relevance

123

/kernel/linux/linux-6.6/fs/nfsd/
H A Dnfsfh.c154 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()
303 * @fhp
328 fh_verify(struct svc_rqst *rqstp, struct svc_fh *fhp, umode_t type, int access) fh_verify() argument
410 _fh_update(struct svc_fh *fhp, struct svc_export *exp, struct dentry *dentry) _fh_update() argument
465 set_version_and_fsid_type(struct svc_fh *fhp, struct svc_export *exp, struct svc_fh *ref_fh) set_version_and_fsid_type() argument
520 fh_compose(struct svc_fh *fhp, struct svc_export *exp, struct dentry *dentry, struct svc_fh *ref_fh) fh_compose() argument
586 fh_update(struct svc_fh *fhp) fh_update() argument
617 fh_fill_pre_attrs(struct svc_fh *fhp) fh_fill_pre_attrs() argument
647 fh_fill_post_attrs(struct svc_fh *fhp) fh_fill_post_attrs() argument
677 fh_fill_both_attrs(struct svc_fh *fhp) fh_fill_both_attrs() argument
697 fh_put(struct svc_fh *fhp) fh_put() argument
718 SVCFH_fmt(struct svc_fh *fhp) SVCFH_fmt() argument
729 fsid_source(const struct svc_fh *fhp) fsid_source() argument
[all...]
H A Dvfs.c240 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()
294 * @fhp: the file handle of the directory
300 * N.B. After this call _both_ fhp and resfh need an fh_put
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) commit_metadata() argument
399 nfsd_get_write_access(struct svc_rqst *rqstp, struct svc_fh *fhp, struct iattr *iap) nfsd_get_write_access() argument
472 nfsd_setattr(struct svc_rqst *rqstp, struct svc_fh *fhp, struct nfsd_attrs *attr, int check_guard, time64_t guardtime) nfsd_setattr() argument
681 nfsd4_vfs_fallocate(struct svc_rqst *rqstp, struct svc_fh *fhp, struct file *file, loff_t offset, loff_t len, int flags) nfsd4_vfs_fallocate() argument
753 nfsd_access(struct svc_rqst *rqstp, struct svc_fh *fhp, u32 *access, u32 *supported) nfsd_access() argument
827 __nfsd_open(struct svc_rqst *rqstp, struct svc_fh *fhp, umode_t type, int may_flags, struct file **filp) __nfsd_open() argument
880 nfsd_open(struct svc_rqst *rqstp, struct svc_fh *fhp, umode_t type, int may_flags, struct file **filp) nfsd_open() argument
924 nfsd_open_verified(struct svc_rqst *rqstp, struct svc_fh *fhp, int may_flags, struct file **filp) nfsd_open_verified() argument
983 nfsd_finish_read(struct svc_rqst *rqstp, struct svc_fh *fhp, struct file *file, loff_t offset, unsigned long *count, u32 *eof, ssize_t host_err) nfsd_finish_read() argument
1012 nfsd_splice_read(struct svc_rqst *rqstp, struct svc_fh *fhp, struct file *file, loff_t offset, unsigned long *count, u32 *eof) nfsd_splice_read() argument
1045 nfsd_iter_read(struct svc_rqst *rqstp, struct svc_fh *fhp, struct file *file, loff_t offset, unsigned long *count, unsigned int base, u32 *eof) nfsd_iter_read() argument
1111 nfsd_vfs_write(struct svc_rqst *rqstp, struct svc_fh *fhp, struct nfsd_file *nf, loff_t offset, struct kvec *vec, int vlen, unsigned long *cnt, int stable, __be32 *verf) nfsd_vfs_write() argument
1214 nfsd_read(struct svc_rqst *rqstp, struct svc_fh *fhp, loff_t offset, unsigned long *count, u32 *eof) nfsd_read() argument
1243 nfsd_write(struct svc_rqst *rqstp, struct svc_fh *fhp, loff_t offset, struct kvec *vec, int vlen, unsigned long *cnt, int stable, __be32 *verf) nfsd_write() argument
1285 nfsd_commit(struct svc_rqst *rqstp, struct svc_fh *fhp, struct nfsd_file *nf, u64 offset, u32 count, __be32 *verf) nfsd_commit() argument
1345 nfsd_create_setattr(struct svc_rqst *rqstp, struct svc_fh *fhp, struct svc_fh *resfhp, struct nfsd_attrs *attrs) nfsd_create_setattr() argument
1407 nfsd_create_locked(struct svc_rqst *rqstp, struct svc_fh *fhp, struct nfsd_attrs *attrs, int type, dev_t rdev, struct svc_fh *resfhp) nfsd_create_locked() argument
1498 nfsd_create(struct svc_rqst *rqstp, struct svc_fh *fhp, char *fname, int flen, struct nfsd_attrs *attrs, int type, dev_t rdev, struct svc_fh *resfhp) nfsd_create() argument
1550 nfsd_readlink(struct svc_rqst *rqstp, struct svc_fh *fhp, char *buf, int *lenp) nfsd_readlink() argument
1597 nfsd_symlink(struct svc_rqst *rqstp, struct svc_fh *fhp, char *fname, int flen, char *path, struct nfsd_attrs *attrs, struct svc_fh *resfhp) nfsd_symlink() argument
1887 nfsd_unlink(struct svc_rqst *rqstp, struct svc_fh *fhp, int type, char *fname, int flen) nfsd_unlink() argument
2022 nfsd_buffered_readdir(struct file *file, struct svc_fh *fhp, nfsd_filldir_t func, struct readdir_cd *cdp, loff_t *offsetp) nfsd_buffered_readdir() argument
2097 nfsd_readdir(struct svc_rqst *rqstp, struct svc_fh *fhp, loff_t *offsetp, struct readdir_cd *cdp, nfsd_filldir_t func) nfsd_readdir() argument
2134 nfsd_statfs(struct svc_rqst *rqstp, struct svc_fh *fhp, struct kstatfs *stat, int access) nfsd_statfs() argument
2197 nfsd_getxattr(struct svc_rqst *rqstp, struct svc_fh *fhp, char *name, void **bufp, int *lenp) nfsd_getxattr() argument
2270 nfsd_listxattr(struct svc_rqst *rqstp, struct svc_fh *fhp, char **bufp, int *lenp) nfsd_listxattr() argument
2335 nfsd_removexattr(struct svc_rqst *rqstp, struct svc_fh *fhp, char *name) nfsd_removexattr() argument
2364 nfsd_setxattr(struct svc_rqst *rqstp, struct svc_fh *fhp, char *name, void *buf, u32 len, u32 flags) nfsd_setxattr() argument
[all...]
H A Dnfsfh.h129 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()
287 * @fhp: file handle to be updated
290 static inline void fh_clear_pre_post_attrs(struct svc_fh *fhp) in fh_clear_pre_post_attrs() argument
292 fhp in fh_clear_pre_post_attrs()
[all...]
H A Dvfs.h89 __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,
107 int nfsd_open_verified(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,
[all...]
H A Dnfs3xdr.c74 * @fhp: OUT: filled-in server file handle
78 * %true: @fhp has been initialized
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
202 svcxdr_decode_diropargs3(struct xdr_stream *xdr, struct svc_fh *fhp, char **name, unsigned int *len) svcxdr_decode_diropargs3() argument
338 svcxdr_encode_fattr3(struct svc_rqst *rqstp, struct xdr_stream *xdr, const struct svc_fh *fhp, const struct kstat *stat) svcxdr_encode_fattr3() argument
390 svcxdr_encode_wcc_attr(struct xdr_stream *xdr, const struct svc_fh *fhp) svcxdr_encode_wcc_attr() argument
405 svcxdr_encode_pre_op_attr(struct xdr_stream *xdr, const struct svc_fh *fhp) svcxdr_encode_pre_op_attr() argument
429 svcxdr_encode_post_op_attr(struct svc_rqst *rqstp, struct xdr_stream *xdr, const struct svc_fh *fhp) svcxdr_encode_post_op_attr() argument
461 svcxdr_encode_wcc_data(struct svc_rqst *rqstp, struct xdr_stream *xdr, const struct svc_fh *fhp) svcxdr_encode_wcc_data() argument
983 compose_entry_fh(struct nfsd3_readdirres *cd, struct svc_fh *fhp, const char *name, int namlen, u64 ino) compose_entry_fh() argument
1111 struct svc_fh *fhp = &resp->scratch; svcxdr_encode_entry3_plus() local
[all...]
H A Dnfsxdr.c52 * @fhp: OUT: filled-in server file handle
56 * %true: @fhp has been initialized
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()
214 svcxdr_encode_fattr(struct svc_rqst *rqstp, struct xdr_stream *xdr, const struct svc_fh *fhp, const struct kstat *stat) svcxdr_encode_fattr() argument
[all...]
H A Dfilecache.h60 __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,
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()
/kernel/linux/linux-5.10/fs/nfsd/
H A Dnfsfh.c153 static __be32 nfsd_set_fh_dentry(struct svc_rqst *rqstp, struct svc_fh *fhp) in nfsd_set_fh_dentry() argument
155 struct knfsd_fh *fh = &fhp->fh_handle; in nfsd_set_fh_dentry()
214 trace_nfsd_set_fh_dentry_badexport(rqstp, fhp, PTR_ERR(exp)); in nfsd_set_fh_dentry()
275 trace_nfsd_set_fh_dentry_badhandle(rqstp, fhp, in nfsd_set_fh_dentry()
292 fhp->fh_dentry = dentry; in nfsd_set_fh_dentry()
293 fhp->fh_export = exp; in nfsd_set_fh_dentry()
303 * @fhp: filehandle to be verified
311 * called on @fhp when the caller is finished with the filehandle.
328 fh_verify(struct svc_rqst *rqstp, struct svc_fh *fhp, umode_t type, int access) in fh_verify() argument
334 dprintk("nfsd: fh_verify(%s)\n", SVCFH_fmt(fhp)); in fh_verify()
415 _fh_update(struct svc_fh *fhp, struct svc_export *exp, struct dentry *dentry) _fh_update() argument
481 set_version_and_fsid_type(struct svc_fh *fhp, struct svc_export *exp, struct svc_fh *ref_fh) set_version_and_fsid_type() argument
536 fh_compose(struct svc_fh *fhp, struct svc_export *exp, struct dentry *dentry, struct svc_fh *ref_fh) fh_compose() argument
616 fh_update(struct svc_fh *fhp) fh_update() argument
650 fh_put(struct svc_fh *fhp) fh_put() argument
671 SVCFH_fmt(struct svc_fh *fhp) SVCFH_fmt() argument
687 fsid_source(struct svc_fh *fhp) fsid_source() argument
[all...]
H A Dnfsfh.h79 extern enum fsid_source fsid_source(struct svc_fh *fhp);
162 extern char * SVCFH_fmt(struct svc_fh *fhp);
189 fh_init(struct svc_fh *fhp, int maxsize) in fh_init() argument
191 memset(fhp, 0, sizeof(*fhp)); in fh_init()
192 fhp->fh_maxsize = maxsize; in fh_init()
193 return fhp; in fh_init()
242 fh_clear_wcc(struct svc_fh *fhp) in fh_clear_wcc() argument
244 fhp->fh_post_saved = false; in fh_clear_wcc()
245 fhp in fh_clear_wcc()
288 fh_lock_nested(struct svc_fh *fhp, unsigned int subclass) fh_lock_nested() argument
308 fh_lock(struct svc_fh *fhp) fh_lock() argument
317 fh_unlock(struct svc_fh *fhp) fh_unlock() argument
[all...]
H A Dvfs.c173 nfsd_lookup_dentry(struct svc_rqst *rqstp, struct svc_fh *fhp, in nfsd_lookup_dentry() argument
182 dprintk("nfsd: nfsd_lookup(fh %s, %.*s)\n", SVCFH_fmt(fhp), len,name); in nfsd_lookup_dentry()
184 dparent = fhp->fh_dentry; in nfsd_lookup_dentry()
185 exp = exp_get(fhp->fh_export); in nfsd_lookup_dentry()
207 fh_lock_nested(fhp, I_MUTEX_PARENT); in nfsd_lookup_dentry()
221 fh_unlock(fhp); in nfsd_lookup_dentry()
239 * N.B. After this call _both_ fhp and resfh need an fh_put
250 nfsd_lookup(struct svc_rqst *rqstp, struct svc_fh *fhp, const char *name, in nfsd_lookup() argument
257 err = fh_verify(rqstp, fhp, S_IFDIR, NFSD_MAY_EXEC); in nfsd_lookup()
260 err = nfsd_lookup_dentry(rqstp, fhp, nam in nfsd_lookup()
293 commit_metadata(struct svc_fh *fhp) commit_metadata() argument
332 nfsd_get_write_access(struct svc_rqst *rqstp, struct svc_fh *fhp, struct iattr *iap) nfsd_get_write_access() argument
366 nfsd_setattr(struct svc_rqst *rqstp, struct svc_fh *fhp, struct iattr *iap, int check_guard, time64_t guardtime) nfsd_setattr() argument
507 nfsd4_set_nfs4_label(struct svc_rqst *rqstp, struct svc_fh *fhp, struct xdr_netobj *label) nfsd4_set_nfs4_label() argument
526 nfsd4_set_nfs4_label(struct svc_rqst *rqstp, struct svc_fh *fhp, struct xdr_netobj *label) nfsd4_set_nfs4_label() argument
592 nfsd4_vfs_fallocate(struct svc_rqst *rqstp, struct svc_fh *fhp, struct file *file, loff_t offset, loff_t len, int flags) nfsd4_vfs_fallocate() argument
665 nfsd_access(struct svc_rqst *rqstp, struct svc_fh *fhp, u32 *access, u32 *supported) nfsd_access() argument
740 __nfsd_open(struct svc_rqst *rqstp, struct svc_fh *fhp, umode_t type, int may_flags, struct file **filp) __nfsd_open() argument
807 nfsd_open(struct svc_rqst *rqstp, struct svc_fh *fhp, umode_t type, int may_flags, struct file **filp) nfsd_open() argument
834 nfsd_open_verified(struct svc_rqst *rqstp, struct svc_fh *fhp, umode_t type, int may_flags, struct file **filp) nfsd_open_verified() argument
895 nfsd_finish_read(struct svc_rqst *rqstp, struct svc_fh *fhp, struct file *file, loff_t offset, unsigned long *count, u32 *eof, ssize_t host_err) nfsd_finish_read() argument
912 nfsd_splice_read(struct svc_rqst *rqstp, struct svc_fh *fhp, struct file *file, loff_t offset, unsigned long *count, u32 *eof) nfsd_splice_read() argument
930 nfsd_readv(struct svc_rqst *rqstp, struct svc_fh *fhp, struct file *file, loff_t offset, struct kvec *vec, int vlen, unsigned long *count, u32 *eof) nfsd_readv() argument
983 nfsd_vfs_write(struct svc_rqst *rqstp, struct svc_fh *fhp, struct nfsd_file *nf, loff_t offset, struct kvec *vec, int vlen, unsigned long *cnt, int stable, __be32 *verf) nfsd_vfs_write() argument
1075 nfsd_read(struct svc_rqst *rqstp, struct svc_fh *fhp, loff_t offset, struct kvec *vec, int vlen, unsigned long *count, u32 *eof) nfsd_read() argument
1107 nfsd_write(struct svc_rqst *rqstp, struct svc_fh *fhp, loff_t offset, struct kvec *vec, int vlen, unsigned long *cnt, int stable, __be32 *verf) nfsd_write() argument
1139 nfsd_commit(struct svc_rqst *rqstp, struct svc_fh *fhp, loff_t offset, unsigned long count, __be32 *verf) nfsd_commit() argument
1227 nfsd_create_locked(struct svc_rqst *rqstp, struct svc_fh *fhp, char *fname, int flen, struct iattr *iap, int type, dev_t rdev, struct svc_fh *resfhp) nfsd_create_locked() argument
1338 nfsd_create(struct svc_rqst *rqstp, struct svc_fh *fhp, char *fname, int flen, struct iattr *iap, int type, dev_t rdev, struct svc_fh *resfhp) nfsd_create() argument
1382 do_nfsd_create(struct svc_rqst *rqstp, struct svc_fh *fhp, char *fname, int flen, struct iattr *iap, struct svc_fh *resfhp, int createmode, u32 *verifier, bool *truncp, bool *created) do_nfsd_create() argument
1550 nfsd_readlink(struct svc_rqst *rqstp, struct svc_fh *fhp, char *buf, int *lenp) nfsd_readlink() argument
1587 nfsd_symlink(struct svc_rqst *rqstp, struct svc_fh *fhp, char *fname, int flen, char *path, struct svc_fh *resfhp) nfsd_symlink() argument
1852 nfsd_unlink(struct svc_rqst *rqstp, struct svc_fh *fhp, int type, char *fname, int flen) nfsd_unlink() argument
2037 nfsd_readdir(struct svc_rqst *rqstp, struct svc_fh *fhp, loff_t *offsetp, struct readdir_cd *cdp, nfsd_filldir_t func) nfsd_readdir() argument
2074 nfsd_statfs(struct svc_rqst *rqstp, struct svc_fh *fhp, struct kstatfs *stat, int access) nfsd_statfs() argument
2137 nfsd_getxattr(struct svc_rqst *rqstp, struct svc_fh *fhp, char *name, void **bufp, int *lenp) nfsd_getxattr() argument
2210 nfsd_listxattr(struct svc_rqst *rqstp, struct svc_fh *fhp, char **bufp, int *lenp) nfsd_listxattr() argument
2275 nfsd_removexattr(struct svc_rqst *rqstp, struct svc_fh *fhp, char *name) nfsd_removexattr() argument
2299 nfsd_setxattr(struct svc_rqst *rqstp, struct svc_fh *fhp, char *name, void *buf, u32 len, u32 flags) nfsd_setxattr() argument
[all...]
H A Dnfs3xdr.c50 decode_fh(__be32 *p, struct svc_fh *fhp) in decode_fh() argument
53 fh_init(fhp, NFS3_FHSIZE); in decode_fh()
58 memcpy(&fhp->fh_handle.fh_base, p, size); in decode_fh()
59 fhp->fh_handle.fh_size = size; in decode_fh()
64 __be32 *nfs3svc_decode_fh(__be32 *p, struct svc_fh *fhp) in nfs3svc_decode_fh() argument
66 return decode_fh(p, fhp); in nfs3svc_decode_fh()
70 encode_fh(__be32 *p, struct svc_fh *fhp) in encode_fh() argument
72 unsigned int size = fhp->fh_handle.fh_size; in encode_fh()
75 memcpy(p, &fhp->fh_handle.fh_base, size); in encode_fh()
144 static __be32 *encode_fsid(__be32 *p, struct svc_fh *fhp) in encode_fsid() argument
166 encode_fattr3(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp, struct kstat *stat) encode_fattr3() argument
193 encode_saved_post_attr(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp) encode_saved_post_attr() argument
206 encode_post_op_attr(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp) encode_post_op_attr() argument
226 nfs3svc_encode_post_op_attr(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp) nfs3svc_encode_post_op_attr() argument
235 encode_wcc_data(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp) encode_wcc_data() argument
258 fill_pre_wcc(struct svc_fh *fhp) fill_pre_wcc() argument
286 fill_post_wcc(struct svc_fh *fhp) fill_post_wcc() argument
853 compose_entry_fh(struct nfsd3_readdirres *cd, struct svc_fh *fhp, const char *name, int namlen, u64 ino) compose_entry_fh() argument
[all...]
H A Dnfsxdr.c29 decode_fh(__be32 *p, struct svc_fh *fhp) in decode_fh() argument
31 fh_init(fhp, NFS_FHSIZE); in decode_fh()
32 memcpy(&fhp->fh_handle.fh_base, p, NFS_FHSIZE); in decode_fh()
33 fhp->fh_handle.fh_size = NFS_FHSIZE; in decode_fh()
41 __be32 *nfs2svc_decode_fh(__be32 *p, struct svc_fh *fhp) in nfs2svc_decode_fh() argument
43 return decode_fh(p, fhp); in nfs2svc_decode_fh()
47 encode_fh(__be32 *p, struct svc_fh *fhp) in encode_fh() argument
49 memcpy(p, &fhp->fh_handle.fh_base, NFS_FHSIZE); in encode_fh()
129 encode_fattr(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp, in encode_fattr() argument
133 struct dentry *dentry = fhp in encode_fattr()
187 nfs2svc_encode_fattr(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp, struct kstat *stat) nfs2svc_encode_fattr() argument
[all...]
H A Dvfs.h80 __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,
H A Dflexfilelayout.c22 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_base, fl->fh.size); in nfsd4_ff_proc_layoutget()
H A Dtrace.h56 struct svc_fh *fhp,
58 TP_ARGS(rqstp, fhp, status),
66 __entry->fh_hash = knfsd_fh_hash(&fhp->fh_handle);
77 struct svc_fh *fhp, \
79 TP_ARGS(rqstp, fhp, status))
177 struct svc_fh *fhp,
180 TP_ARGS(rqstp, fhp, offset, len),
189 __entry->fh_hash = knfsd_fh_hash(&fhp->fh_handle);
201 struct svc_fh *fhp, \
204 TP_ARGS(rqstp, fhp, offse
[all...]
H A Dxdr4.h767 set_change_info(struct nfsd4_change_info *cinfo, struct svc_fh *fhp) in set_change_info() argument
769 BUG_ON(!fhp->fh_pre_saved); in set_change_info()
770 cinfo->atomic = (u32)fhp->fh_post_saved; in set_change_info()
771 cinfo->change_supported = IS_I_VERSION(d_inode(fhp->fh_dentry)); in set_change_info()
773 cinfo->before_change = fhp->fh_pre_change; in set_change_info()
774 cinfo->after_change = fhp->fh_post_change; in set_change_info()
775 cinfo->before_ctime_sec = fhp->fh_pre_ctime.tv_sec; in set_change_info()
776 cinfo->before_ctime_nsec = fhp->fh_pre_ctime.tv_nsec; in set_change_info()
777 cinfo->after_ctime_sec = fhp->fh_post_attr.ctime.tv_sec; in set_change_info()
778 cinfo->after_ctime_nsec = fhp in set_change_info()
[all...]
/kernel/linux/linux-5.10/fs/freevxfs/
H A Dvxfs_fshead.c48 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 in vxfs_dumpfsh()
83 struct vxfs_fsh *fhp; vxfs_getfsh() local
[all...]
/kernel/linux/linux-6.6/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 in vxfs_dumpfsh()
59 struct vxfs_fsh *fhp; vxfs_getfsh() local
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/
H A Dcgroup_helpers.c254 struct file_handle *fhp, *fhp2; in get_cgroup_id() local
261 fhsize = sizeof(*fhp); in get_cgroup_id()
262 fhp = calloc(1, fhsize); in get_cgroup_id()
263 if (!fhp) { in get_cgroup_id()
267 err = name_to_handle_at(dirfd, cgroup_workdir, fhp, &mount_id, flags); in get_cgroup_id()
268 if (err >= 0 || fhp->handle_bytes != 8) { in get_cgroup_id()
273 fhsize = sizeof(struct file_handle) + fhp->handle_bytes; in get_cgroup_id()
274 fhp2 = realloc(fhp, fhsize); in get_cgroup_id()
280 fhp = fhp2; in get_cgroup_id()
286 memcpy(id.raw_bytes, fhp in get_cgroup_id()
[all...]
/kernel/linux/linux-5.10/drivers/media/usb/pvrusb2/
H A Dpvrusb2-v4l2.c913 struct pvr2_v4l2_fh *fhp = file->private_data; in pvr2_v4l2_release() local
914 struct pvr2_v4l2 *vp = fhp->pdi->v4lp; in pvr2_v4l2_release()
915 struct pvr2_hdw *hdw = fhp->channel.mc_head->hdw; in pvr2_v4l2_release()
919 if (fhp->rhp) { in pvr2_v4l2_release()
922 sp = pvr2_ioread_get_stream(fhp->rhp); in pvr2_v4l2_release()
924 pvr2_ioread_destroy(fhp->rhp); in pvr2_v4l2_release()
925 fhp->rhp = NULL; in pvr2_v4l2_release()
928 v4l2_fh_del(&fhp->fh); in pvr2_v4l2_release()
929 v4l2_fh_exit(&fhp->fh); in pvr2_v4l2_release()
932 pvr2_channel_done(&fhp in pvr2_v4l2_release()
953 struct pvr2_v4l2_fh *fhp; pvr2_v4l2_open() local
1040 pvr2_v4l2_notify(struct pvr2_v4l2_fh *fhp) pvr2_v4l2_notify() argument
[all...]
/kernel/linux/linux-6.6/drivers/media/usb/pvrusb2/
H A Dpvrusb2-v4l2.c909 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 in pvr2_v4l2_release()
949 struct pvr2_v4l2_fh *fhp; pvr2_v4l2_open() local
1038 struct pvr2_v4l2_fh *fhp = ptr; pvr2_v4l2_notify() local
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/
H A Dcgroup_helpers.c413 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 in get_cgroup_id()
[all...]
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-6.6/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()

Completed in 216 milliseconds

123