diff options
author | cao <[email protected]> | 2016-09-21 08:45:45 +0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2016-09-20 17:45:45 -0700 |
commit | 884385a0b25dc36b622e5e427bf29281c3dbca06 (patch) | |
tree | d5f09f9cc5ecc0fa9e381292c943877dc983a2b5 /include/sys | |
parent | d2a6f65cfb65ec3079f843542a156704264260be (diff) |
Fix coverity defects
Fix coverity defects:
coverity scan CID:147623, Type: Resource leak.
coverity scan CID:147622, Type: Resource leak.
reason: zpool_open zhp, but not zpool_close zhp. so resource leak.
coverity scan CID:147621, Type: Resource fd leak.
coverity scan CID:147620, Type: Resource fd leak.
reason: do_write do_read open file fd,but exception not close fd.
delete unuse definition DMU_OS_IS_L2COMPRESSIBLE.
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: cao.xuewen <[email protected]>
Closes #5137
Diffstat (limited to 'include/sys')
-rw-r--r-- | include/sys/dmu_objset.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/sys/dmu_objset.h b/include/sys/dmu_objset.h index 81bb89bfc..1674897c2 100644 --- a/include/sys/dmu_objset.h +++ b/include/sys/dmu_objset.h @@ -138,8 +138,6 @@ struct objset { ((os)->os_secondary_cache == ZFS_CACHE_ALL || \ (os)->os_secondary_cache == ZFS_CACHE_METADATA) -#define DMU_OS_IS_L2COMPRESSIBLE(os) (zfs_mdcomp_disable == B_FALSE) - /* called from zpl */ int dmu_objset_hold(const char *name, void *tag, objset_t **osp); int dmu_objset_own(const char *name, dmu_objset_type_t type, |