]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Avoid return code checking in mount XDR encoder functions
authorChuck Lever <chuck.lever@oracle.com>
Tue, 14 Dec 2010 14:58:40 +0000 (14:58 +0000)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 16 Dec 2010 17:37:25 +0000 (12:37 -0500)
commit5bb557f6872760a960de9ae5994580953f4643e1
tree7b7308f76ec761249ba1992a7106633d00035384
parentb4b4c2aedd4e07eb2274e400cc1b68c5be9c4dc7
NFS: Avoid return code checking in mount XDR encoder functions

Clean up.

The trend in the other XDR encoder functions is to BUG() when encoding
problems occur, since a problem here is always due to a local coding
error.  Then, instead of a status, zero is unconditionally returned.

Update the mount client XDR encoders to behave this way.

To finish the update, use the new-style be32_to_cpup() and
cpu_to_be32() macros, and compute the buffer sizes using raw integers
instead of sizeof().  This matches the conventions used in other XDR
functions.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Tested-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/mount_clnt.c