diff options
-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; |