Fix a HAMMER assertion which turned out to be a bug in VOP_N*(). Sometimes
authorMatthew Dillon <dillon@dragonflybsd.org>
Fri, 9 May 2008 17:52:18 +0000 (17:52 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Fri, 9 May 2008 17:52:18 +0000 (17:52 +0000)
commit5312fa43e19b44c97e461564d241d590ffe14034
treebc9472dc043733c232b199f0effb365ad0ddeeb0
parent8db0383166af68bce269d7942d9f44d15bae24b9
Fix a HAMMER assertion which turned out to be a bug in VOP_N*().  Sometimes
the dvp passed to these functions can be reclaimed.  The locked leaf
namecache node is not sufficient to prevent its parent directory from
being reclaimed under heavy loads.

Instead of trying to play cute tricks, actually do a formal reference of
the dvp.  We don't have to lock it, though.
sys/kern/uipc_usrreq.c
sys/kern/vfs_cache.c
sys/kern/vfs_nlookup.c
sys/kern/vfs_syscalls.c
sys/kern/vfs_vnops.c
sys/kern/vfs_vopops.c
sys/sys/namecache.h
sys/sys/nlookup.h