nfsd: Don't set eof on a truncated READ_PLUS
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Fri, 11 Dec 2020 17:26:15 +0000 (12:26 -0500)
committerChuck Lever <chuck.lever@oracle.com>
Fri, 18 Dec 2020 17:28:00 +0000 (12:28 -0500)
commitb68f0cbd3f95f2df81e525c310a41fc73c2ed0d3
tree251d3f259ee2545b02b0213d4244467aaba6b04a
parent72d78717c6d06adf65d2e3dccc96d9e9dc978593
nfsd: Don't set eof on a truncated READ_PLUS

If the READ_PLUS operation was truncated due to an error, then ensure we
clear the 'eof' flag.

Fixes: 9f0b5792f07d ("NFSD: Encode a full READ_PLUS reply")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/nfs4xdr.c