summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1995-07-08 23:24:14 +0000
committerMiles Bader <miles@gnu.org>1995-07-08 23:24:14 +0000
commita064ef82e289f6ca6ba19b13f276fbd31524c899 (patch)
treeb1b28adf51a9b5e958f49287883c44f753dd1479
parent3756a6c49c5666656f495ce5e8a8e2b7c600f184 (diff)
(io_state_sync): Remember that we've synced the buffer.
-rw-r--r--devio/iostate.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/devio/iostate.c b/devio/iostate.c
index 2f6863bc..fe40fcd2 100644
--- a/devio/iostate.c
+++ b/devio/iostate.c
@@ -70,6 +70,9 @@ io_state_sync(struct io_state *ios, struct dev *dev)
err =
dev_write(dev, ios->buffer, dev->block_size, &ios->location);
}
+
+ /* Remember that there's nothing left in the buffer. */
+ ios->buffer_use = 0;
}
return err;