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
..
2020-02-07 15:50:47 +00:00
2020-02-05 16:53:02 +00:00
2020-02-03 17:35:11 +00:00
2020-01-29 12:10:42 +00:00
2020-02-04 19:05:58 +00:00
2020-02-05 19:15:36 +00:00
2020-02-07 15:16:04 +00:00
2020-02-04 14:01:07 +00:00
2020-01-31 02:23:48 +00:00
2020-02-07 00:47:58 +00:00
2020-02-06 08:32:25 +00:00
2020-02-03 17:35:11 +00:00