freebsd-dev/sys/compat/opensolaris
Pawel Jakub Dawidek b166b92692 Reimplement traverse() helper function:
1. Pass locking flags to VFS_ROOT().
2. Check v_mountedhere while the vnode is locked.
3. Always return locked vnode on success.

Change 1 fixes problem reported by Stephen M. Rumble - after
zfs_vfsops.c,1.9 change, zfs_root() no longer locks the vnode
unconditionally and traverse() didn't pass right lock type to
VFS_ROOT(). The result was that kernel paniced when .zfs/ directory
was accessed via NFS.
2007-06-04 11:31:46 +00:00
..
kern Reimplement traverse() helper function: 2007-06-04 11:31:46 +00:00
machine
rpc
sys Reimplement traverse() helper function: 2007-06-04 11:31:46 +00:00