freebsd-nq/sys/cddl
Andriy Gapon 886dbd270f zfs: move vnode creation from zfs_znode_cache_constructor to zfs_znode_alloc
All other places where a znode is allocated do not need z_vnode at all.
These are:
- zfs_create_share_dir
- zfs_create_fs

This chnage ensures two things:
- VN_LOCK_ASHARE is not erroneously called for VFIFO vnodes
- vn_lock is called on a fully constructed vnode with correct v_ops

The change also allows to make zfs_znode_cache_constructor a normal
kmem_cache constructor again (as it is in upstream).
This allows to avoid a problem where zfs_znode_cache_destructor
may be called on un-constructed znodes.

MFC after:	17 days
2013-07-24 09:15:59 +00:00
..
boot/zfs MFV r245512: 2013-02-09 06:39:28 +00:00
compat/opensolaris style(9) fixes 2013-06-29 23:39:38 +00:00
contrib/opensolaris zfs: move vnode creation from zfs_znode_cache_constructor to zfs_znode_alloc 2013-07-24 09:15:59 +00:00
dev Hide references to mod_lock. In FreeBSD it is always acquired with the 2013-07-05 22:42:10 +00:00