Reimplement B_AGE. Have it cycle the buffer in the queue twice instead of
authorMatthew Dillon <dillon@dragonflybsd.org>
Thu, 12 Jun 2008 23:26:37 +0000 (23:26 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Thu, 12 Jun 2008 23:26:37 +0000 (23:26 +0000)
commitb86460bf52afc8d325de2adfa8be625eb70a0d3e
tree689a6095928b04ae46dfcf23bfe6df27e5707c6f
parentfa2217dccf6418fc6a95a3e7b7a3c4d67311082e
Reimplement B_AGE.  Have it cycle the buffer in the queue twice instead of
placing buffers at the head of the queue (which causes them to be run-down
backwards).  Leave B_AGE set through the write cycle and have the bufdaemon
set the flag when flushing dirty buffers.  B_AGE no longer effects the
ordering of the actual write and is allowed to slide through to the clean
queue when the write completes.
sys/kern/vfs_bio.c
sys/kern/vfs_cluster.c
sys/sys/buf.h