diff options
Diffstat (limited to 'fs/nfsd/nfs3xdr.c')
| -rw-r--r-- | fs/nfsd/nfs3xdr.c | 10 | 
1 files changed, 6 insertions, 4 deletions
| diff --git a/fs/nfsd/nfs3xdr.c b/fs/nfsd/nfs3xdr.c index bf444b664011..3579e0ae1131 100644 --- a/fs/nfsd/nfs3xdr.c +++ b/fs/nfsd/nfs3xdr.c @@ -747,8 +747,9 @@ nfs3svc_encode_writeres(struct svc_rqst *rqstp, __be32 *p)  	if (resp->status == 0) {  		*p++ = htonl(resp->count);  		*p++ = htonl(resp->committed); -		*p++ = htonl(nn->nfssvc_boot.tv_sec); -		*p++ = htonl(nn->nfssvc_boot.tv_usec); +		/* unique identifier, y2038 overflow can be ignored */ +		*p++ = htonl((u32)nn->nfssvc_boot.tv_sec); +		*p++ = htonl(nn->nfssvc_boot.tv_nsec);  	}  	return xdr_ressize_check(rqstp, p);  } @@ -1118,8 +1119,9 @@ nfs3svc_encode_commitres(struct svc_rqst *rqstp, __be32 *p)  	p = encode_wcc_data(rqstp, p, &resp->fh);  	/* Write verifier */  	if (resp->status == 0) { -		*p++ = htonl(nn->nfssvc_boot.tv_sec); -		*p++ = htonl(nn->nfssvc_boot.tv_usec); +		/* unique identifier, y2038 overflow can be ignored */ +		*p++ = htonl((u32)nn->nfssvc_boot.tv_sec); +		*p++ = htonl(nn->nfssvc_boot.tv_nsec);  	}  	return xdr_ressize_check(rqstp, p);  } | 
