freebsd-dev/sys/cddl/compat/opensolaris/kern
Andriy Gapon c6cd01d924 fix a vnode reference leak caused by illumos compat traverse()
This commit partially reverts r273641 which introduced the leak.
It did so to accomodate for some consumers of traverse() that expected
the starting vnode to stay as-is.  But that introduced the leak in the
case when a mounted filesystem was found and its root vnode was
returned.

r299914 removed the troublesome consumers and now there is no reason to
keep the starting vnode.  So, now the new rules are:
- if there is no mounted filesystem, then nothing is changed
- otherwise the starting vnode is always released
- the root vnode of the mounted filesystem is returned locked and
  referenced in the case of success

MFC after:	5 weeks
X-MFC after:	r299914
2016-05-16 12:15:19 +00:00
..
opensolaris_acl.c Expose an interface to determine if an ACE is inherited. 2015-09-04 00:14:20 +00:00
opensolaris_atomic.c When arm 64-bit atomic ops are available, define ARM_HAVE_ATOMIC64. Use 2014-08-02 03:44:27 +00:00
opensolaris_cmn_err.c style(9) fixes 2013-06-29 23:39:38 +00:00
opensolaris_dtrace.c Remove sys/types.h include as per style (9) 2014-09-18 20:38:18 +00:00
opensolaris_kmem.c Refactor ZFS ARC reclaim checks and limits 2014-10-03 20:34:55 +00:00
opensolaris_kobj.c Create a dedicated function for ensuring that cdir and rdir are populated. 2015-07-11 16:22:48 +00:00
opensolaris_kstat.c Pull in r267961 and r267973 again. Fix for issues reported will follow. 2014-06-28 03:56:17 +00:00
opensolaris_lookup.c fix a vnode reference leak caused by illumos compat traverse() 2016-05-16 12:15:19 +00:00
opensolaris_misc.c
opensolaris_policy.c
opensolaris_string.c
opensolaris_sunddi.c
opensolaris_sysevent.c
opensolaris_taskq.c opensolaris compat: add taskq_wait emulation 2013-11-28 19:17:11 +00:00
opensolaris_uio.c
opensolaris_vfs.c mount_snapshot: consolidate all error handling 2016-05-16 06:30:25 +00:00
opensolaris_vm.c zfs: add zfs_freebsd_putpages 2013-11-29 15:39:39 +00:00
opensolaris_zone.c
opensolaris.c