projects
/
platform
/
kernel
/
linux-exynos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d1829b3
)
nfsd4: fix change attribute endianness
author
J. Bruce Fields
<bfields@redhat.com>
Wed, 25 Apr 2012 22:11:04 +0000
(18:11 -0400)
committer
J. Bruce Fields
<bfields@redhat.com>
Fri, 1 Jun 2012 00:29:38 +0000
(20:29 -0400)
Though actually this doesn't matter much, as NFSv4.0 clients are
required to treat the change attribute as opaque.
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4xdr.c
patch
|
blob
|
history
diff --git
a/fs/nfsd/nfs4xdr.c
b/fs/nfsd/nfs4xdr.c
index
f839be1
..
61555e7
100644
(file)
--- a/
fs/nfsd/nfs4xdr.c
+++ b/
fs/nfsd/nfs4xdr.c
@@
-1674,12
+1674,12
@@
nfsd4_decode_compound(struct nfsd4_compoundargs *argp)
static void write32(__be32 **p, u32 n)
{
- *(*p)++ =
n
;
+ *(*p)++ =
htonl(n)
;
}
static void write64(__be32 **p, u64 n)
{
- write32(p, (
u32)(
n >> 32));
+ write32(p, (n >> 32));
write32(p, (u32)n);
}