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.
This commit is contained in:
Kirk McKusick 1998-09-29 21:46:54 +00:00
parent cecc3abb9d
commit 113b88d241
2 changed files with 4 additions and 2 deletions

View File

@ -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 @@ again:
}
error = uiomove((char *)bp->b_data + on, n, uio);
bp->b_flags &= ~B_NEEDCOMMIT;
if (error) {
bp->b_flags |= B_ERROR;
brelse(bp);

View File

@ -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 @@ again:
}
error = uiomove((char *)bp->b_data + on, n, uio);
bp->b_flags &= ~B_NEEDCOMMIT;
if (error) {
bp->b_flags |= B_ERROR;
brelse(bp);