|
@@ -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);
|
|
|
}
|