Peter Wemm 16e9e530cc Convert lists for bufs attached to vnodes from a LIST to a TAILQ.
- Use TAILQ_* macros extensively instead of internal names
- use b_xflags instead of the NOLIST magic number hack in the next pointer
- clean bufs are inserted at the tail rather than the head.
- redo dirty buffer insert so that metadata (negative lbn) goes to the
  tail directly rather than at the HEAD.  This makes a difference when
  inserting dirty data blocks in lbn sorted order since data block
  insertion will not have to bypass all the metadata cruft.  data is
  lbn sorted since it makes sense for clustering and writeback ordering,
  while metadata sorting doesn't help much since the lbn's are
  meaningless when walking the list for writebacks.

Small systems will not notice much (if any) benefit from this, but really
busy systems with large dirty block lists should get a lot more.

I've tested this with softdep, and it doesn't seem to mind the change of
queueing of metadata.

Reviewed (in princible) by: dg
Obtained from: partly from John Dyson's work-in-progress patches in June.
1998-10-31 14:20:39 +00:00
..
1998-10-15 17:09:19 +00:00
1998-08-24 08:32:19 +00:00
1998-07-29 17:38:14 +00:00
1998-01-22 17:30:44 +00:00
1998-02-20 13:37:40 +00:00
1998-07-29 17:38:14 +00:00
1998-07-11 07:46:16 +00:00
1998-10-21 16:31:38 +00:00
1998-08-04 09:21:04 +00:00
1998-08-23 10:16:26 +00:00
1998-08-24 08:32:19 +00:00
1998-09-14 19:56:42 +00:00
1998-09-14 19:56:42 +00:00