Need to reset the buffer pointer to avoid reconsidering the same buffer

again (without this the rollback analysis was being lost). Should reduce
the write count for most workloads.

Submitted by:	Craig A Soules <soules+@andrew.cmu.edu>
This commit is contained in:
Kirk McKusick 2000-01-18 02:13:26 +00:00
parent 61de98348a
commit 71c87cfd7e
1 changed files with 1 additions and 0 deletions

View File

@ -1907,6 +1907,7 @@ flushbufqueues(void)
TAILQ_INSERT_TAIL(&bufqueues[QUEUE_DIRTY],
bp, b_freelist);
bp->b_flags |= B_DEFERRED;
bp = TAILQ_FIRST(&bufqueues[QUEUE_DIRTY]);
continue;
}
vfs_bio_awrite(bp);