diff options
| author | Chuck Lever <chuck.lever@oracle.com> | 2025-05-09 20:39:23 +0300 |
|---|---|---|
| committer | Chuck Lever <chuck.lever@oracle.com> | 2025-05-15 23:16:23 +0300 |
| commit | f2e597353d50f05a600dddbf84a362839cf1c224 (patch) | |
| tree | c266cf6ebd7243230f971f874570f1484b413501 /include/linux | |
| parent | 2a48f3adc2ddb922ea5dc602e2e52952df91a99c (diff) | |
| download | linux-f2e597353d50f05a600dddbf84a362839cf1c224.tar.xz | |
NFSD: De-duplicate the svc_fill_write_vector() call sites
All three call sites do the same thing.
I'm struggling with this a bit, however. struct xdr_buf is an XDR
layer object and unmarshaling a WRITE payload is clearly a task
intended to be done by the proc and xdr functions, not by VFS. This
feels vaguely like a layering violation.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/sunrpc/svc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/sunrpc/svc.h b/include/linux/sunrpc/svc.h index 538bea716c6b..dec636345ee2 100644 --- a/include/linux/sunrpc/svc.h +++ b/include/linux/sunrpc/svc.h @@ -471,7 +471,7 @@ int svc_encode_result_payload(struct svc_rqst *rqstp, unsigned int offset, unsigned int length); unsigned int svc_fill_write_vector(struct svc_rqst *rqstp, - struct xdr_buf *payload); + const struct xdr_buf *payload); char *svc_fill_symlink_pathname(struct svc_rqst *rqstp, struct kvec *first, void *p, size_t total); |
