mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 04:20:53 +07:00
nfs: fix timstamp debug prints
Starting in v5.5, the timestamps are correctly passed down as
64-bit seconds with NFSv4 on 32-bit machines, but some debug
statements still truncate them to 'long'.
Fixes: e86d5a0287
("NFS: Convert struct nfs_fattr to use struct timespec64")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
This commit is contained in:
parent
f559935e7c
commit
057f184b12
@ -4097,7 +4097,7 @@ static int decode_attr_time_access(struct xdr_stream *xdr, uint32_t *bitmap, str
|
||||
status = NFS_ATTR_FATTR_ATIME;
|
||||
bitmap[1] &= ~FATTR4_WORD1_TIME_ACCESS;
|
||||
}
|
||||
dprintk("%s: atime=%ld\n", __func__, (long)time->tv_sec);
|
||||
dprintk("%s: atime=%lld\n", __func__, time->tv_sec);
|
||||
return status;
|
||||
}
|
||||
|
||||
@ -4115,7 +4115,7 @@ static int decode_attr_time_metadata(struct xdr_stream *xdr, uint32_t *bitmap, s
|
||||
status = NFS_ATTR_FATTR_CTIME;
|
||||
bitmap[1] &= ~FATTR4_WORD1_TIME_METADATA;
|
||||
}
|
||||
dprintk("%s: ctime=%ld\n", __func__, (long)time->tv_sec);
|
||||
dprintk("%s: ctime=%lld\n", __func__, time->tv_sec);
|
||||
return status;
|
||||
}
|
||||
|
||||
@ -4132,8 +4132,8 @@ static int decode_attr_time_delta(struct xdr_stream *xdr, uint32_t *bitmap,
|
||||
status = decode_attr_time(xdr, time);
|
||||
bitmap[1] &= ~FATTR4_WORD1_TIME_DELTA;
|
||||
}
|
||||
dprintk("%s: time_delta=%ld %ld\n", __func__, (long)time->tv_sec,
|
||||
(long)time->tv_nsec);
|
||||
dprintk("%s: time_delta=%lld %ld\n", __func__, time->tv_sec,
|
||||
time->tv_nsec);
|
||||
return status;
|
||||
}
|
||||
|
||||
@ -4197,7 +4197,7 @@ static int decode_attr_time_modify(struct xdr_stream *xdr, uint32_t *bitmap, str
|
||||
status = NFS_ATTR_FATTR_MTIME;
|
||||
bitmap[1] &= ~FATTR4_WORD1_TIME_MODIFY;
|
||||
}
|
||||
dprintk("%s: mtime=%ld\n", __func__, (long)time->tv_sec);
|
||||
dprintk("%s: mtime=%lld\n", __func__, time->tv_sec);
|
||||
return status;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user