freebsd-dev/sys/cddl
Mateusz Guzik e3c3248cc7 vfs: implement usecount implying holdcnt
vnodes have 2 reference counts - holdcnt to keep the vnode itself from getting
freed and usecount to denote it is actively used.

Previously all operations bumping usecount would also bump holdcnt, which is
not necessary. We can detect if usecount is already > 1 (in which case holdcnt
is also > 1) and utilize it to avoid bumping holdcnt on our own. This saves
on atomic ops.

Reviewed by:	kib
Tested by:	pho (previous version)
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D21471
2019-09-03 15:42:11 +00:00
..
boot/zfs loader: support com.delphix:removing 2019-08-08 18:08:13 +00:00
compat/opensolaris Extend uma_reclaim() to permit different reclamation targets. 2019-09-01 22:22:43 +00:00
contrib/opensolaris vfs: implement usecount implying holdcnt 2019-09-03 15:42:11 +00:00
dev dtrace: 64-bits registers support 2019-06-05 22:29:05 +00:00