]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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>
Wed, 24 Oct 2012 14:47:49 +0000 (10:47 -0400)
commit5903fd25fda811826edfd816dbe68179cb04730f
tree4b54d980ca404938bcbc1d7be2a846925855f176
parentc8376ba89d00dd3cc7db82bf6afcff109217747b
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