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:
parent
cecc3abb9d
commit
113b88d241
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user