summaryrefslogtreecommitdiffstats
path: root/sys/nfsclient
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>1995-07-24 16:38:05 +0000
committerdfr <dfr@FreeBSD.org>1995-07-24 16:38:05 +0000
commitd79a9f75377bc8d7ffb37412174b9e9cce567dae (patch)
treece71ec389affe82b3827b93da5bf497b02cd9088 /sys/nfsclient
parentf5dd123567781d838811489e353f8a52305e23d5 (diff)
downloadFreeBSD-src-d79a9f75377bc8d7ffb37412174b9e9cce567dae.zip
FreeBSD-src-d79a9f75377bc8d7ffb37412174b9e9cce567dae.tar.gz
Slightly better fix than previous revision.
Submitted by: Rick Macklem <rick@snowhite.cis.uoguelph.ca>
Diffstat (limited to 'sys/nfsclient')
-rw-r--r--sys/nfsclient/nfs_vnops.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/nfsclient/nfs_vnops.c b/sys/nfsclient/nfs_vnops.c
index 403bd97..2b66340 100644
--- a/sys/nfsclient/nfs_vnops.c
+++ b/sys/nfsclient/nfs_vnops.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_vnops.c 8.5 (Berkeley) 2/13/94
- * $Id: nfs_vnops.c,v 1.20 1995/07/13 17:55:12 dfr Exp $
+ * $Id: nfs_vnops.c,v 1.21 1995/07/24 12:50:49 dfr Exp $
*/
/*
@@ -619,9 +619,8 @@ nfs_setattr(ap)
ap->a_p, 1)) == EINTR)
return (error);
error = nfs_setattrrpc(vp, vap, ap->a_cred, ap->a_p);
- if (error) {
- if (vap->va_size != VNOVAL)
- np->n_size = np->n_vattr.va_size = tsize;
+ if (error && vap->va_size != VNOVAL) {
+ np->n_size = np->n_vattr.va_size = tsize;
vnode_pager_setsize(vp, (u_long)np->n_size);
}
return (error);
OpenPOWER on IntegriCloud