|
@@ -2012,11 +2012,11 @@ encode_layoutreturn(struct xdr_stream *xdr,
|
|
p = reserve_space(xdr, 16);
|
|
p = reserve_space(xdr, 16);
|
|
*p++ = cpu_to_be32(0); /* reclaim. always 0 for now */
|
|
*p++ = cpu_to_be32(0); /* reclaim. always 0 for now */
|
|
*p++ = cpu_to_be32(args->layout_type);
|
|
*p++ = cpu_to_be32(args->layout_type);
|
|
- *p++ = cpu_to_be32(args->iomode);
|
|
|
|
|
|
+ *p++ = cpu_to_be32(args->range.iomode);
|
|
*p = cpu_to_be32(RETURN_FILE);
|
|
*p = cpu_to_be32(RETURN_FILE);
|
|
p = reserve_space(xdr, 16);
|
|
p = reserve_space(xdr, 16);
|
|
- p = xdr_encode_hyper(p, 0);
|
|
|
|
- p = xdr_encode_hyper(p, NFS4_MAX_UINT64);
|
|
|
|
|
|
+ p = xdr_encode_hyper(p, args->range.offset);
|
|
|
|
+ p = xdr_encode_hyper(p, args->range.length);
|
|
spin_lock(&args->inode->i_lock);
|
|
spin_lock(&args->inode->i_lock);
|
|
encode_nfs4_stateid(xdr, &args->stateid);
|
|
encode_nfs4_stateid(xdr, &args->stateid);
|
|
spin_unlock(&args->inode->i_lock);
|
|
spin_unlock(&args->inode->i_lock);
|