> > After reading VOP_LOOKUP.9 based on recent commit, a try to remove some > > dead code in VFS. > > https://marc.info/?l=openbsd-cvs&m=153886730207657&w=2 > > > > VFSLCKDEBUG is not defined anywhere. It is misleading to read in > > sys/kern/vfs_vops.c that ASSERT_VP_ISLOCKED(dvp) is being checked, when in > > fact, it is just dead code. > > But you can build the kernel with -DVFSLCKDEBUG=1 to enable the debug code.
Aargh, you are right, silly me. I didn't grep it in GENERIC before sending this out. I compiled GENERIC with VFSLCKDEBUG on, and the kernel is running fine. So those checks are useful. Forget about this diff! Thanks
