]> git.proxmox.com Git - mirror_zfs.git/blobdiff - module/zfs/dmu_traverse.c
Illumos #3598
[mirror_zfs.git] / module / zfs / dmu_traverse.c
index 1827ffc7413fe1bb7362023a1c9164626b81a955..ce306cbdaf21789cb8a0e15acc95fdc3bb7d313a 100644 (file)
@@ -20,7 +20,7 @@
  */
 /*
  * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
- * Copyright (c) 2012 by Delphix. All rights reserved.
+ * Copyright (c) 2013 by Delphix. All rights reserved.
  */
 
 #include <sys/zfs_context.h>
@@ -434,7 +434,7 @@ traverse_prefetcher(spa_t *spa, zilog_t *zilog, const blkptr_t *bp,
 
        ASSERT(pfd->pd_blks_fetched >= 0);
        if (pfd->pd_cancel)
-               return (EINTR);
+               return (SET_ERROR(EINTR));
 
        if (bp == NULL || !((pfd->pd_flags & TRAVERSE_PREFETCH_DATA) ||
            BP_GET_TYPE(bp) == DMU_OT_DNODE || BP_GET_LEVEL(bp) > 0) ||