Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

NFSv4.2: Clean up nfs4_xdr_dec_*xattr() functions

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>

authored by

Anna Schumaker and committed by
Trond Myklebust
d5940973 31f1bd8f

+12 -2
+12 -2
fs/nfs/nfs42xdr.c
··· 1562 1562 return status; 1563 1563 } 1564 1564 1565 - #ifdef CONFIG_NFS_V4_2 1565 + /* 1566 + * Decode SETXATTR request 1567 + */ 1566 1568 static int nfs4_xdr_dec_setxattr(struct rpc_rqst *req, struct xdr_stream *xdr, 1567 1569 void *data) 1568 1570 { ··· 1587 1585 return status; 1588 1586 } 1589 1587 1588 + /* 1589 + * Decode GETXATTR request 1590 + */ 1590 1591 static int nfs4_xdr_dec_getxattr(struct rpc_rqst *rqstp, 1591 1592 struct xdr_stream *xdr, void *data) 1592 1593 { ··· 1611 1606 return status; 1612 1607 } 1613 1608 1609 + /* 1610 + * Decode LISTXATTR request 1611 + */ 1614 1612 static int nfs4_xdr_dec_listxattrs(struct rpc_rqst *rqstp, 1615 1613 struct xdr_stream *xdr, void *data) 1616 1614 { ··· 1637 1629 return status; 1638 1630 } 1639 1631 1632 + /* 1633 + * Decode REMOVEXATTR request 1634 + */ 1640 1635 static int nfs4_xdr_dec_removexattr(struct rpc_rqst *req, 1641 1636 struct xdr_stream *xdr, void *data) 1642 1637 { ··· 1661 1650 out: 1662 1651 return status; 1663 1652 } 1664 - #endif 1665 1653 #endif /* __LINUX_FS_NFS_NFS4_2XDR_H */