projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0be8189
)
NFSv4: Fix an embarassing typo in encode_attrs()
author
Trond Myklebust
<
[email protected]
>
Tue, 22 Jun 2010 12:52:39 +0000
(08:52 -0400)
committer
Trond Myklebust
<
[email protected]
>
Tue, 22 Jun 2010 17:22:54 +0000
(13:22 -0400)
Apparently, we have never been able to set the atime correctly from the
NFSv4 client.
Reported-by: 小倉一夫 <
[email protected]
>
Signed-off-by: Trond Myklebust <
[email protected]
>
Cc:
[email protected]
fs/nfs/nfs4xdr.c
patch
|
blob
|
history
diff --git
a/fs/nfs/nfs4xdr.c
b/fs/nfs/nfs4xdr.c
index 6bdef28efa33ff07561da0f92f492bc1b5d78046..65c8dae4b267f5622fb936dbaeb61f1f448c41a5 100644
(file)
--- a/
fs/nfs/nfs4xdr.c
+++ b/
fs/nfs/nfs4xdr.c
@@
-862,8
+862,8
@@
static void encode_attrs(struct xdr_stream *xdr, const struct iattr *iap, const
bmval1 |= FATTR4_WORD1_TIME_ACCESS_SET;
*p++ = cpu_to_be32(NFS4_SET_TO_CLIENT_TIME);
*p++ = cpu_to_be32(0);
- *p++ = cpu_to_be32(iap->ia_
m
time.tv_sec);
- *p++ = cpu_to_be32(iap->ia_
m
time.tv_nsec);
+ *p++ = cpu_to_be32(iap->ia_
a
time.tv_sec);
+ *p++ = cpu_to_be32(iap->ia_
a
time.tv_nsec);
}
else if (iap->ia_valid & ATTR_ATIME) {
bmval1 |= FATTR4_WORD1_TIME_ACCESS_SET;