linux/fs/lockd
Chuck Lever 49b170047f NSM: Avoid return code checking in NSM 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 NSM 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>
2010-12-16 12:37:24 -05:00
..
clnt4xdr.c lockd: Introduce new-style XDR functions for NLMv4 2010-12-16 12:37:23 -05:00
clntlock.c BKL: remove extraneous #include <smp_lock.h> 2010-11-17 08:59:32 -08:00
clntproc.c BKL: remove extraneous #include <smp_lock.h> 2010-11-17 08:59:32 -08:00
clntxdr.c lockd: Introduce new-style XDR functions for NLMv3 2010-12-16 12:37:21 -05:00
grace.c
host.c NLM: Fix a regression in lockd 2010-11-15 20:44:26 -05:00
Makefile lockd: Introduce new-style XDR functions for NLMv4 2010-12-16 12:37:23 -05:00
mon.c NSM: Avoid return code checking in NSM XDR encoder functions 2010-12-16 12:37:24 -05:00
svc4proc.c BKL: remove extraneous #include <smp_lock.h> 2010-11-17 08:59:32 -08:00
svc.c lockd: push lock_flocks down 2010-10-27 21:39:39 +02:00
svclock.c lockd: Move nlmdbg_cookie2a() to svclock.c 2010-12-16 12:37:24 -05:00
svcproc.c BKL: remove extraneous #include <smp_lock.h> 2010-11-17 08:59:32 -08:00
svcshare.c
svcsubs.c lockd: push lock_flocks down 2010-10-27 21:39:39 +02:00
xdr4.c lockd: Introduce new-style XDR functions for NLMv4 2010-12-16 12:37:23 -05:00
xdr.c lockd: Move nlmdbg_cookie2a() to svclock.c 2010-12-16 12:37:24 -05:00