diff options
Diffstat (limited to 'fs/nfs')
-rw-r--r-- | fs/nfs/nfs4xdr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/nfs4xdr.c b/fs/nfs/nfs4xdr.c index c191a9baa422..b851b560a6f8 100644 --- a/fs/nfs/nfs4xdr.c +++ b/fs/nfs/nfs4xdr.c | |||
@@ -1916,7 +1916,7 @@ encode_layoutcommit(struct xdr_stream *xdr, | |||
1916 | *p++ = cpu_to_be32(OP_LAYOUTCOMMIT); | 1916 | *p++ = cpu_to_be32(OP_LAYOUTCOMMIT); |
1917 | /* Only whole file layouts */ | 1917 | /* Only whole file layouts */ |
1918 | p = xdr_encode_hyper(p, 0); /* offset */ | 1918 | p = xdr_encode_hyper(p, 0); /* offset */ |
1919 | p = xdr_encode_hyper(p, NFS4_MAX_UINT64); /* length */ | 1919 | p = xdr_encode_hyper(p, args->lastbytewritten + 1); /* length */ |
1920 | *p++ = cpu_to_be32(0); /* reclaim */ | 1920 | *p++ = cpu_to_be32(0); /* reclaim */ |
1921 | p = xdr_encode_opaque_fixed(p, args->stateid.data, NFS4_STATEID_SIZE); | 1921 | p = xdr_encode_opaque_fixed(p, args->stateid.data, NFS4_STATEID_SIZE); |
1922 | *p++ = cpu_to_be32(1); /* newoffset = TRUE */ | 1922 | *p++ = cpu_to_be32(1); /* newoffset = TRUE */ |