From ce2be747b563cf9404650dc1e61dc9987d6a0ecb Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Fri, 29 Mar 1996 22:10:53 +0000 Subject: (netfs_attempt_write): Truncate to THISAMT instead of AMT. --- nfs/ops.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'nfs') 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); -- cgit v1.2.3