]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r209053:
authormdf <mdf@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 13 Sep 2010 17:18:49 +0000 (17:18 +0000)
committermdf <mdf@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 13 Sep 2010 17:18:49 +0000 (17:18 +0000)
commit36d3a4591269c9492513aceadd229fbcd90d871c
tree8c13c2ab56cf69bf3356b8b7a01f7739bf245f31
parenta870d016f661bb6a0b5d08c7a4a6e02d1aef24e1
MFC r209053:

Add INVARIANTS checking that numfreebufs values are sane.  Also add a
per-buf flag to catch if a buf is double-counted in the free count.
This code was useful to debug an instance where a local patch at Isilon
was incorrectly managing numfreebufs for a new buf state.

Requested by: Kostic Belousov

git-svn-id: svn://svn.freebsd.org/base/stable/8@212562 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/kern/vfs_bio.c
sys/sys/buf.h