freebsd-dev/sys/cddl/contrib/opensolaris/uts
Andriy Gapon a68789426a zfs: set VROOT / VV_ROOT consistently and in a single place
This is a followup to r300131.

A filesystem's root vnode can be reached not only through VSF_ROOT, but
by other means as well.  For example, via a dot-dot lookup.
Also, a root vnode can get reclaimed and then re-created.  For these
reasons it was insufficient to clear VV_ROOT flag from a root vnode of a
snapshot mounted under .zfs in zfsctl_snapdir_lookup().

So, now we set the flag in zfs_znode_sa_init() only if a vnode
represent a root of a filesystem or a standalone snapshot.
That is, the flag is not set for snapshots mounted under .zfs.

MFC after:	2 weeks
2016-06-03 14:37:18 +00:00
..
aarch64 First cut of DTrace for AArch64. 2015-07-01 15:51:11 +00:00
arm Initial version of DTrace on ARM32. 2015-02-10 19:41:30 +00:00
common zfs: set VROOT / VV_ROOT consistently and in a single place 2016-06-03 14:37:18 +00:00
intel Fix fasttrap tracepoint locking. 2016-03-08 00:43:03 +00:00
mips
powerpc Fix fasttrap tracepoint locking. 2016-03-08 00:43:03 +00:00
riscv Add initial DTrace support for RISC-V. 2016-05-24 16:41:37 +00:00