diff options
author | Arvind Sankar <[email protected]> | 2020-06-15 14:26:43 -0400 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2020-06-18 12:21:18 -0700 |
commit | c3fe42aabd9f8879500437e2be2968b47e8b6797 (patch) | |
tree | f2a66702cabdeba3772e36bcfb0a43ef41404e79 /module/zfs | |
parent | 65c7cc49bfcf49d38fc84552a17d7e8a3268e58e (diff) |
Remove dead code
Delete unused functions.
Reviewed-by: Ryan Moeller <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Arvind Sankar <[email protected]>
Closes #10470
Diffstat (limited to 'module/zfs')
-rw-r--r-- | module/zfs/ddt.c | 6 | ||||
-rw-r--r-- | module/zfs/zrlock.c | 9 |
2 files changed, 0 insertions, 15 deletions
diff --git a/module/zfs/ddt.c b/module/zfs/ddt.c index 33dad8bdf..b94a9f54e 100644 --- a/module/zfs/ddt.c +++ b/module/zfs/ddt.c @@ -595,12 +595,6 @@ ddt_decompress(uchar_t *src, void *dst, size_t s_len, size_t d_len) } ddt_t * -ddt_select_by_checksum(spa_t *spa, enum zio_checksum c) -{ - return (spa->spa_ddt[c]); -} - -ddt_t * ddt_select(spa_t *spa, const blkptr_t *bp) { return (spa->spa_ddt[BP_GET_CHECKSUM(bp)]); diff --git a/module/zfs/zrlock.c b/module/zfs/zrlock.c index 6deb25648..a4def6053 100644 --- a/module/zfs/zrlock.c +++ b/module/zfs/zrlock.c @@ -157,15 +157,6 @@ zrl_exit(zrlock_t *zrl) } int -zrl_refcount(zrlock_t *zrl) -{ - ASSERT3S(zrl->zr_refcount, >, ZRL_DESTROYED); - - int n = (int)zrl->zr_refcount; - return (n <= 0 ? 0 : n); -} - -int zrl_is_zero(zrlock_t *zrl) { ASSERT3S(zrl->zr_refcount, >, ZRL_DESTROYED); |