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:
a9bae56
)
pnfs: use lwb as layoutcommit length
author
Peng Tao
<
[email protected]
>
Sun, 31 Jul 2011 00:52:34 +0000
(20:52 -0400)
committer
Trond Myklebust
<
[email protected]
>
Sun, 31 Jul 2011 16:18:15 +0000
(12:18 -0400)
Using NFS4_MAX_UINT64 will break current protocol.
[Needed in v3.0]
CC: Stable Tree <
[email protected]
>
Signed-off-by: Peng Tao <
[email protected]
>
Signed-off-by: Jim Rees <
[email protected]
>
Signed-off-by: Trond Myklebust <
[email protected]
>
fs/nfs/nfs4xdr.c
patch
|
blob
|
history
diff --git
a/fs/nfs/nfs4xdr.c
b/fs/nfs/nfs4xdr.c
index c191a9baa42262acabeed48b4c557e29ffdfd3db..b851b560a6f83e3e0184499a7d2416b3f8c5921a 100644
(file)
--- a/
fs/nfs/nfs4xdr.c
+++ b/
fs/nfs/nfs4xdr.c
@@
-1916,7
+1916,7
@@
encode_layoutcommit(struct xdr_stream *xdr,
*p++ = cpu_to_be32(OP_LAYOUTCOMMIT);
/* Only whole file layouts */
p = xdr_encode_hyper(p, 0); /* offset */
- p = xdr_encode_hyper(p,
NFS4_MAX_UINT64);
/* length */
+ p = xdr_encode_hyper(p,
args->lastbytewritten + 1);
/* length */
*p++ = cpu_to_be32(0); /* reclaim */
p = xdr_encode_opaque_fixed(p, args->stateid.data, NFS4_STATEID_SIZE);
*p++ = cpu_to_be32(1); /* newoffset = TRUE */