NFSv4: NFSv4 callbacks also support 64-bit timestamps
Convert the NFSv4 callbacks to use struct timestamp64, rather than truncating times to 32-bit values. Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
This commit is contained in:
@@ -627,7 +627,7 @@ static __be32 encode_attr_size(struct xdr_stream *xdr, const uint32_t *bitmap, u
|
||||
return 0;
|
||||
}
|
||||
|
||||
static __be32 encode_attr_time(struct xdr_stream *xdr, const struct timespec *time)
|
||||
static __be32 encode_attr_time(struct xdr_stream *xdr, const struct timespec64 *time)
|
||||
{
|
||||
__be32 *p;
|
||||
|
||||
@@ -639,14 +639,14 @@ static __be32 encode_attr_time(struct xdr_stream *xdr, const struct timespec *ti
|
||||
return 0;
|
||||
}
|
||||
|
||||
static __be32 encode_attr_ctime(struct xdr_stream *xdr, const uint32_t *bitmap, const struct timespec *time)
|
||||
static __be32 encode_attr_ctime(struct xdr_stream *xdr, const uint32_t *bitmap, const struct timespec64 *time)
|
||||
{
|
||||
if (!(bitmap[1] & FATTR4_WORD1_TIME_METADATA))
|
||||
return 0;
|
||||
return encode_attr_time(xdr,time);
|
||||
}
|
||||
|
||||
static __be32 encode_attr_mtime(struct xdr_stream *xdr, const uint32_t *bitmap, const struct timespec *time)
|
||||
static __be32 encode_attr_mtime(struct xdr_stream *xdr, const uint32_t *bitmap, const struct timespec64 *time)
|
||||
{
|
||||
if (!(bitmap[1] & FATTR4_WORD1_TIME_MODIFY))
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user