summaryrefslogtreecommitdiffstats
path: root/module/zfs/bptree.c
diff options
context:
space:
mode:
authorMatthew Ahrens <[email protected]>2013-07-02 13:20:02 -0700
committerBrian Behlendorf <[email protected]>2013-07-02 13:34:02 -0700
commit96b89346c074516a9bb130907646814208035ca8 (patch)
treec5f8ae117dab16ff523f862ce686a9b2537bbf83 /module/zfs/bptree.c
parent3db3ff4a787acf068b122562fb5be5aecec2611f (diff)
Illumos #3122 zfs destroy filesystem should prefetch blocks
3122 zfs destroy filesystem should prefetch blocks Reviewed by: Christopher Siden <[email protected]> Reviewed by: George Wilson <[email protected]> Reviewed by: Adam Leventhal <[email protected]> Approved by: Garrett D'Amore <[email protected]> References: illumos/illumos-gate@b4709335aa83dcbfd0dba33c9be21fcabebd28e4 https://www.illumos.org/issues/3122 Ported-by: Brian Behlendorf <[email protected]> Closes #1565
Diffstat (limited to 'module/zfs/bptree.c')
-rw-r--r--module/zfs/bptree.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/module/zfs/bptree.c b/module/zfs/bptree.c
index db0a2d3c6..1a009cfe5 100644
--- a/module/zfs/bptree.c
+++ b/module/zfs/bptree.c
@@ -189,7 +189,8 @@ bptree_iterate(objset_t *os, uint64_t obj, boolean_t free, bptree_itor_t func,
break;
err = traverse_dataset_destroyed(os->os_spa, &bte.be_bp,
- bte.be_birth_txg, &bte.be_zb, TRAVERSE_POST,
+ bte.be_birth_txg, &bte.be_zb,
+ TRAVERSE_PREFETCH_METADATA | TRAVERSE_POST,
bptree_visit_cb, &ba);
if (free) {
ASSERT(err == 0 || err == ERESTART);