diff options
author | phk <phk@FreeBSD.org> | 1997-08-31 07:32:39 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1997-08-31 07:32:39 +0000 |
commit | 0b3a12b83eb2feac881bc220304736c7fc61556a (patch) | |
tree | cdd844c554de3bb51aaf1b188cf99f92ac8467ee /lib/libtermcap | |
parent | 2fd4aa4ddff6800e1a692d84c9a3fbf1ef3df97a (diff) | |
download | FreeBSD-src-0b3a12b83eb2feac881bc220304736c7fc61556a.zip FreeBSD-src-0b3a12b83eb2feac881bc220304736c7fc61556a.tar.gz |
Change the 0xdeadb hack to a flag called VDOOMED.
Introduce VFREE which indicates that vnode is on freelist.
Rename vholdrele() to vdrop().
Create vfree() and vbusy() to add/delete vnode from freelist.
Add vfree()/vbusy() to keep (v_holdcnt != 0 || v_usecount != 0)
vnodes off the freelist.
Generalize vhold()/v_holdcnt to mean "do not recycle".
Fix reassignbuf()s lack of use of vhold().
Use vhold() instead of checking v_cache_src list.
Remove vtouch(), the vnodes are always vget'ed soon enough
after for it to have any measuable effect.
Add sysctl debug.freevnodes to keep track of things.
Move cache_purge() up in getnewvnodes to avoid race.
Decrement v_usecount after VOP_INACTIVE(), put a vhold() on
it during VOP_INACTIVE()
Unmacroize vhold()/vdrop()
Print out VDOOMED and VFREE flags (XXX: should use %b)
Reviewed by: dyson
Diffstat (limited to 'lib/libtermcap')
0 files changed, 0 insertions, 0 deletions