aboutsummaryrefslogtreecommitdiff
path: root/module/zfs/dmu_traverse.c
diff options
context:
space:
mode:
authorMatthew Ahrens <mahrens@delphix.com>2013-08-12 16:53:33 +0000
committerBrian Behlendorf <behlendorf1@llnl.gov>2013-11-05 21:18:26 +0000
commit78e2739d3c9e433c92cd1623a510edb2c83a97d9 (patch)
tree19dace5b74bacbf449c49812a09409ca809ef0bb /module/zfs/dmu_traverse.c
parent2517c8ee08ef21ba112c00a94070302cdca04a58 (diff)
downloadsrc-78e2739d3c9e433c92cd1623a510edb2c83a97d9.tar.gz
src-78e2739d3c9e433c92cd1623a510edb2c83a97d9.zip
26126 panic system rather than corrupting pool if we hit bug 26100
References: delphix/delphix-os@931c8aaab74b6412933d299890894262e2ef8380 Ported-by: Richard Yao <ryao@gentoo.org> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #1650
Diffstat (limited to 'module/zfs/dmu_traverse.c')
-rw-r--r--module/zfs/dmu_traverse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/zfs/dmu_traverse.c b/module/zfs/dmu_traverse.c
index ce306cbdaf21..939dfe2fa88a 100644
--- a/module/zfs/dmu_traverse.c
+++ b/module/zfs/dmu_traverse.c
@@ -361,7 +361,7 @@ traverse_visitbp(traverse_data_t *td, const dnode_phys_t *dnp,
(void) arc_buf_remove_ref(buf, &buf);
post:
- if (err == 0 && lasterr == 0 && (td->td_flags & TRAVERSE_POST)) {
+ if (err == 0 && (td->td_flags & TRAVERSE_POST)) {
err = td->td_func(td->td_spa, NULL, bp, zb, dnp, td->td_arg);
if (err == ERESTART)
pause = B_TRUE;