MFV r272500:

Don't inherit flags other than DS_FLAG_CI_DATASET and DS_FLAG_INCONSISTENT
when cloning.  This prevents DS_FLAG_DEFER_DESTROY being inherited from a
clone that is marked for deferred destroy, which causes snapshots of the
clone being destroyed when getting a hold or clone.

Illumos issue:
    5150 zfs clone of a defer_destroy snapshot causes strangeness

MFC after:	1 week


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

Illumos issue:
    5177 remove dead code from dsl_scan.c

MFC after:	2 weeks


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