]> git.baikalelectronics.ru Git - kernel.git/commitdiff
lockd: Update the NLMv1 void results encoder to use struct xdr_stream
authorChuck Lever <chuck.lever@oracle.com>
Thu, 3 Jun 2021 20:51:52 +0000 (16:51 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Wed, 7 Jul 2021 00:14:43 +0000 (20:14 -0400)
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/lockd/xdr.c

index 091c8c463ab4015019237cb811e7f4b77e64980a..840fa8ff84269af631f5d042d72880b751c6567a 100644 (file)
@@ -331,6 +331,17 @@ nlmsvc_decode_notify(struct svc_rqst *rqstp, __be32 *p)
        return 1;
 }
 
+
+/*
+ * Encode Reply results
+ */
+
+int
+nlmsvc_encode_void(struct svc_rqst *rqstp, __be32 *p)
+{
+       return 1;
+}
+
 int
 nlmsvc_encode_testres(struct svc_rqst *rqstp, __be32 *p)
 {
@@ -363,9 +374,3 @@ nlmsvc_encode_res(struct svc_rqst *rqstp, __be32 *p)
        *p++ = resp->status;
        return xdr_ressize_check(rqstp, p);
 }
-
-int
-nlmsvc_encode_void(struct svc_rqst *rqstp, __be32 *p)
-{
-       return xdr_ressize_check(rqstp, p);
-}