]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd11525915b7f171ae4631e7617fb99948bc9326e
tree4d63b1766e3eb7944395073506e0454eed2e22dd
parent3488c69bfc958da74cc1a2ebc3b69a93c80b12aa
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