]> granicus.if.org Git - zfs/commitdiff
Reduce noise in tracing logs
authorIsaac Huang <he.huang@intel.com>
Wed, 21 Sep 2016 20:37:20 +0000 (14:37 -0600)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 21 Sep 2016 20:37:20 +0000 (13:37 -0700)
dbuf_read_impl() returns (SET_ERROR(err)) when err can be 0, which adds
lots of noise in tracing logs.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Isaac Huang <he.huang@intel.com>
Closes #4430
Closes #5146

module/zfs/dbuf.c

index 26077b59a8e0a7e5fa3c2b8200fb3557f41553f0..f05190b66cc1f9dcebd47e3a87e4c07144d99577 100644 (file)
@@ -1080,7 +1080,7 @@ dbuf_read_impl(dmu_buf_impl_t *db, zio_t *zio, uint32_t flags)
            (flags & DB_RF_CANFAIL) ? ZIO_FLAG_CANFAIL : ZIO_FLAG_MUSTSUCCEED,
            &aflags, &zb);
 
-       return (SET_ERROR(err));
+       return (err);
 }
 
 /*