diff options
author | Miles Bader <miles@gnu.org> | 1995-07-08 23:24:14 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1995-07-08 23:24:14 +0000 |
commit | f56f833dabf047e9cda7ce5feafe4baa5f8e68c9 (patch) | |
tree | d7afeb1a5f13533be96e9e70bdf18995416ca657 | |
parent | b33bb659b277544674e2e152f1d4feb641e8c05e (diff) |
(io_state_sync): Remember that we've synced the buffer.
-rw-r--r-- | devio/iostate.c | 3 |
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; |