nfsd4: simplify nfsd4_encode_fattr interface slightly
authorJ. Bruce Fields <bfields@redhat.com>
Fri, 14 Dec 2012 22:57:50 +0000 (17:57 -0500)
committerJ. Bruce Fields <bfields@redhat.com>
Wed, 23 Jan 2013 23:17:35 +0000 (18:17 -0500)
commit84822d0b3bc5a74a4290727dd1ab4fc7dcd6a348
tree4d63b1766e3eb7944395073506e0454eed2e22dd
parentd1c3ed669a2d452cacfb48c2d171a1f364dae2ed
nfsd4: simplify nfsd4_encode_fattr interface slightly

It seems slightly simpler to make nfsd4_encode_fattr rather than its
callers responsible for advancing the write pointer on success.

(Also: the count == 0 check in the verify case looks superfluous.
Running out of buffer space is really the only reason fattr encoding
should fail with eresource.)

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4proc.c
fs/nfsd/nfs4xdr.c
fs/nfsd/xdr4.h