diff options
author | Chuck Lever | 2020-10-01 18:59:12 -0400 |
---|---|---|
committer | J. Bruce Fields | 2020-10-02 09:37:41 -0400 |
commit | dcc46991d3c5b30a3944578511f9a51a71cc0078 (patch) | |
tree | 07b8c2b0baddc78ef9bdf4e5e0a9c7e6ba599923 /fs/nfsd/nfs3xdr.c | |
parent | ba1df797e5bbba68ddd1a29bd658b1c11f9a60b6 (diff) |
NFSD: Encoder and decoder functions are always present
nfsd_dispatch() is a hot path. Let's optimize the XDR method calls
for the by-far common case, which is that the XDR methods are indeed
present.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/nfs3xdr.c')
-rw-r--r-- | fs/nfsd/nfs3xdr.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/nfsd/nfs3xdr.c b/fs/nfsd/nfs3xdr.c index aae514d40b64..e540fd1a29d8 100644 --- a/fs/nfsd/nfs3xdr.c +++ b/fs/nfsd/nfs3xdr.c @@ -305,6 +305,12 @@ void fill_post_wcc(struct svc_fh *fhp) * XDR decode functions */ int +nfs3svc_decode_voidarg(struct svc_rqst *rqstp, __be32 *p) +{ + return 1; +} + +int nfs3svc_decode_fhandle(struct svc_rqst *rqstp, __be32 *p) { struct nfsd_fhandle *args = rqstp->rq_argp; |