NFS: Remove asserts from the NFS XDR code
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 15 Oct 2012 15:51:21 +0000 (11:51 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Sun, 4 Nov 2012 19:43:38 +0000 (14:43 -0500)
commit7fc388460e8479c5b3120cb2fcf0e0daec70b93f
treeeb6445ae11e33658f1c96456e34f0b811d2d83d4
parent1fea73a86527d7ec463af6ff04b0830e1425ff6c
NFS: Remove asserts from the NFS XDR code

Convert the ones that are not trivial to check into WARN_ON_ONCE().
Remove checks for things such as NFS2_MAXPATHLEN, which are trivially
done by the caller.

Add a comment to the case of nfs3_xdr_enc_setacl3args. What is being
done there is just wrong...

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs2xdr.c
fs/nfs/nfs3xdr.c
fs/nfs/nfs4xdr.c