BUF/BIO cleanup 2/99:
authorHiten Pandya <hmp@dragonflybsd.org>
Wed, 3 Aug 2005 04:59:53 +0000 (04:59 +0000)
committerHiten Pandya <hmp@dragonflybsd.org>
Wed, 3 Aug 2005 04:59:53 +0000 (04:59 +0000)
commitb3098c79808be08e9ab75229556060cdfb766e1b
tree3e820ad43bb962e4358ddff6101bd9111606fe85
parent6b7672b0b3b16ecb2d983fea73648444ea1456e4
BUF/BIO cleanup 2/99:

Localise buffer queue information into kern/vfs_bio.c, it should not be
messed with outside of the named file.  Convert the QUEUE_* #defines
into enum bufq_type, prefix the names with 'B'.  The change to initpbuf()
is acceptable since they are a hack anyway, not to mention that

Move vfs_bufstats() from kern/vfs_syscalls.c into kern/vfs_bio.c since
that's where it should really belong, atleast till its use is cleaned.

Move bufqueues extern from sys/buf.h into kern/vfs_bio.c as it shouldn't
be messed with by anything else.  It was only sitting in sys/buf.h
because of vfs_bufstats().

Note the change to initpbuf() is acceptable since they are a hack anyway,
not to mention that the said function and friends should probably reside
in kern/vfs_bio.c.
sys/kern/vfs_bio.c
sys/kern/vfs_syscalls.c
sys/sys/buf.h
sys/vm/vm_pager.c