freebsd-nq/sys/cddl
Alexander Motin 8d8e484d9c Remove duplicate dbufs accounting.
Since AVL already has embedded element counter, use dn_dbufs_count
only for dbufs not counted there (bonus buffers) and just add them.
This removes two atomics per dbuf life cycle.

According to profiler it reduces time spent by dbuf_destroy() inside
bottlenecked dbuf_evict_thread() from 13.36% to 9.20% of the core.

This counter is used only on illumos, so for FreeBSD it was just a
waste of time.

MFC after:	2 weeks
2020-02-07 15:50:47 +00:00
..
boot/zfs loader: rewrite zfs reader zap code to use malloc 2020-02-04 07:37:55 +00:00
compat/opensolaris Add sys/systm.h to several places that use vm headers. 2020-02-04 18:56:26 +00:00
contrib/opensolaris Remove duplicate dbufs accounting. 2020-02-07 15:50:47 +00:00
dev dtrace: add missing CLTFLAG_MPSAFE annotations 2020-01-12 04:53:22 +00:00