NFSD: Change the way the expected length of a fattr4 is checked
authorChuck Lever <chuck.lever@oracle.com>
Thu, 19 Nov 2020 18:09:13 +0000 (13:09 -0500)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 30 Nov 2020 19:46:36 +0000 (14:46 -0500)
commit081d53fe0b43c47c36d1832b759bf14edde9cdbb
treecadd3f0267a6d6887593bf8cd3d9abd5c5022a7e
parentcbd9abb3706e96563b36af67595707a7054ab693
NFSD: Change the way the expected length of a fattr4 is checked

Because the fattr4 is now managed in an xdr_stream, all that is
needed is to store the initial position of the stream before
decoding the attribute list. Then the actual length of the list
is computed using the final stream position, after decoding is
complete.

No behavior change is expected.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/nfs4xdr.c