From 7774c57b8badc24956e96f05ceb00083846004d9 Mon Sep 17 00:00:00 2001 From: mckusick Date: Tue, 29 Sep 1998 21:46:54 +0000 Subject: [PATCH] When adding data to a buffer, we need to clear the B_NEEDCOMMIT flag which says that the data is on server but not committed. --- sys/nfs/nfs_bio.c | 3 ++- sys/nfsclient/nfs_bio.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/nfs/nfs_bio.c b/sys/nfs/nfs_bio.c index cb9ae16223d..b78e8f9f054 100644 --- a/sys/nfs/nfs_bio.c +++ b/sys/nfs/nfs_bio.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)nfs_bio.c 8.9 (Berkeley) 3/30/95 - * $Id: nfs_bio.c,v 1.59 1998/06/14 15:51:59 bde Exp $ + * $Id: nfs_bio.c,v 1.60 1998/09/04 08:06:56 dfr Exp $ */ @@ -811,6 +811,7 @@ nfs_write(ap) } error = uiomove((char *)bp->b_data + on, n, uio); + bp->b_flags &= ~B_NEEDCOMMIT; if (error) { bp->b_flags |= B_ERROR; brelse(bp); diff --git a/sys/nfsclient/nfs_bio.c b/sys/nfsclient/nfs_bio.c index cb9ae16223d..b78e8f9f054 100644 --- a/sys/nfsclient/nfs_bio.c +++ b/sys/nfsclient/nfs_bio.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)nfs_bio.c 8.9 (Berkeley) 3/30/95 - * $Id: nfs_bio.c,v 1.59 1998/06/14 15:51:59 bde Exp $ + * $Id: nfs_bio.c,v 1.60 1998/09/04 08:06:56 dfr Exp $ */ @@ -811,6 +811,7 @@ nfs_write(ap) } error = uiomove((char *)bp->b_data + on, n, uio); + bp->b_flags &= ~B_NEEDCOMMIT; if (error) { bp->b_flags |= B_ERROR; brelse(bp); -- 2.45.2