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 | a064ef82e289f6ca6ba19b13f276fbd31524c899 (patch) | |
tree | b1b28adf51a9b5e958f49287883c44f753dd1479 | |
parent | 3756a6c49c5666656f495ce5e8a8e2b7c600f184 (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; |