diff options
author | Arnd Bergmann <arnd@arndb.de> | 2019-11-03 17:50:18 +0100 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2019-12-19 23:46:08 +0100 |
commit | 2a1aa48929af78bfe8c4d4fe4b1ed8996af47cee (patch) | |
tree | 606f1abcf8edee423f166800ecf43f8319cbe1a7 /fs/nfsd/nfs4proc.c | |
parent | nfsd: make 'boot_time' 64-bit wide (diff) | |
download | linux-2a1aa48929af78bfe8c4d4fe4b1ed8996af47cee.tar.xz linux-2a1aa48929af78bfe8c4d4fe4b1ed8996af47cee.zip |
nfsd: pass a 64-bit guardtime to nfsd_setattr()
Guardtime handling in nfs3 differs between 32-bit and 64-bit
architectures, and uses the deprecated time_t type.
Change it to using time64_t, which behaves the same way on
64-bit and 32-bit architectures, treating the number as an
unsigned 32-bit entity with a range of year 1970 to 2106
consistently, and avoiding the y2038 overflow.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/nfs4proc.c')
-rw-r--r-- | fs/nfsd/nfs4proc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfs4proc.c b/fs/nfsd/nfs4proc.c index 30c75b961d68..f39cac6e08db 100644 --- a/fs/nfsd/nfs4proc.c +++ b/fs/nfsd/nfs4proc.c @@ -984,7 +984,7 @@ nfsd4_setattr(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, if (status) goto out; status = nfsd_setattr(rqstp, &cstate->current_fh, &setattr->sa_iattr, - 0, (time_t)0); + 0, (time64_t)0); out: fh_drop_write(&cstate->current_fh); return status; |