MFV r271515:

Add a new tunable/sysctl, vfs.zfs.free_max_blocks, which can be used to
limit how many blocks can be free'ed before a new transaction group is
created.  The default is no limit (infinite), but we should probably have
a lower default, e.g. 100,000.

With this limit, we can guard against the case where ZFS could run out of
memory when destroying large numbers of blocks in a single transaction
group, as the entire DDT needs to be brought into memory.

Illumos issue:
    5138 add tunable for maximum number of blocks freed in one txg

MFC after:	2 weeks


git-svn-id: svn+ssh://svn.freebsd.org/base/head@271532 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFV r271516:

Enable debug printf's when ZFS_DEBUG or debug= is set.

Illumos issue:

    5134 if ZFS_DEBUG or debug= is set, libzpool should enable debug prints

MFC after:	2 weeks


git-svn-id: svn+ssh://svn.freebsd.org/base/head@271533 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFV r271517:

In zil_claim, don't issue warning if we get EBUSY (inconsistent) when
opening an objset, instead, ignore it silently.

Illumos issue:

    5140 message about "%recv could not be opened" is printed when booting after crash

MFC after:	1 week


git-svn-id: svn+ssh://svn.freebsd.org/base/head@271534 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Make inclusion of fdt clock support conditional on fdt_clock, not just fdt.
There are plenty of platforms that use fdt without needing the overhead of
the new clock support routines.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@271535 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f