NFSv4.2: Clean up nfs4_xdr_dec_*xattr() functions
authorAnna Schumaker <Anna.Schumaker@Netapp.com>
Thu, 4 May 2023 20:47:14 +0000 (16:47 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 19 Jun 2023 16:09:07 +0000 (12:09 -0400)
I add commends above each function to match the style of the other
nfs4_xdr_dec_*() functions. I also remove the unnecessary #ifdef
CONFIG_NFS_V4_2 that was added around this code, since we are already in
a v4.2-only file.

Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/nfs42xdr.c

index 51560c7d468d5776b626317a740c802c976ccc20..1d74135715c5b0dc0cbb83583e1ae5febc11745e 100644 (file)
@@ -1562,7 +1562,9 @@ out:
        return status;
 }
 
-#ifdef CONFIG_NFS_V4_2
+/*
+ * Decode SETXATTR request
+ */
 static int nfs4_xdr_dec_setxattr(struct rpc_rqst *req, struct xdr_stream *xdr,
                                 void *data)
 {
@@ -1585,6 +1587,9 @@ out:
        return status;
 }
 
+/*
+ * Decode GETXATTR request
+ */
 static int nfs4_xdr_dec_getxattr(struct rpc_rqst *rqstp,
                                 struct xdr_stream *xdr, void *data)
 {
@@ -1606,6 +1611,9 @@ out:
        return status;
 }
 
+/*
+ * Decode LISTXATTR request
+ */
 static int nfs4_xdr_dec_listxattrs(struct rpc_rqst *rqstp,
                                   struct xdr_stream *xdr, void *data)
 {
@@ -1629,6 +1637,9 @@ out:
        return status;
 }
 
+/*
+ * Decode REMOVEXATTR request
+ */
 static int nfs4_xdr_dec_removexattr(struct rpc_rqst *req,
                                    struct xdr_stream *xdr, void *data)
 {
@@ -1650,5 +1661,4 @@ static int nfs4_xdr_dec_removexattr(struct rpc_rqst *req,
 out:
        return status;
 }
-#endif
 #endif /* __LINUX_FS_NFS_NFS4_2XDR_H */