summaryrefslogtreecommitdiff
path: root/nfs/ops.c
diff options
context:
space:
mode:
Diffstat (limited to 'nfs/ops.c')
-rw-r--r--nfs/ops.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/nfs/ops.c b/nfs/ops.c
index 07963f87..ac5ceb98 100644
--- a/nfs/ops.c
+++ b/nfs/ops.c
@@ -377,10 +377,10 @@ netfs_attempt_write (struct netcred *cred, struct node *np,
for (amt = *len; amt;)
{
thisamt = amt;
- if (amt > write_size)
- amt = write_size;
+ if (thisamt > write_size)
+ thisamt = write_size;
- p = nfs_initialize_rpc (NFSPROC_WRITE, cred, amt, &rpcbuf, np, -1);
+ p = nfs_initialize_rpc (NFSPROC_WRITE, cred, thisamt, &rpcbuf, np, -1);
p = xdr_encode_fhandle (p, &np->nn->handle);
*p++ = 0;
*p++ = htonl (offset);