diff options
author | cao <[email protected]> | 2016-10-21 02:24:01 +0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2016-10-20 11:24:01 -0700 |
commit | 5a6765cf8cad21d22dc172b4089b655c9270d16a (patch) | |
tree | 4f520258b4180d1ab3a30e8f0701e13b019eea82 /include | |
parent | 1f72394443f710a0be11232b557b8a698693668d (diff) |
Fix coverity defects: CID 147472
CID 147472: Type: 'Constant' variable guards dead code
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: cao.xuewen <[email protected]>
Closes #5288
Diffstat (limited to 'include')
-rw-r--r-- | include/sys/dmu.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sys/dmu.h b/include/sys/dmu.h index ec89e9018..9d61d94ee 100644 --- a/include/sys/dmu.h +++ b/include/sys/dmu.h @@ -744,6 +744,7 @@ struct arc_buf *dmu_request_arcbuf(dmu_buf_t *handle, int size); void dmu_return_arcbuf(struct arc_buf *buf); void dmu_assign_arcbuf(dmu_buf_t *handle, uint64_t offset, struct arc_buf *buf, dmu_tx_t *tx); +#ifdef HAVE_UIO_ZEROCOPY int dmu_xuio_init(struct xuio *uio, int niov); void dmu_xuio_fini(struct xuio *uio); int dmu_xuio_add(struct xuio *uio, struct arc_buf *abuf, offset_t off, @@ -751,6 +752,7 @@ int dmu_xuio_add(struct xuio *uio, struct arc_buf *abuf, offset_t off, int dmu_xuio_cnt(struct xuio *uio); struct arc_buf *dmu_xuio_arcbuf(struct xuio *uio, int i); void dmu_xuio_clear(struct xuio *uio, int i); +#endif /* HAVE_UIO_ZEROCOPY */ void xuio_stat_wbuf_copied(void); void xuio_stat_wbuf_nocopy(void); |