Author: mav Date: Mon Oct 12 14:24:11 2015 New Revision: 289187 URL: https://svnweb.freebsd.org/changeset/base/289187
Log: 6251 add tunable to disable free_bpobj processing Reviewed by: Matthew Ahrens <mahr...@delphix.com> Reviewed by: Prakash Surya <prakash.su...@delphix.com> Reviewed by: Simon Klinkert <simon.klink...@gmail.com> Reviewed by: Richard Elling <richard.ell...@richardelling.com> Reviewed by: Albert Lee <tr...@omniti.com> Reviewed by: Xin Li <delp...@freebsd.org> Approved by: Garrett D'Amore <garr...@damore.org> Author: George Wilson <george.wil...@delphix.com> illumos/illumos-gate@139510fb6efa97dbe5f5479594b308d940cab8d1 Modified: vendor-sys/illumos/dist/uts/common/fs/zfs/dsl_scan.c Modified: vendor-sys/illumos/dist/uts/common/fs/zfs/dsl_scan.c ============================================================================== --- vendor-sys/illumos/dist/uts/common/fs/zfs/dsl_scan.c Mon Oct 12 14:23:10 2015 (r289186) +++ vendor-sys/illumos/dist/uts/common/fs/zfs/dsl_scan.c Mon Oct 12 14:24:11 2015 (r289187) @@ -20,7 +20,7 @@ */ /* * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved. - * Copyright (c) 2011, 2014 by Delphix. All rights reserved. + * Copyright (c) 2011, 2015 by Delphix. All rights reserved. */ #include <sys/dsl_scan.h> @@ -78,6 +78,11 @@ uint64_t zfs_free_max_blocks = UINT64_MA extern int zfs_txg_timeout; +/* + * Enable/disable the processing of the free_bpobj object. + */ +boolean_t zfs_free_bpobj_enabled = B_TRUE; + /* the order has to match pool_scan_type */ static scan_cb_t *scan_funcs[POOL_SCAN_FUNCS] = { NULL, @@ -1426,7 +1431,8 @@ dsl_scan_sync(dsl_pool_t *dp, dmu_tx_t * * have to worry about traversing it. It is also faster to free the * blocks than to scrub them. */ - if (spa_version(dp->dp_spa) >= SPA_VERSION_DEADLISTS) { + if (zfs_free_bpobj_enabled && + spa_version(dp->dp_spa) >= SPA_VERSION_DEADLISTS) { scn->scn_is_bptree = B_FALSE; scn->scn_zio_root = zio_root(dp->dp_spa, NULL, NULL, ZIO_FLAG_MUSTSUCCEED); _______________________________________________ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"